xref: /openbmc/linux/drivers/pinctrl/stm32/Kconfig (revision 619f8ca4)
1ec8f24b7SThomas Gleixner# SPDX-License-Identifier: GPL-2.0-only
2aceb16dcSMaxime Coquelinif ARCH_STM32 || COMPILE_TEST
3aceb16dcSMaxime Coquelin
4aceb16dcSMaxime Coquelinconfig PINCTRL_STM32
5aceb16dcSMaxime Coquelin	bool
6aceb16dcSMaxime Coquelin	depends on OF
7aceb16dcSMaxime Coquelin	select PINMUX
8aceb16dcSMaxime Coquelin	select GENERIC_PINCONF
9aceb16dcSMaxime Coquelin	select GPIOLIB
108db63f53SMasahiro Yamada	select IRQ_DOMAIN_HIERARCHY
110eb9f683SAlexandre TORGUE	select MFD_SYSCON
12aceb16dcSMaxime Coquelin
13aceb16dcSMaxime Coquelinconfig PINCTRL_STM32F429
14aceb16dcSMaxime Coquelin	bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
1586822c2fSMasahiro Yamada	depends on OF && HAS_IOMEM
16aceb16dcSMaxime Coquelin	default MACH_STM32F429
17aceb16dcSMaxime Coquelin	select PINCTRL_STM32
18aceb16dcSMaxime Coquelin
19ca028dbbSAlexandre TORGUEconfig PINCTRL_STM32F469
20ca028dbbSAlexandre TORGUE	bool "STMicroelectronics STM32F469 pin control" if COMPILE_TEST && !MACH_STM32F469
2186822c2fSMasahiro Yamada	depends on OF && HAS_IOMEM
22ca028dbbSAlexandre TORGUE	default MACH_STM32F469
23ca028dbbSAlexandre TORGUE	select PINCTRL_STM32
24ca028dbbSAlexandre TORGUE
2525af8bfaSAlexandre TORGUEconfig PINCTRL_STM32F746
2625af8bfaSAlexandre TORGUE	bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
2786822c2fSMasahiro Yamada	depends on OF && HAS_IOMEM
2825af8bfaSAlexandre TORGUE	default MACH_STM32F746
2925af8bfaSAlexandre TORGUE	select PINCTRL_STM32
3025af8bfaSAlexandre TORGUE
31f90160fcSAlexandre Torgueconfig PINCTRL_STM32F769
32f90160fcSAlexandre Torgue	bool "STMicroelectronics STM32F769 pin control" if COMPILE_TEST && !MACH_STM32F769
3386822c2fSMasahiro Yamada	depends on OF && HAS_IOMEM
34f90160fcSAlexandre Torgue	default MACH_STM32F769
35f90160fcSAlexandre Torgue	select PINCTRL_STM32
36f90160fcSAlexandre Torgue
37deb30f51SAlexandre TORGUEconfig PINCTRL_STM32H743
38deb30f51SAlexandre TORGUE	bool "STMicroelectronics STM32H743 pin control" if COMPILE_TEST && !MACH_STM32H743
3986822c2fSMasahiro Yamada	depends on OF && HAS_IOMEM
40deb30f51SAlexandre TORGUE	default MACH_STM32H743
41deb30f51SAlexandre TORGUE	select PINCTRL_STM32
424ef4cc13SLudovic Barre
43a022135aSAlexandre Torgueconfig PINCTRL_STM32MP135
44a022135aSAlexandre Torgue	bool "STMicroelectronics STM32MP135 pin control" if COMPILE_TEST && !MACH_STM32MP13
45a022135aSAlexandre Torgue	depends on OF && HAS_IOMEM
46a022135aSAlexandre Torgue	default MACH_STM32MP13
47a022135aSAlexandre Torgue	select PINCTRL_STM32
48a022135aSAlexandre Torgue
494ef4cc13SLudovic Barreconfig PINCTRL_STM32MP157
504ef4cc13SLudovic Barre	bool "STMicroelectronics STM32MP157 pin control" if COMPILE_TEST && !MACH_STM32MP157
5186822c2fSMasahiro Yamada	depends on OF && HAS_IOMEM
524ef4cc13SLudovic Barre	default MACH_STM32MP157
534ef4cc13SLudovic Barre	select PINCTRL_STM32
54*619f8ca4SAlexandre Torgue
55*619f8ca4SAlexandre Torgueconfig PINCTRL_STM32MP257
56*619f8ca4SAlexandre Torgue	bool "STMicroelectronics STM32MP257 pin control" if COMPILE_TEST && !MACH_STM32MP25
57*619f8ca4SAlexandre Torgue	depends on OF && HAS_IOMEM
58*619f8ca4SAlexandre Torgue	default MACH_STM32MP25
59*619f8ca4SAlexandre Torgue	select PINCTRL_STM32
60aceb16dcSMaxime Coquelinendif
61