diff options
Diffstat (limited to 'src/soc/qualcomm')
-rw-r--r-- | src/soc/qualcomm/ipq40xx/soc.c | 6 | ||||
-rw-r--r-- | src/soc/qualcomm/ipq806x/soc.c | 4 | ||||
-rw-r--r-- | src/soc/qualcomm/qcs405/soc.c | 4 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7180/soc.c | 8 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7280/soc.c | 14 |
5 files changed, 18 insertions, 18 deletions
diff --git a/src/soc/qualcomm/ipq40xx/soc.c b/src/soc/qualcomm/ipq40xx/soc.c index 32a22d53de..c99ae6f2d1 100644 --- a/src/soc/qualcomm/ipq40xx/soc.c +++ b/src/soc/qualcomm/ipq40xx/soc.c @@ -33,12 +33,12 @@ static void soc_read_resources(struct device *dev) { ipq_mem_map_t *ipq_mem_map = ((ipq_mem_map_t *)_dram); - ram_resource(dev, 0, LINUX_REGION1_START_KB, LINUX_REGION1_SIZE_KB); + ram_resource_kb(dev, 0, LINUX_REGION1_START_KB, LINUX_REGION1_SIZE_KB); - reserved_ram_resource(dev, 1, RESERVED_START_KB, RESERVED_SIZE_KB); + reserved_ram_resource_kb(dev, 1, RESERVED_START_KB, RESERVED_SIZE_KB); /* 0x88000000 to end, is the second region for Linux */ - ram_resource(dev, 2, LINUX_REGION2_START_KB, + ram_resource_kb(dev, 2, LINUX_REGION2_START_KB, (CONFIG_DRAM_SIZE_MB * KiB) - LINUX_REGION1_SIZE_KB - RESERVED_SIZE_KB); } diff --git a/src/soc/qualcomm/ipq806x/soc.c b/src/soc/qualcomm/ipq806x/soc.c index 327806f742..481ffc8e72 100644 --- a/src/soc/qualcomm/ipq806x/soc.c +++ b/src/soc/qualcomm/ipq806x/soc.c @@ -10,8 +10,8 @@ static void soc_read_resources(struct device *dev) { /* Reserve bottom 0x150_0000 bytes for NSS, SMEM, etc. */ - reserved_ram_resource(dev, 0, (uintptr_t)_dram / KiB, RESERVED_SIZE_KB); - ram_resource(dev, 0, (uintptr_t)_dram / KiB + RESERVED_SIZE_KB, + reserved_ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB, RESERVED_SIZE_KB); + ram_resource_kb(dev, 0, (uintptr_t)_dram / KiB + RESERVED_SIZE_KB, (CONFIG_DRAM_SIZE_MB * KiB) - RESERVED_SIZE_KB); } diff --git a/src/soc/qualcomm/qcs405/soc.c b/src/soc/qualcomm/qcs405/soc.c index 1237bb349e..4bcad748d2 100644 --- a/src/soc/qualcomm/qcs405/soc.c +++ b/src/soc/qualcomm/qcs405/soc.c @@ -7,8 +7,8 @@ static void soc_read_resources(struct device *dev) { - ram_resource(dev, 0, (uintptr_t)_dram / KiB, (1 * GiB) / KiB); - reserved_ram_resource(dev, 1, (uintptr_t)_dram_reserved / KiB, + 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); } diff --git a/src/soc/qualcomm/sc7180/soc.c b/src/soc/qualcomm/sc7180/soc.c index af274d2013..c78121ea71 100644 --- a/src/soc/qualcomm/sc7180/soc.c +++ b/src/soc/qualcomm/sc7180/soc.c @@ -12,14 +12,14 @@ static void soc_read_resources(struct device *dev) void *start = NULL; void *end = NULL; - ram_resource(dev, 0, (uintptr_t)ddr_region->offset / KiB, + ram_resource_kb(dev, 0, (uintptr_t)ddr_region->offset / KiB, ddr_region->size / KiB); - reserved_ram_resource(dev, 1, (uintptr_t)_dram_aop / KiB, + reserved_ram_resource_kb(dev, 1, (uintptr_t)_dram_aop / KiB, REGION_SIZE(dram_aop) / KiB); - reserved_ram_resource(dev, 2, (uintptr_t)_dram_soc / KiB, + reserved_ram_resource_kb(dev, 2, (uintptr_t)_dram_soc / KiB, REGION_SIZE(dram_soc) / KiB); if (soc_modem_carve_out(&start, &end)) - reserved_ram_resource(dev, 3, (uintptr_t)start / KiB, (end - start) / KiB); + reserved_ram_resource_kb(dev, 3, (uintptr_t)start / KiB, (end - start) / KiB); } static void soc_init(struct device *dev) diff --git a/src/soc/qualcomm/sc7280/soc.c b/src/soc/qualcomm/sc7280/soc.c index 98b62cc25a..2407439b0b 100644 --- a/src/soc/qualcomm/sc7280/soc.c +++ b/src/soc/qualcomm/sc7280/soc.c @@ -12,20 +12,20 @@ static void soc_read_resources(struct device *dev) void *start = NULL; void *end = NULL; - ram_resource(dev, 0, (uintptr_t)ddr_region->offset / KiB, + ram_resource_kb(dev, 0, (uintptr_t)ddr_region->offset / KiB, ddr_region->size / KiB); - reserved_ram_resource(dev, 1, (uintptr_t)_dram_soc / KiB, + reserved_ram_resource_kb(dev, 1, (uintptr_t)_dram_soc / KiB, REGION_SIZE(dram_soc) / KiB); - reserved_ram_resource(dev, 2, (uintptr_t)_dram_wlan / KiB, + reserved_ram_resource_kb(dev, 2, (uintptr_t)_dram_wlan / KiB, REGION_SIZE(dram_wlan) / KiB); - reserved_ram_resource(dev, 3, (uintptr_t)_dram_wpss / KiB, + reserved_ram_resource_kb(dev, 3, (uintptr_t)_dram_wpss / KiB, REGION_SIZE(dram_wpss) / KiB); - reserved_ram_resource(dev, 4, (uintptr_t)_dram_aop / KiB, + reserved_ram_resource_kb(dev, 4, (uintptr_t)_dram_aop / KiB, REGION_SIZE(dram_aop) / KiB); - reserved_ram_resource(dev, 5, (uintptr_t)_dram_cpucp / KiB, + reserved_ram_resource_kb(dev, 5, (uintptr_t)_dram_cpucp / KiB, REGION_SIZE(dram_cpucp) / KiB); if (soc_modem_carve_out(&start, &end)) - reserved_ram_resource(dev, 6, (uintptr_t)start / KiB, (end - start) / KiB); + reserved_ram_resource_kb(dev, 6, (uintptr_t)start / KiB, (end - start) / KiB); } static void soc_init(struct device *dev) |