diff mbox series

arm64: Kconfig.platforms: select reset controller for i.MX8M platforms

Message ID 20221222115903.2676709-1-m.felsch@pengutronix.de (mailing list archive)
State New, archived
Headers show
Series arm64: Kconfig.platforms: select reset controller for i.MX8M platforms | expand

Commit Message

Marco Felsch Dec. 22, 2022, 11:59 a.m. UTC
All i.MX8M platforms have such a reset controller so enable the support
per default. This helps the user to avoid misconfiguration due to
missing driver support.

Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
---
 arch/arm64/Kconfig.platforms | 2 ++
 1 file changed, 2 insertions(+)

Comments

Arnd Bergmann Dec. 29, 2022, 9:28 a.m. UTC | #1
On Thu, Dec 22, 2022, at 12:59, Marco Felsch wrote:
> All i.MX8M platforms have such a reset controller so enable the support
> per default. This helps the user to avoid misconfiguration due to
> missing driver support.
>
> Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>

Platform Kconfigs should generally not select random subsystems
or drivers unless there is a compile-time dependency or the
symbols are not user visible (e.g. clocksource and irqchip).

Please put the drivers in the defconfig file instead.

     Arnd
diff mbox series

Patch

diff --git a/arch/arm64/Kconfig.platforms b/arch/arm64/Kconfig.platforms
index 76580b932e446..35c91f5d4bed8 100644
--- a/arch/arm64/Kconfig.platforms
+++ b/arch/arm64/Kconfig.platforms
@@ -212,6 +212,8 @@  config ARCH_MXC
 	select IMX_GPCV2_PM_DOMAINS
 	select PM
 	select PM_GENERIC_DOMAINS
+	select RESET_CONTROLLER
+	select RESET_IMX7
 	select SOC_BUS
 	select TIMER_IMX_SYS_CTR
 	help