diff options
| author | Marek Vasut <marex@denx.de> | 2025-01-24 15:50:56 +0100 |
|---|---|---|
| committer | Fabio Estevam <festevam@gmail.com> | 2025-01-25 09:06:32 -0300 |
| commit | 40c477c71ceb3ca0f0cc4746b9e247460766d56c (patch) | |
| tree | fd9eaee0255a91ffc8e6ad752e05a203e4b5f6c0 /drivers/pinctrl/nxp/pinctrl-imx8.c | |
| parent | ecd087dffe6973d910cb6d4c168bfad7a1b7902c (diff) | |
pinctrl: imx: Split imx_pinctrl_set_state() into common and mmio parts
Split imx_pinctrl_set_state() into imx_pinctrl_set_state_common() and
imx_pinctrl_set_state_mmio(). The former does the common configuration
parsing, the later does call imx_pinctrl_set_state_common() and then
does pin configuration using either SCU or MMIO accesses. The SCU part
is going to be moved out in follow up patches.
This is a preparatory patch for follow up pinctrl drivers which
do not use the MMIO accessors, but some other means, like SCU or
otherwise. Those will call the common imx_pinctrl_set_state_common()
function wrapped into some other imx_pinctrl_set_state_*() function,
in a way similar to imx_pinctrl_set_state_mmio() does so for MMIO
accesses.
Update all imx_pinctrl_set_state_mmio() call sites to call
imx_pinctrl_set_state_mmio() instead.
No functional change.
Signed-off-by: Marek Vasut <marex@denx.de>
Diffstat (limited to 'drivers/pinctrl/nxp/pinctrl-imx8.c')
| -rw-r--r-- | drivers/pinctrl/nxp/pinctrl-imx8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/nxp/pinctrl-imx8.c b/drivers/pinctrl/nxp/pinctrl-imx8.c index a48e1b56df1..b6acc19ef8b 100644 --- a/drivers/pinctrl/nxp/pinctrl-imx8.c +++ b/drivers/pinctrl/nxp/pinctrl-imx8.c @@ -22,7 +22,7 @@ static const struct udevice_id imx8_pinctrl_match[] = { }; static const struct pinctrl_ops imx8_pinctrl_ops = { - .set_state = imx_pinctrl_set_state, + .set_state = imx_pinctrl_set_state_mmio, }; U_BOOT_DRIVER(imx8_pinctrl) = { |
