treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / drivers / pinctrl / stm32 / Kconfig
blobf36f29113370684cdfb7e20df46f8c62f9dcca57
1 # SPDX-License-Identifier: GPL-2.0-only
2 if ARCH_STM32 || COMPILE_TEST
4 config PINCTRL_STM32
5         bool
6         depends on OF
7         select PINMUX
8         select GENERIC_PINCONF
9         select GPIOLIB
10         select IRQ_DOMAIN_HIERARCHY
11         select MFD_SYSCON
13 config PINCTRL_STM32F429
14         bool "STMicroelectronics STM32F429 pin control" if COMPILE_TEST && !MACH_STM32F429
15         depends on OF && HAS_IOMEM
16         default MACH_STM32F429
17         select PINCTRL_STM32
19 config PINCTRL_STM32F469
20         bool "STMicroelectronics STM32F469 pin control" if COMPILE_TEST && !MACH_STM32F469
21         depends on OF && HAS_IOMEM
22         default MACH_STM32F469
23         select PINCTRL_STM32
25 config PINCTRL_STM32F746
26         bool "STMicroelectronics STM32F746 pin control" if COMPILE_TEST && !MACH_STM32F746
27         depends on OF && HAS_IOMEM
28         default MACH_STM32F746
29         select PINCTRL_STM32
31 config PINCTRL_STM32F769
32         bool "STMicroelectronics STM32F769 pin control" if COMPILE_TEST && !MACH_STM32F769
33         depends on OF && HAS_IOMEM
34         default MACH_STM32F769
35         select PINCTRL_STM32
37 config PINCTRL_STM32H743
38         bool "STMicroelectronics STM32H743 pin control" if COMPILE_TEST && !MACH_STM32H743
39         depends on OF && HAS_IOMEM
40         default MACH_STM32H743
41         select PINCTRL_STM32
43 config PINCTRL_STM32MP157
44         bool "STMicroelectronics STM32MP157 pin control" if COMPILE_TEST && !MACH_STM32MP157
45         depends on OF && HAS_IOMEM
46         default MACH_STM32MP157
47         select PINCTRL_STM32
48 endif