]> asedeno.scripts.mit.edu Git - linux.git/commit
pinctrl: fsl: add scu based pinctrl support
authorA.s. Dong <aisheng.dong@nxp.com>
Tue, 30 Oct 2018 14:10:51 +0000 (14:10 +0000)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 5 Nov 2018 08:33:32 +0000 (09:33 +0100)
commitb96eea718bf697e4a490c2fabfb89995b9193c21
tree29b332e72b22312d8ba9656f1cb55d0dac5cd952
parent1ccb0426d7b6a94434a7b4f8d2d7f57de3c1b653
pinctrl: fsl: add scu based pinctrl support

Some i.MX SoCs (e.g. MX8QXP and MX8QM) contain a system controller
that is responsible for controlling the pad setting of the IPs that
are present. Communication between the host processor running an OS
and the system controller happens through a SCU protocol.

This patch classifies the pad settings into two categories: MMIO and SCU.
For the original MMIO method, no functional changes except organize them
into a few imx_*_mmio() functions. Besides that, we add the SCU based
Pad Mux and Pinconf setting support which are implemented in pinctrl-scu.c.

Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: Stefan Agner <stefan@agner.ch>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/freescale/Kconfig
drivers/pinctrl/freescale/Makefile
drivers/pinctrl/freescale/pinctrl-imx.c
drivers/pinctrl/freescale/pinctrl-imx.h
drivers/pinctrl/freescale/pinctrl-scu.c [new file with mode: 0644]