[PATCH V3 0/9] Support i.MX8 SoCs pinctrl drivers built as module

Anson Huang
2020-06-09T14:32:18Z

There are more and mroe requirements that SoC specific modules should be built
as module in order to support generic kernel image, such as Android GKI concept.

This patch series supports i.MX8 SoCs pinctrl drivers to be built as module,
including i.MX8MQ/MM/MN/MP/QXP/QM/DXL SoCs, and it also supports building i.MX
common pinctrl driver and i.MX SCU common pinctrl driver as module.

Compared to V2, the changes are as below:
- add "depends on OF" to PINCTRL_IMX to fix build error using x86 randconfig;
- change the config dependency of PINCTRL_IMX_SCU to support scenario of
building in PINCTRL_IMX while building PINCTRL_IMX_SCU as module, no other
good choice in my mind, if you have better idea without changing the driver
code, please advise.

Anson Huang (9):
pinctrl: imx: Support building SCU pinctrl driver as module
pinctrl: imx: Support building i.MX pinctrl driver as module
pinctrl: imx8mm: Support building as module
pinctrl: imx8mn: Support building as module
pinctrl: imx8mq: Support building as module
pinctrl: imx8mp: Support building as module
pinctrl: imx8qxp: Support building as module
pinctrl: imx8qm: Support building as module
pinctrl: imx8dxl: Support building as module

drivers/pinctrl/freescale/Kconfig | 27 ++++++++++++++-------------
drivers/pinctrl/freescale/pinctrl-imx.c | 4 ++++
drivers/pinctrl/freescale/pinctrl-imx.h | 2 +-
drivers/pinctrl/freescale/pinctrl-imx8dxl.c | 9 +++------
drivers/pinctrl/freescale/pinctrl-imx8mm.c | 10 ++++------
drivers/pinctrl/freescale/pinctrl-imx8mn.c | 10 ++++------
drivers/pinctrl/freescale/pinctrl-imx8mp.c | 10 ++++------
drivers/pinctrl/freescale/pinctrl-imx8mq.c | 9 ++++-----
drivers/pinctrl/freescale/pinctrl-imx8qm.c | 9 +++------
drivers/pinctrl/freescale/pinctrl-imx8qxp.c | 9 +++------
drivers/pinctrl/freescale/pinctrl-scu.c | 6 ++++++
11 files changed, 50 insertions(+), 55 deletions(-)

--
2.7.4