From 6df8ba45e04724cd8cbcb556df43a61ad271ab6f Mon Sep 17 00:00:00 2001 From: Arthur Heymans Date: Wed, 5 Jul 2023 11:44:45 +0200 Subject: mb/emulation/*: Use newer function for resource declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Arthur Heymans Change-Id: Idd623e99ee20ad94e493c8560cfdac9f7baaf890 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76281 Reviewed-by: Kyösti Mälkki Tested-by: build bot (Jenkins) --- src/mainboard/sifive/hifive-unleashed/mainboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mainboard/sifive/hifive-unleashed') diff --git a/src/mainboard/sifive/hifive-unleashed/mainboard.c b/src/mainboard/sifive/hifive-unleashed/mainboard.c index 9dde848406..90090d0f72 100644 --- a/src/mainboard/sifive/hifive-unleashed/mainboard.c +++ b/src/mainboard/sifive/hifive-unleashed/mainboard.c @@ -6,7 +6,7 @@ static void mainboard_enable(struct device *dev) { - ram_resource_kb(dev, 0, (uintptr_t)_dram/KiB, sdram_size_mb()*KiB); + ram_range(dev, 0, (uintptr_t)_dram, sdram_size_mb()); } struct chip_operations mainboard_ops = { -- cgit v1.2.3