Skip to content

Commit

Permalink
gpio: Add imx gpio driver shim
Browse files Browse the repository at this point in the history
Adds a shim layer around the imx gpio driver to adapt it to the Zephyr
gpio interface.

For now only the port 4 was tested.

Signed-off-by: Stanislav Poboril <[email protected]>
  • Loading branch information
stanislav-poboril authored and MaureenHelm committed May 2, 2018
1 parent 15c4007 commit 67ba7d8
Show file tree
Hide file tree
Showing 5 changed files with 478 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ zephyr_sources_ifdef(CONFIG_GPIO_DW gpio_dw.c)
zephyr_sources_ifdef(CONFIG_GPIO_ESP32 gpio_esp32.c)
zephyr_sources_ifdef(CONFIG_GPIO_FE310 gpio_fe310.c)
zephyr_sources_ifdef(CONFIG_GPIO_GECKO gpio_gecko.c)
zephyr_sources_ifdef(CONFIG_GPIO_IMX gpio_imx.c)
zephyr_sources_ifdef(CONFIG_GPIO_MCUX gpio_mcux.c)
zephyr_sources_ifdef(CONFIG_GPIO_MCUX_IGPIO gpio_mcux_igpio.c)
zephyr_sources_ifdef(CONFIG_GPIO_MCUX_LPC gpio_mcux_lpc.c)
Expand Down
59 changes: 59 additions & 0 deletions drivers/gpio/Kconfig.imx
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Kconfig.imx - IMX GPIO configuration options
#
# Copyright (c) 2018, NXP
#
# SPDX-License-Identifier: Apache-2.0
#

menuconfig GPIO_IMX
bool "IMX GPIO driver"
depends on GPIO && HAS_IMX_GPIO
default n
help
Enable the IMX GPIO driver.

if GPIO_IMX

config GPIO_IMX_PORT_1
bool "Port 1"
default n
help
Enable Port 1.

config GPIO_IMX_PORT_2
bool "Port 2"
default n
help
Enable Port 2.

config GPIO_IMX_PORT_3
bool "Port 3"
default n
help
Enable Port 3.

config GPIO_IMX_PORT_4
bool "Port 4"
default n
help
Enable Port 4.

config GPIO_IMX_PORT_5
bool "Port 5"
default n
help
Enable Port 5.

config GPIO_IMX_PORT_6
bool "Port 6"
default n
help
Enable Port 6.

config GPIO_IMX_PORT_7
bool "Port 7"
default n
help
Enable Port 7.

endif # GPIO_IMX
Loading

0 comments on commit 67ba7d8

Please sign in to comment.