diff options
author | Ravi Kumar Bokka <rbokka@codeaurora.org> | 2021-03-05 16:01:07 +0530 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2021-03-15 06:23:06 +0000 |
commit | ce97bca09c342f8a418ffc4032e4848345895ab1 (patch) | |
tree | 920d58ac9e6be8cfd3affd3f1cc2d42a7f6374c4 /src/soc/qualcomm/sc7180 | |
parent | 8da56e6e75443ea6a6e2f0f883cf8d01cf48a02c (diff) |
sc7180: make symbols common accross multiple targets.
making the symbols common accross targets to avoid duplicates for each soc.
Signed-off-by: Ravi Kumar Bokka <rbokka@codeaurora.org>
Change-Id: Ic60f46891dfadc7db5ece02756cb449aacdd63c5
Reviewed-on: https://review.coreboot.org/c/coreboot/+/51337
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Shelley Chen <shchen@google.com>
Diffstat (limited to 'src/soc/qualcomm/sc7180')
-rw-r--r-- | src/soc/qualcomm/sc7180/carve_out.c | 2 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7180/include/soc/symbols.h | 21 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7180/mmu.c | 2 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7180/qclib.c | 2 | ||||
-rw-r--r-- | src/soc/qualcomm/sc7180/soc.c | 2 |
5 files changed, 4 insertions, 25 deletions
diff --git a/src/soc/qualcomm/sc7180/carve_out.c b/src/soc/qualcomm/sc7180/carve_out.c index 604abbdeeb..e129005c12 100644 --- a/src/soc/qualcomm/sc7180/carve_out.c +++ b/src/soc/qualcomm/sc7180/carve_out.c @@ -2,7 +2,7 @@ #include <arch/stages.h> #include <soc/mmu_common.h> -#include <soc/symbols.h> +#include <soc/symbols_common.h> #include <device/mmio.h> #define MODEM_ID_LTE 0x004c5445 diff --git a/src/soc/qualcomm/sc7180/include/soc/symbols.h b/src/soc/qualcomm/sc7180/include/soc/symbols.h deleted file mode 100644 index 1281d6370d..0000000000 --- a/src/soc/qualcomm/sc7180/include/soc/symbols.h +++ /dev/null @@ -1,21 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-only */ - -#ifndef _SOC_QUALCOMM_SC7180_SYMBOLS_H_ -#define _SOC_QUALCOMM_SC7180_SYMBOLS_H_ - -#include <symbols.h> - -DECLARE_REGION(ssram) -DECLARE_REGION(bsram) -DECLARE_REGION(dram_aop) -DECLARE_REGION(dram_soc) -DECLARE_REGION(dram_modem_wifi_only) -DECLARE_REGION(dram_modem_extra) -DECLARE_REGION(dcb) -DECLARE_REGION(pmic) -DECLARE_REGION(limits_cfg) -DECLARE_REGION(aop_code_ram) -DECLARE_REGION(aop_data_ram) -DECLARE_REGION(modem_id) - -#endif /* _SOC_QUALCOMM_SC7180_SYMBOLS_H_ */ diff --git a/src/soc/qualcomm/sc7180/mmu.c b/src/soc/qualcomm/sc7180/mmu.c index 8447c01b72..03e62e507e 100644 --- a/src/soc/qualcomm/sc7180/mmu.c +++ b/src/soc/qualcomm/sc7180/mmu.c @@ -5,7 +5,7 @@ #include <arch/cache.h> #include <soc/mmu.h> #include <soc/mmu_common.h> -#include <soc/symbols.h> +#include <soc/symbols_common.h> void sc7180_mmu_init(void) { diff --git a/src/soc/qualcomm/sc7180/qclib.c b/src/soc/qualcomm/sc7180/qclib.c index e6d54be659..cafc9703a8 100644 --- a/src/soc/qualcomm/sc7180/qclib.c +++ b/src/soc/qualcomm/sc7180/qclib.c @@ -2,7 +2,7 @@ #include <cbfs.h> #include <fmap.h> -#include <soc/symbols.h> +#include <soc/symbols_common.h> #include <soc/qclib_common.h> int qclib_soc_blob_load(void) diff --git a/src/soc/qualcomm/sc7180/soc.c b/src/soc/qualcomm/sc7180/soc.c index d8cade4249..e7efff45a3 100644 --- a/src/soc/qualcomm/sc7180/soc.c +++ b/src/soc/qualcomm/sc7180/soc.c @@ -4,7 +4,7 @@ #include <device/device.h> #include <soc/mmu.h> #include <soc/mmu_common.h> -#include <soc/symbols.h> +#include <soc/symbols_common.h> #include <soc/aop.h> static void soc_read_resources(struct device *dev) |