Skip to content

Commit

Permalink
board: npcx: remove CONFIG_PINCTRL from defconfig of npcx boards
Browse files Browse the repository at this point in the history
The CONFIG_PINCTRL is removed from the board's defconfig files.
Drivers which use pin control function should add "select PINCTRL"
in their Kconfig files.

Fixes zephyrproject-rtos#78619

Signed-off-by: Jun Lin <[email protected]>
  • Loading branch information
ChiHuaL authored and JA-NXP committed Nov 19, 2024
1 parent bfeff1f commit 6f90319
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 9 deletions.
3 changes: 0 additions & 3 deletions boards/nuvoton/npcx4m8f_evb/npcx4m8f_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y
# GPIO Driver
CONFIG_GPIO=y

# Pin Controller Driver
CONFIG_PINCTRL=y

# Console Driver
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
3 changes: 0 additions & 3 deletions boards/nuvoton/npcx7m6fb_evb/npcx7m6fb_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y
# GPIO Driver
CONFIG_GPIO=y

# Pin Controller Driver
CONFIG_PINCTRL=y

# Console Driver
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
3 changes: 0 additions & 3 deletions boards/nuvoton/npcx9m6f_evb/npcx9m6f_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ CONFIG_UART_INTERRUPT_DRIVEN=y
# GPIO Driver
CONFIG_GPIO=y

# Pin Controller Driver
CONFIG_PINCTRL=y

# Console Driver
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
1 change: 1 addition & 0 deletions drivers/adc/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ config ADC_NPCX
bool "Nuvoton NPCX embedded controller (EC) ADC driver"
default y
depends on DT_HAS_NUVOTON_NPCX_ADC_ENABLED
select PINCTRL
help
This option enables the ADC driver for NPCX family of
processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/espi/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config ESPI_NPCX
default y
depends on SOC_FAMILY_NPCX
depends on DT_HAS_NUVOTON_NPCX_ESPI_ENABLED
select PINCTRL
help
This option enables the Intel Enhanced Serial Peripheral Interface
(eSPI) for NPCX family of processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/flash/Kconfig.npcx_fiu
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ config FLASH_NPCX_FIU_QSPI
bool "Nuvoton NPCX QSPI Bus Flash driver"
default y
depends on DT_HAS_NUVOTON_NPCX_FIU_QSPI_ENABLED
select PINCTRL
help
This option enables the QSPI Bus Flash driver for NPCX family of
processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/i2c/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ config I2C_NPCX
bool "Nuvoton NPCX embedded controller (EC) I2C driver"
default y
depends on DT_HAS_NUVOTON_NPCX_I2C_PORT_ENABLED
select PINCTRL
help
This option enables the I2C driver for NPCX family of
processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/i3c/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ config I3C_NPCX
depends on DT_HAS_NUVOTON_NPCX_I3C_ENABLED
select RESET
select I3C_IBI_WORKQUEUE if I3C_USE_IBI
select PINCTRL
default y
help
This option enables the I3C driver for NPCX family of
Expand Down
1 change: 1 addition & 0 deletions drivers/input/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ config INPUT_NPCX_KBD
default y
depends on DT_HAS_NUVOTON_NPCX_KBD_ENABLED
select INPUT_KBD_MATRIX
select PINCTRL
help
This option enables the keyboard scan driver for NPCX family of
processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/peci/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ config PECI_NPCX
default y
depends on DT_HAS_NUVOTON_NPCX_PECI_ENABLED
select PECI_INTERRUPT_DRIVEN
select PINCTRL
help
Enable the NPCX PECI IO driver.
1 change: 1 addition & 0 deletions drivers/ps2/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
menuconfig PS2_NPCX
bool "Nuvoton NPCX embedded controller (EC) PS2 driver"
depends on DT_HAS_NUVOTON_NPCX_PS2_CHANNEL_ENABLED
select PINCTRL
default y
help
Enable the NPCX family PS2 driver. It provides four PS/2 channels.
Expand Down
1 change: 1 addition & 0 deletions drivers/pwm/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ config PWM_NPCX
bool "Nuvoton NPCX embedded controller (EC) PWM driver"
default y
depends on DT_HAS_NUVOTON_NPCX_PWM_ENABLED
select PINCTRL
help
This option enables the PWM driver for NPCX family of
processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/sensor/nuvoton/nuvoton_tach_npcx/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ config TACH_NPCX
default y
depends on DT_HAS_NUVOTON_NPCX_TACH_ENABLED
depends on SOC_FAMILY_NPCX
select PINCTRL
help
Enable the "Nuvoton NPCX tachometer sensor.
1 change: 1 addition & 0 deletions drivers/serial/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ config UART_NPCX
depends on DT_HAS_NUVOTON_NPCX_UART_ENABLED
select SERIAL_HAS_DRIVER
select SERIAL_SUPPORT_INTERRUPT
select PINCTRL
help
This option enables the UART driver for NPCX family of
processors.
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/Kconfig.npcx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ menuconfig SPI_NPCX_SPIP
bool "Nuvoton NPCX embedded controller (EC) SPI driver"
default y
depends on DT_HAS_NUVOTON_NPCX_SPIP_ENABLED
select PINCTRL
help
Enable the SPI peripherals on NPCX MCU.

Expand Down
1 change: 1 addition & 0 deletions subsys/mgmt/ec_host_cmd/backends/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ config EC_HOST_CMD_BACKEND_SHI_NPCX
bool "SHI by Nuvoton"
depends on DT_HAS_NUVOTON_NPCX_SHI_ENABLED || \
DT_HAS_NUVOTON_NPCX_SHI_ENHANCED_ENABLED
select PINCTRL
help
This option enables the driver for SHI backend in the
Nuvoton NPCX chip.
Expand Down

0 comments on commit 6f90319

Please sign in to comment.