Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: pfc: Shuffle PFC support core.

This follows the intc/clk changes and shuffles the PFC support code under
its own directory. This will facilitate better code sharing, and allow us
to trim down the exported interface by quite a margin.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+21 -19
+1 -15
drivers/sh/Kconfig
··· 1 1 menu "SuperH / SH-Mobile Driver Options" 2 2 3 3 source "drivers/sh/intc/Kconfig" 4 - 5 - comment "Pin function controller options" 6 - 7 - config SH_PFC 8 - # XXX move off the gpio dependency 9 - depends on GENERIC_GPIO 10 - select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB 11 - def_bool y 12 - 13 - config GPIO_SH_PFC 14 - tristate "SuperH PFC GPIO support" 15 - depends on SH_PFC && GPIOLIB 16 - help 17 - This enables support for GPIOs within the SoC's pin function 18 - controller. 4 + source "drivers/sh/pfc/Kconfig" 19 5 20 6 endmenu
+2 -2
drivers/sh/Makefile
··· 5 5 6 6 obj-$(CONFIG_HAVE_CLK) += clk/ 7 7 obj-$(CONFIG_MAPLE) += maple/ 8 + obj-$(CONFIG_SH_PFC) += pfc/ 8 9 obj-$(CONFIG_SUPERHYWAY) += superhyway/ 9 - obj-$(CONFIG_SH_PFC) += pfc.o 10 - obj-$(CONFIG_GPIO_SH_PFC) += pfc-gpio.o 10 + 11 11 obj-y += pm_runtime.o
drivers/sh/pfc-gpio.c drivers/sh/pfc/gpio.c
drivers/sh/pfc.c drivers/sh/pfc/core.c
+14
drivers/sh/pfc/Kconfig
··· 1 + comment "Pin function controller options" 2 + 3 + config SH_PFC 4 + # XXX move off the gpio dependency 5 + depends on GENERIC_GPIO 6 + select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB 7 + def_bool y 8 + 9 + config GPIO_SH_PFC 10 + tristate "SuperH PFC GPIO support" 11 + depends on SH_PFC && GPIOLIB 12 + help 13 + This enables support for GPIOs within the SoC's pin function 14 + controller.
+2
drivers/sh/pfc/Makefile
··· 1 + obj-y += core.o 2 + obj-$(CONFIG_GPIO_SH_PFC) += gpio.o
+2 -2
include/linux/sh_pfc.h
··· 127 127 /* XXX compat for now */ 128 128 #define pinmux_info sh_pfc 129 129 130 - /* drivers/sh/pfc-gpio.c */ 130 + /* drivers/sh/pfc/gpio.c */ 131 131 int sh_pfc_register_gpiochip(struct sh_pfc *pfc); 132 132 133 - /* drivers/sh/pfc.c */ 133 + /* drivers/sh/pfc/core.c */ 134 134 int register_sh_pfc(struct sh_pfc *pfc); 135 135 136 136 int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos);