[PATCH 1/4] clk: qcom: Restrict IPQ5424, IPQ6018,IPQ9574, QCM2290 and others to ARM64

From: Krzysztof Kozlowski

Date: Thu Apr 16 2026 - 04:17:09 EST


Some clock drivers for IPQ5424, IPQ9574, QCM2290, QDU1000 and SA8775
already depend on ARM64. IPQ6018 is ARM64 only SoC (at least upstream)
so should not be a choice for ARM 32-bit builds, to make kernels smaller
and user choices easier.

IPQ_CMN_PLL is used only by the SoCs already having clock controllers
restricted to ARM64

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
---
drivers/clk/qcom/Kconfig | 11 +++++++++++
1 file changed, 11 insertions(+)

diff --git a/drivers/clk/qcom/Kconfig b/drivers/clk/qcom/Kconfig
index df21ef5ffd68..62489ab705ae 100644
--- a/drivers/clk/qcom/Kconfig
+++ b/drivers/clk/qcom/Kconfig
@@ -325,6 +325,7 @@ config IPQ_APSS_PLL

config IPQ_APSS_5424
tristate "IPQ5424 APSS Clock Controller"
+ depends on ARM64 || COMPILE_TEST
select IPQ_APSS_PLL
default y if IPQ_GCC_5424
help
@@ -335,6 +336,7 @@ config IPQ_APSS_5424
config IPQ_APSS_6018
tristate "IPQ6018 APSS Clock Controller"
select IPQ_APSS_PLL
+ depends on ARM64 || COMPILE_TEST
depends on QCOM_APCS_IPC || COMPILE_TEST
depends on QCOM_SMEM
help
@@ -346,6 +348,7 @@ config IPQ_APSS_6018

config IPQ_CMN_PLL
tristate "IPQ CMN PLL Clock Controller"
+ depends on ARM64 || COMPILE_TEST
help
Support for CMN PLL clock controller on IPQ platform. The
CMN PLL consumes the AHB/SYS clocks from GCC and supplies
@@ -394,6 +397,7 @@ config IPQ_GCC_5424

config IPQ_GCC_6018
tristate "IPQ6018 Global Clock Controller"
+ depends on ARM64 || COMPILE_TEST
help
Support for global clock controller on ipq6018 devices.
Say Y if you want to use peripheral devices such as UART, SPI,
@@ -419,6 +423,7 @@ config IPQ_LCC_806X

config IPQ_GCC_8074
tristate "IPQ8074 Global Clock Controller"
+ depends on ARM64 || COMPILE_TEST
select QCOM_GDSC
help
Support for global clock controller on ipq8074 devices.
@@ -428,6 +433,7 @@ config IPQ_GCC_8074

config IPQ_GCC_9574
tristate "IPQ9574 Global Clock Controller"
+ depends on ARM64 || COMPILE_TEST
help
Support for global clock controller on ipq9574 devices.
Say Y if you want to use peripheral devices such as UART, SPI,
@@ -642,6 +648,7 @@ config MSM_MMCC_8998

config QCM_GCC_2290
tristate "QCM2290 Global Clock Controller"
+ depends on ARM64 || COMPILE_TEST
select QCOM_GDSC
help
Support for the global clock controller on QCM2290 devices.
@@ -650,6 +657,7 @@ config QCM_GCC_2290

config QCM_DISPCC_2290
tristate "QCM2290 Display Clock Controller"
+ depends on ARM64 || COMPILE_TEST
select QCM_GCC_2290
help
Support for the display clock controller on Qualcomm Technologies, Inc
@@ -821,6 +829,7 @@ config SC_DISPCC_8280XP
config SA_GCC_8775P
tristate "SA8775 Global Clock Controller"
select QCOM_GDSC
+ depends on ARM64 || COMPILE_TEST
depends on COMMON_CLK_QCOM
help
Support for the global clock controller on SA8775 devices.
@@ -829,6 +838,7 @@ config SA_GCC_8775P

config SA_GPUCC_8775P
tristate "SA8775P Graphics clock controller"
+ depends on ARM64 || COMPILE_TEST
select QCOM_GDSC
select SA_GCC_8775P
help
@@ -1031,6 +1041,7 @@ config QCS_Q6SSTOP_404

config QDU_GCC_1000
tristate "QDU1000/QRU1000 Global Clock Controller"
+ depends on ARM64 || COMPILE_TEST
select QCOM_GDSC
help
Support for the global clock controller on QDU1000 and

--
2.51.0