18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ciif ARCH_STM32 || COMPILE_TEST
38c2ecf20Sopenharmony_ci
48c2ecf20Sopenharmony_ciconfig PINCTRL_STM32
58c2ecf20Sopenharmony_ci	bool
68c2ecf20Sopenharmony_ci	depends on OF
78c2ecf20Sopenharmony_ci	select PINMUX
88c2ecf20Sopenharmony_ci	select GENERIC_PINCONF
98c2ecf20Sopenharmony_ci	select GPIOLIB
108c2ecf20Sopenharmony_ci	select IRQ_DOMAIN_HIERARCHY
118c2ecf20Sopenharmony_ci	select MFD_SYSCON
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ciconfig PINCTRL_STM32F429
148c2ecf20Sopenharmony_ci	bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
158c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
168c2ecf20Sopenharmony_ci	default MACH_STM32F429
178c2ecf20Sopenharmony_ci	select PINCTRL_STM32
188c2ecf20Sopenharmony_ci
198c2ecf20Sopenharmony_ciconfig PINCTRL_STM32F469
208c2ecf20Sopenharmony_ci	bool "STMicroelectronics STM32F469 pin control" if COMPILE_TEST && !MACH_STM32F469
218c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
228c2ecf20Sopenharmony_ci	default MACH_STM32F469
238c2ecf20Sopenharmony_ci	select PINCTRL_STM32
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ciconfig PINCTRL_STM32F746
268c2ecf20Sopenharmony_ci	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
278c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
288c2ecf20Sopenharmony_ci	default MACH_STM32F746
298c2ecf20Sopenharmony_ci	select PINCTRL_STM32
308c2ecf20Sopenharmony_ci
318c2ecf20Sopenharmony_ciconfig PINCTRL_STM32F769
328c2ecf20Sopenharmony_ci	bool "STMicroelectronics STM32F769 pin control" if COMPILE_TEST && !MACH_STM32F769
338c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
348c2ecf20Sopenharmony_ci	default MACH_STM32F769
358c2ecf20Sopenharmony_ci	select PINCTRL_STM32
368c2ecf20Sopenharmony_ci
378c2ecf20Sopenharmony_ciconfig PINCTRL_STM32H743
388c2ecf20Sopenharmony_ci	bool "STMicroelectronics STM32H743 pin control" if COMPILE_TEST && !MACH_STM32H743
398c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
408c2ecf20Sopenharmony_ci	default MACH_STM32H743
418c2ecf20Sopenharmony_ci	select PINCTRL_STM32
428c2ecf20Sopenharmony_ci
438c2ecf20Sopenharmony_ciconfig PINCTRL_STM32MP157
448c2ecf20Sopenharmony_ci	bool "STMicroelectronics STM32MP157 pin control" if COMPILE_TEST && !MACH_STM32MP157
458c2ecf20Sopenharmony_ci	depends on OF && HAS_IOMEM
468c2ecf20Sopenharmony_ci	default MACH_STM32MP157
478c2ecf20Sopenharmony_ci	select PINCTRL_STM32
488c2ecf20Sopenharmony_ciendif
49