linux/drivers/pinctrl/renesas
Geert Uytterhoeven 7b1425f08f pinctrl: renesas: Protect GPIO leftovers by CONFIG_PINCTRL_SH_FUNC_GPIO
On SuperH and ARM SH/R-Mobile SoCs, the pin control driver handles
GPIOs, too.  To reduce code size when compiling a kernel supporting only
modern SoCs, most, but not all, of the GPIO functionality is protected
by checks for CONFIG_PINCTRL_SH_FUNC_GPIO.

Factor out the remaining parts when not needed:
  1. sh_pfc_soc_info.{in,out}put describe GPIO pins that have input
     resp. output capabilities (SuperH and SH/R-Mobile).
  2. sh_pfc_soc_info.gpio_irq{,_size} describe the mapping from GPIO
     pins to interrupt numbers (SH/R-Mobile).
  3. sh_pfc_gpio_set_direction() configures GPIO direction, called from
     the GPIO driver through pinctrl_gpio_direction_{in,out}put()
     (SH/R-Mobile).  Unfortunately this function cannot just be moved to
     drivers/pinctrl/renesas/gpio.c, as it relies on knowledge of
     sh_pfc_pinctrl, which is internal to
     drivers/pinctrl/renesas/pinctrl.c.

While code size reduction is minimal, this does help in documenting
depencies.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/20201028151637.1734130-9-geert+renesas@glider.be
2020-11-13 15:37:41 +01:00
..
core.c pinctrl: renesas: Protect GPIO leftovers by CONFIG_PINCTRL_SH_FUNC_GPIO 2020-11-13 15:37:41 +01:00
core.h pinctrl: renesas: Factor out common R-Car Gen3 bias handling 2020-11-13 15:37:41 +01:00
gpio.c pinctrl: renesas: Singular/plural grammar fixes 2020-11-13 15:37:41 +01:00
Kconfig
Makefile
pfc-emev2.c
pfc-r8a73a4.c
pfc-r8a7740.c
pfc-r8a7778.c pinctrl: renesas: r8a7778: Use common R-Car bias handling 2020-11-13 15:37:41 +01:00
pfc-r8a7779.c
pfc-r8a7790.c pinctrl: renesas: r8a7790: Optimize pinctrl image size for R8A7742 2020-11-13 15:37:41 +01:00
pfc-r8a7791.c pinctrl: renesas: r8a7791: Optimize pinctrl image size for R8A774[34] 2020-11-13 15:37:41 +01:00
pfc-r8a7792.c
pfc-r8a7794.c
pfc-r8a7796.c pinctrl: renesas: Factor out common R-Car Gen3 bias handling 2020-11-13 15:37:41 +01:00
pfc-r8a77470.c
pfc-r8a77950.c pinctrl: renesas: Factor out common R-Car Gen3 bias handling 2020-11-13 15:37:41 +01:00
pfc-r8a77951.c pinctrl: renesas: Factor out common R-Car Gen3 bias handling 2020-11-13 15:37:41 +01:00
pfc-r8a77965.c pinctrl: renesas: Factor out common R-Car Gen3 bias handling 2020-11-13 15:37:41 +01:00
pfc-r8a77970.c
pfc-r8a77980.c
pfc-r8a77990.c pinctrl: renesas: Factor out common R-Car Gen3 bias handling 2020-11-13 15:37:41 +01:00
pfc-r8a77995.c
pfc-sh73a0.c
pfc-sh7203.c
pfc-sh7264.c
pfc-sh7269.c
pfc-sh7720.c
pfc-sh7722.c
pfc-sh7723.c
pfc-sh7724.c
pfc-sh7734.c
pfc-sh7757.c
pfc-sh7785.c
pfc-sh7786.c
pfc-shx3.c
pinctrl-rza1.c
pinctrl-rza2.c
pinctrl-rzn1.c
pinctrl.c pinctrl: renesas: Protect GPIO leftovers by CONFIG_PINCTRL_SH_FUNC_GPIO 2020-11-13 15:37:41 +01:00
sh_pfc.h pinctrl: renesas: Protect GPIO leftovers by CONFIG_PINCTRL_SH_FUNC_GPIO 2020-11-13 15:37:41 +01:00