ARM: qcom: merge remaining subplatforms into sensible Kconfig entry
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Sat, 16 Dec 2023 16:27:00 +0000 (18:27 +0200)
committerBjorn Andersson <andersson@kernel.org>
Tue, 6 Feb 2024 21:00:02 +0000 (15:00 -0600)
Three remaining Qualcomm platforms have special handling of the
TEXT_OFFSET to reserve the memory at the beginnig of the system RAM, see
the commit 9e775ad19f52 ("ARM: 7012/1: Set proper TEXT_OFFSET for newer
MSMs"). This is required for older platforms like IPQ40xx, MSM8x60,
MSM8960 and APQ8064 and is compatible with other 32-bit Qualcomm
platforms.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20231216162700.863456-4-dmitry.baryshkov@linaro.org
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm/Makefile
arch/arm/mach-qcom/Kconfig

index 473280d..d82908b 100644 (file)
@@ -158,9 +158,7 @@ textofs-$(CONFIG_ARCH_REALTEK)  := 0x00108000
 ifeq ($(CONFIG_ARCH_SA1100),y)
 textofs-$(CONFIG_SA1111) := 0x00208000
 endif
-textofs-$(CONFIG_ARCH_IPQ40XX) := 0x00208000
-textofs-$(CONFIG_ARCH_MSM8X60) := 0x00208000
-textofs-$(CONFIG_ARCH_MSM8960) := 0x00208000
+textofs-$(CONFIG_ARCH_QCOM_RESERVE_SMEM) := 0x00208000
 textofs-$(CONFIG_ARCH_MESON) := 0x00208000
 textofs-$(CONFIG_ARCH_AXXIA) := 0x00308000
 
index 27d5ca0..f4765be 100644 (file)
@@ -15,13 +15,10 @@ menuconfig ARCH_QCOM
 
 if ARCH_QCOM
 
-config ARCH_IPQ40XX
-       bool "Enable support for IPQ40XX"
-
-config ARCH_MSM8X60
-       bool "Enable support for MSM8X60"
-
-config ARCH_MSM8960
-       bool "Enable support for MSM8960"
+config ARCH_QCOM_RESERVE_SMEM
+       bool "Reserve SMEM at the beginning of RAM"
+       help
+         Reserve 2MB at the beginning of the System RAM for shared mem.
+         This is required on IPQ40xx, MSM8x60 and MSM8960 platforms.
 
 endif