diff --git a/src/soc/nvidia/tegra210/soc.c b/src/soc/nvidia/tegra210/soc.c index 72b155ca51..b037bdfcb3 100644 --- a/src/soc/nvidia/tegra210/soc.c +++ b/src/soc/nvidia/tegra210/soc.c @@ -36,16 +36,14 @@ static void soc_read_resources(struct device *dev) carveout_range(i, &begin, &size); if (size == 0) continue; - reserved_ram_resource_kb(dev, index++, begin * KiB, size * KiB); + reserved_ram_range(dev, index++, begin * MiB, size * MiB); } memory_in_range_below_4gb(&begin, &end); - size = end - begin; - ram_resource_kb(dev, index++, begin * KiB, size * KiB); + ram_from_to(dev, index++, begin * MiB, end * MiB); memory_in_range_above_4gb(&begin, &end); - size = end - begin; - ram_resource_kb(dev, index++, begin * KiB, size * KiB); + ram_from_to(dev, index++, begin * MiB, end * MiB); } static struct device_operations soc_ops = {