summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/soc/cavium/cn81xx/soc.c2
-rw-r--r--src/soc/ti/am335x/soc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/soc/cavium/cn81xx/soc.c b/src/soc/cavium/cn81xx/soc.c
index 85a9e00e0e..ed1441ba45 100644
--- a/src/soc/cavium/cn81xx/soc.c
+++ b/src/soc/cavium/cn81xx/soc.c
@@ -323,7 +323,7 @@ void bootmem_platform_add_ranges(void)
static void soc_read_resources(struct device *dev)
{
// 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)
diff --git a/src/soc/ti/am335x/soc.c b/src/soc/ti/am335x/soc.c
index 6f1c7940b2..410b2d772f 100644
--- a/src/soc/ti/am335x/soc.c
+++ b/src/soc/ti/am335x/soc.c
@@ -6,7 +6,7 @@
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 = {