-
- Downloads
gpio: nomadik: extract GPIO platform driver from drivers/pinctrl/nomadik/
Previously, drivers/pinctrl/nomadik/pinctrl-nomadik.c registered two platform drivers: pinctrl & GPIO. Move the GPIO aspect to the drivers/gpio/ folder, as would be expected. Both drivers are intertwined for a reason; pinctrl requires access to GPIO registers for pinmuxing, pull-disable, disabling interrupts while setting the muxing and wakeup control. Information sharing is done through a shared array containing GPIO chips and a few helper functions. That shared array is not touched from gpio-nomadik when CONFIG_PINCTRL_NOMADIK is not defined. Make no change to the code that moved into gpio-nomadik; there should be no behavior change following. A few functions are shared and header comments are added. Checkpatch warnings are addressed. NUM_BANKS is renamed to NMK_MAX_BANKS. It is supported to compile gpio-nomadik without pinctrl-nomadik. The opposite is not true. Signed-off-by:Théo Lebrun <theo.lebrun@bootlin.com> Link: https://lore.kernel.org/r/20240228-mbly-gpio-v2-6-3ba757474006@bootlin.com Signed-off-by:
Linus Walleij <linus.walleij@linaro.org>
Showing
- MAINTAINERS 1 addition, 0 deletionsMAINTAINERS
- drivers/gpio/Kconfig 12 additions, 0 deletionsdrivers/gpio/Kconfig
- drivers/gpio/Makefile 1 addition, 0 deletionsdrivers/gpio/Makefile
- drivers/gpio/gpio-nomadik.c 660 additions, 0 deletionsdrivers/gpio/gpio-nomadik.c
- drivers/pinctrl/nomadik/Kconfig 2 additions, 3 deletionsdrivers/pinctrl/nomadik/Kconfig
- drivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c 2 additions, 1 deletiondrivers/pinctrl/nomadik/pinctrl-nomadik-db8500.c
- drivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c 2 additions, 1 deletiondrivers/pinctrl/nomadik/pinctrl-nomadik-stn8815.c
- drivers/pinctrl/nomadik/pinctrl-nomadik.c 15 additions, 707 deletionsdrivers/pinctrl/nomadik/pinctrl-nomadik.c
- include/linux/gpio/gpio-nomadik.h 109 additions, 13 deletionsinclude/linux/gpio/gpio-nomadik.h
Loading
Please register or sign in to comment