Skip to content

Commit

Permalink
sh: pfc: Shuffle PFC support core.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pmundt committed Jul 10, 2012
1 parent 06d5631 commit afae021
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
16 changes: 1 addition & 15 deletions drivers/sh/Kconfig
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
menu "SuperH / SH-Mobile Driver Options"

source "drivers/sh/intc/Kconfig"

comment "Pin function controller options"

config SH_PFC
# XXX move off the gpio dependency
depends on GENERIC_GPIO
select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB
def_bool y

config GPIO_SH_PFC
tristate "SuperH PFC GPIO support"
depends on SH_PFC && GPIOLIB
help
This enables support for GPIOs within the SoC's pin function
controller.
source "drivers/sh/pfc/Kconfig"

endmenu
4 changes: 2 additions & 2 deletions drivers/sh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ obj-y := intc/

obj-$(CONFIG_HAVE_CLK) += clk/
obj-$(CONFIG_MAPLE) += maple/
obj-$(CONFIG_SH_PFC) += pfc/
obj-$(CONFIG_SUPERHYWAY) += superhyway/
obj-$(CONFIG_SH_PFC) += pfc.o
obj-$(CONFIG_GPIO_SH_PFC) += pfc-gpio.o

obj-y += pm_runtime.o
14 changes: 14 additions & 0 deletions drivers/sh/pfc/Kconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
comment "Pin function controller options"

config SH_PFC
# XXX move off the gpio dependency
depends on GENERIC_GPIO
select GPIO_SH_PFC if ARCH_REQUIRE_GPIOLIB
def_bool y

config GPIO_SH_PFC
tristate "SuperH PFC GPIO support"
depends on SH_PFC && GPIOLIB
help
This enables support for GPIOs within the SoC's pin function
controller.
2 changes: 2 additions & 0 deletions drivers/sh/pfc/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
obj-y += core.o
obj-$(CONFIG_GPIO_SH_PFC) += gpio.o
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions include/linux/sh_pfc.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ struct sh_pfc {
/* XXX compat for now */
#define pinmux_info sh_pfc

/* drivers/sh/pfc-gpio.c */
/* drivers/sh/pfc/gpio.c */
int sh_pfc_register_gpiochip(struct sh_pfc *pfc);

/* drivers/sh/pfc.c */
/* drivers/sh/pfc/core.c */
int register_sh_pfc(struct sh_pfc *pfc);

int sh_pfc_read_bit(struct pinmux_data_reg *dr, unsigned long in_pos);
Expand Down

0 comments on commit afae021

Please sign in to comment.