Skip to content

Commit 88149af

Browse files
soburikartben
authored andcommitted
soc: raspberrypi: Drop PINCTRL from Kconfig.defconfig
The `Kconfig.defconfig` is not good place for put `select PINCTRL`. Drop `select PINCTL` from `Kconfig.defconfig` and add it at each driver's Kconfig. Signed-off-by: TOKITA Hiroshi <[email protected]>
1 parent 1e47b6a commit 88149af

File tree

11 files changed

+10
-3
lines changed

11 files changed

+10
-3
lines changed

drivers/adc/Kconfig.rpi_pico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ config ADC_RPI_PICO
66
default y
77
depends on DT_HAS_RASPBERRYPI_PICO_ADC_ENABLED
88
select PICOSDK_USE_ADC
9+
select PINCTRL
910
depends on RESET

drivers/clock_control/Kconfig.rpi_pico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ config CLOCK_CONTROL_RPI_PICO
77
bool "Raspberry Pi Pico Clock Controller Driver"
88
default y
99
depends on DT_HAS_RASPBERRYPI_PICO_CLOCK_CONTROLLER_ENABLED
10+
select PINCTRL
1011

1112
if CLOCK_CONTROL_RPI_PICO
1213

drivers/gpio/Kconfig.rpi_pico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ config GPIO_RPI_PICO
55
default y
66
depends on DT_HAS_RASPBERRYPI_PICO_GPIO_ENABLED
77
select PICOSDK_USE_GPIO
8+
select PINCTRL
89
bool "Raspberry Pi Pico GPIO driver"

drivers/i2c/Kconfig.dw

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ menuconfig I2C_DW
55
bool "Design Ware I2C support"
66
default y
77
depends on DT_HAS_SNPS_DESIGNWARE_I2C_ENABLED
8+
select PINCTRL if DT_HAS_RASPBERRYPI_PICO_I2C_ENABLED
89
help
910
Enable the Design Ware I2C driver
1011

drivers/misc/pio_rpi_pico/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ config PIO_RPI_PICO
77
depends on DT_HAS_RASPBERRYPI_PICO_PIO_ENABLED
88
depends on RESET
99
select PICOSDK_USE_PIO
10+
select PINCTRL

drivers/pwm/Kconfig.rpi_pico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ config PWM_RPI_PICO
77
depends on DT_HAS_RASPBERRYPI_PICO_PWM_ENABLED
88
depends on RESET
99
select PICOSDK_USE_PWM
10+
select PINCTRL
1011
help
1112
Enable PWM driver for RPi Pico family of MCUs

drivers/serial/Kconfig.rpi_pico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ config UART_RPI_PICO_PIO
88
select SERIAL_HAS_DRIVER
99
select PICOSDK_USE_PIO
1010
select PICOSDK_USE_CLAIM
11+
select PINCTRL
1112
depends on RESET

drivers/spi/Kconfig.pl022

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
config SPI_PL022
55
default y
66
depends on DT_HAS_ARM_PL022_ENABLED
7+
select PINCTRL if DT_HAS_RASPBERRYPI_PICO_SPI_ENABLED
78
bool "ARM PL022 SPI driver"
89

910
if SPI_PL022

drivers/spi/Kconfig.rpi_pico

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ config SPI_RPI_PICO_PIO
77
depends on DT_HAS_RASPBERRYPI_PICO_SPI_PIO_ENABLED
88
select PICOSDK_USE_PIO
99
select PICOSDK_USE_CLAIM
10+
select PINCTRL
1011
help
1112
Enable driving SPI via PIO on the PICO

drivers/usb/device/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ config USB_DC_RPI_PICO
3737
bool "USB device controller driver for Raspberry Pi Pico devices"
3838
default y
3939
depends on DT_HAS_RASPBERRYPI_PICO_USBD_ENABLED
40+
select PINCTRL
4041
help
4142
Enable USB support on the RP2 family of processors.
4243

0 commit comments

Comments
 (0)