From 49a8fdf23315df79eb63a41b7bd062b9ddd36c69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ky=C3=B6sti=20M=C3=A4lkki?= Date: Sat, 26 Jun 2021 14:28:42 +0300 Subject: [PATCH] soc/nvidia/tegra210: Do resource transition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I0e68912bf7f1ccb130b8bc6213308ec2e846efc2 Signed-off-by: Kyösti Mälkki Reviewed-on: https://review.coreboot.org/c/coreboot/+/55920 Reviewed-by: Arthur Heymans Tested-by: build bot (Jenkins) --- src/soc/nvidia/tegra210/soc.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 = {