diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2021-06-26 14:12:54 +0300 |
---|---|---|
committer | Felix Held <felix-coreboot@felixheld.de> | 2022-06-30 16:27:34 +0000 |
commit | f35c074ad4dc1916496b13524f6b453ef5cf2635 (patch) | |
tree | d89003d9441ab173d1d3de7c8db87a729f866623 /src/soc/qualcomm/qcs405 | |
parent | b20a714bfab30a530b7e96aea19042caac4e6645 (diff) |
soc/qualcomm: Do resource transition
For ipq806x this fixes two resources getting declared
with same index. The latter previously overwrote former.
Change-Id: Ifee321d930d5433c824e2e977f1bb455766582f0
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/55914
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Diffstat (limited to 'src/soc/qualcomm/qcs405')
-rw-r--r-- | src/soc/qualcomm/qcs405/soc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/soc/qualcomm/qcs405/soc.c b/src/soc/qualcomm/qcs405/soc.c index 4bcad748d2..f1a2def791 100644 --- a/src/soc/qualcomm/qcs405/soc.c +++ b/src/soc/qualcomm/qcs405/soc.c @@ -7,9 +7,8 @@ static void soc_read_resources(struct device *dev) { - ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, (1 * GiB) / KiB); - reserved_ram_resource_kb(dev, 1, (uintptr_t)_dram_reserved / KiB, - REGION_SIZE(dram_reserved) / KiB); + ram_range(dev, 0, (uintptr_t)_dram, 1 * GiB); + reserved_ram_range(dev, 1, (uintptr_t)_dram_reserved, REGION_SIZE(dram_reserved)); } static void soc_init(struct device *dev) |