]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: mxs: Add support for i.MX2[38] mxs pinctrl driver
authorLukasz Majewski <lukma@denx.de>
Wed, 19 Jun 2019 15:31:06 +0000 (17:31 +0200)
committerStefano Babic <sbabic@denx.de>
Fri, 19 Jul 2019 12:57:14 +0000 (14:57 +0200)
commit0f666533106adee28ef1848e845466a6907b3745
treecd0662722fc5c43c1383983309cc2c5db8ba79ea
parent397af35601f5de64d570f728a332cd37390ced9e
pinctrl: mxs: Add support for i.MX2[38] mxs pinctrl driver

The code responsible for setting proper values in the MUX registers
(in the mxs_pinctrl_set_state()) has been ported from Linux kernel
- SHA1: 17bb763e7eaf tag v5.1.11 from linux-stable.

As the pinctrl node in the imx28.dtsi file has gpio pins nodes as subnodes,
it was necessary to use 'dm_scan_fdt_dev()' (as a .bind method) to also
make them 'visible' by the DM's "gpio_mxs" driver.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Marek Vasut <marex@denx.de>
drivers/pinctrl/nxp/Kconfig
drivers/pinctrl/nxp/Makefile
drivers/pinctrl/nxp/pinctrl-mxs.c [new file with mode: 0644]
drivers/pinctrl/nxp/pinctrl-mxs.h [new file with mode: 0644]