soc/cavium,ti: Do resource transition

Change-Id: I0b9bd00a5de4c2c8d91fa9d595d3ee313356048a
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55916
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Kyösti Mälkki 2021-06-26 14:11:52 +03:00
parent e02fd83eba
commit be03903ffb
2 changed files with 2 additions and 2 deletions

View File

@ -323,7 +323,7 @@ void bootmem_platform_add_ranges(void)
static void soc_read_resources(struct device *dev) static void soc_read_resources(struct device *dev)
{ {
// HACK: Don't advertise bootblock romstage CAR region, it's broken... // HACK: Don't advertise bootblock romstage CAR region, it's broken...
ram_resource_kb(dev, 0, 2 * KiB, sdram_size_mb() * KiB - 2 * KiB); ram_from_to(dev, 0, 2 * MiB, sdram_size_mb() * (uint64_t)MiB);
} }
static void soc_init_atf(void) static void soc_init_atf(void)

View File

@ -6,7 +6,7 @@
static void soc_enable(struct device *dev) static void soc_enable(struct device *dev)
{ {
ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, CONFIG_DRAM_SIZE_MB * MiB / KiB); ram_range(dev, 0, (uintptr_t)_dram, CONFIG_DRAM_SIZE_MB * (uint64_t)MiB);
} }
struct chip_operations soc_ti_am335x_ops = { struct chip_operations soc_ti_am335x_ops = {