soc/rockchip: Do resource transition

Change-Id: I80ee3a8bb28d5f7b2a47b0a98abbc53a95ad25bc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55917
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Kyösti Mälkki 2021-06-26 14:10:39 +03:00
parent 49a8fdf233
commit 84a9360a24
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@
static void soc_init(struct device *dev)
{
ram_resource_kb(dev, 0, (uintptr_t)_dram/KiB, sdram_size_mb()*(MiB/KiB));
ram_range(dev, 0, (uintptr_t)_dram, sdram_size_mb() * MiB);
if (display_init_required())
rk_display_init(dev, (uintptr_t)_framebuffer,
REGION_SIZE(framebuffer));

View File

@ -21,7 +21,7 @@ void bootmem_platform_add_ranges(void)
static void soc_read_resources(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() * MiB);
}
static void soc_init(struct device *dev)