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>
This commit is contained in:
parent
85eb34ed19
commit
49a8fdf233
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue