summaryrefslogtreecommitdiffstats
path: root/src/soc/ti/am335x/soc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/soc/ti/am335x/soc.c')
-rw-r--r--src/soc/ti/am335x/soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/ti/am335x/soc.c b/src/soc/ti/am335x/soc.c
index 6f1c7940b26c..410b2d772fdb 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 = {