]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: Add Rapid GPIO2P driver for i.MX7ULP
authorPeng Fan <peng.fan@nxp.com>
Wed, 22 Feb 2017 08:21:45 +0000 (16:21 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 17 Mar 2017 08:27:08 +0000 (09:27 +0100)
commit4d20334ba85ccf041f76381079584bbee6000081
treecf89b02ce1cddbcfeab3646d9fa2d30ed38167bf
parent0183d1fcfb837dd689ef0255fa6773543d245af5
gpio: Add Rapid GPIO2P driver for i.MX7ULP

Add the imx_rgpio2p driver for Rapid GPIO2P controllers on i.MX7ULP.
Have added all ports on RGPIO2P_0 and RGPIO2P_1.

The configurations CONFIG_IMX_RGPIO2P and CONFIG_DM_GPIO must be set
to y to enable the drivers.

To use the GPIO function, the IBE and OBE needs to set in IOMUXC.
We did not set the bits in driver, but leave them to IOMUXC settings
of the GPIO pins. User should use IMX_GPIO_NR to generate the GPIO number
for gpio APIs access.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
Reviewed-by : Stefano Babic <sbabic@denx.de>
arch/arm/include/asm/arch-mx7ulp/gpio.h [new file with mode: 0644]
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/gpio/imx_rgpio2p.c [new file with mode: 0644]