summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2021-06-26 14:28:42 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2022-06-26 21:48:13 +0000
commit49a8fdf23315df79eb63a41b7bd062b9ddd36c69 (patch)
tree81c800d8dd7edcf40c7bea427e1302dd56f13747 /src
parent85eb34ed19ec978b917fb7b9ad423546692f06b5 (diff)
soc/nvidia/tegra210: Do resource transition
Change-Id: I0e68912bf7f1ccb130b8bc6213308ec2e846efc2 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55920 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src')
-rw-r--r--src/soc/nvidia/tegra210/soc.c8
1 files 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 = {