diff options
author | Arthur Heymans <arthur@aheymans.xyz> | 2023-07-05 11:44:45 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2023-07-12 09:33:53 +0000 |
commit | 6df8ba45e04724cd8cbcb556df43a61ad271ab6f (patch) | |
tree | 3781e169b8b53bd1fd84b3ae21d623475ff89d22 /src/mainboard/sifive | |
parent | 0a60d1095436d4b53e660d9ea0ded48b699887d1 (diff) |
mb/emulation/*: Use newer function for resource declarations
Signed-off-by: Arthur Heymans <arthur@aheymans.xyz>
Change-Id: Idd623e99ee20ad94e493c8560cfdac9f7baaf890
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76281
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard/sifive')
-rw-r--r-- | src/mainboard/sifive/hifive-unleashed/mainboard.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 = { |