From 8c6e80125031611864afe777ea340ed2a1c13da0 Mon Sep 17 00:00:00 2001 From: Patryk Duda Date: Fri, 26 Apr 2024 19:27:39 +0200 Subject: [PATCH] soc: xlnx: zynq7000: Select SYSCON in SoC config The pinctrl driver actually uses SYSCON, so 'depends on' should be used instead of 'select'. SYSCON should be selected in SoC config instead, just like other SoC do. This breaks Kconfig dependency loop for configs that indirectly depends on SYSCON and causes PINCTRL to be selected. Signed-off-by: Patryk Duda --- drivers/pinctrl/Kconfig.xlnx | 2 +- soc/xlnx/zynq7000/xc7zxxx/Kconfig | 1 + soc/xlnx/zynq7000/xc7zxxxs/Kconfig | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/pinctrl/Kconfig.xlnx b/drivers/pinctrl/Kconfig.xlnx index bd61e09cad..dbee12050f 100644 --- a/drivers/pinctrl/Kconfig.xlnx +++ b/drivers/pinctrl/Kconfig.xlnx @@ -5,6 +5,6 @@ config PINCTRL_XLNX_ZYNQ bool "Xilinx Zynq 7000 processor system MIO pin controller driver" default y depends on DT_HAS_XLNX_PINCTRL_ZYNQ_ENABLED - select SYSCON + depends on SYSCON help Enable the Xilinx Zynq 7000 processor system MIO pin controller driver. diff --git a/soc/xlnx/zynq7000/xc7zxxx/Kconfig b/soc/xlnx/zynq7000/xc7zxxx/Kconfig index 7a94994fd8..4e2d138229 100644 --- a/soc/xlnx/zynq7000/xc7zxxx/Kconfig +++ b/soc/xlnx/zynq7000/xc7zxxx/Kconfig @@ -9,4 +9,5 @@ config SOC_SERIES_XC7ZXXX select ARM select CPU_CORTEX_A9 + select SYSCON select ARM_ARCH_TIMER_ERRATUM_740657 if ARM_ARCH_TIMER diff --git a/soc/xlnx/zynq7000/xc7zxxxs/Kconfig b/soc/xlnx/zynq7000/xc7zxxxs/Kconfig index ecac57425f..5195a0c248 100644 --- a/soc/xlnx/zynq7000/xc7zxxxs/Kconfig +++ b/soc/xlnx/zynq7000/xc7zxxxs/Kconfig @@ -9,4 +9,5 @@ config SOC_SERIES_XC7ZXXXS select ARM select CPU_CORTEX_A9 + select SYSCON select ARM_ARCH_TIMER_ERRATUM_740657 if ARM_ARCH_TIMER