Skip to content

Commit

Permalink
drivers: gpio: add npcm gpio driver
Browse files Browse the repository at this point in the history
add npcm gpio driver.

gpio shell test GPIO50-52 ok

Signed-off-by: cpchiang <[email protected]>
  • Loading branch information
cpchiang authored and maxdog988 committed May 29, 2024
1 parent fcccfbb commit c6c14e6
Show file tree
Hide file tree
Showing 14 changed files with 1,604 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boards/nuvoton/npcm400f_evb/npcm400f_evb_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,7 @@ CONFIG_SERIAL=n
# Console Driver
CONFIG_CONSOLE=n
CONFIG_UART_CONSOLE=n

# GPIO Driver
CONFIG_GPIO=y
CONFIG_GPIO_NPCM=y
1 change: 1 addition & 0 deletions drivers/gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ zephyr_library_sources_ifdef(CONFIG_GPIO_NCT38XX gpio_nct38xx.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NCT38XX gpio_nct38xx_port.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NCT38XX_ALERT gpio_nct38xx_alert.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NEORV32 gpio_neorv32.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NPCM gpio_npcm.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NPCX gpio_npcx.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NPM1300 gpio_npm1300.c)
zephyr_library_sources_ifdef(CONFIG_GPIO_NPM6001 gpio_npm6001.c)
Expand Down
1 change: 1 addition & 0 deletions drivers/gpio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ source "drivers/gpio/Kconfig.mcux_rgpio"
source "drivers/gpio/Kconfig.mmio32"
source "drivers/gpio/Kconfig.nct38xx"
source "drivers/gpio/Kconfig.neorv32"
source "drivers/gpio/Kconfig.npcm"
source "drivers/gpio/Kconfig.npcx"
source "drivers/gpio/Kconfig.npm1300"
source "drivers/gpio/Kconfig.npm6001"
Expand Down
13 changes: 13 additions & 0 deletions drivers/gpio/Kconfig.npcm
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# NPCX GPIO driver configuration options

# Copyright (c) 2024 Nuvoton Technology Corporation.
# SPDX-License-Identifier: Apache-2.0

config GPIO_NPCM
bool "Nuvoton NPCM enhance Super I/O (eSIO) gpio driver"
default y
depends on DT_HAS_NUVOTON_NPCM_GPIO_ENABLED
help
This option enables the GPIO driver for NPCM family of
processors.
Say y if you wish to use serial port on NPCM MCU.
Loading

0 comments on commit c6c14e6

Please sign in to comment.