Skip to content

Commit

Permalink
sh: pfc: Make gpio chip support optional where possible.
Browse files Browse the repository at this point in the history
This implements some Kconfig knobs for ensuring that the PFC gpio chip
can be disabled or built as a module in the cases where it's optional, or
forcibly enabled in cases where it's not.

Signed-off-by: Paul Mundt <[email protected]>
  • Loading branch information
pmundt committed Jun 20, 2012
1 parent b3c185a commit b16b2a2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions drivers/sh/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,19 @@ 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.

endmenu
3 changes: 2 additions & 1 deletion drivers/sh/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ obj-y := intc/
obj-$(CONFIG_HAVE_CLK) += clk/
obj-$(CONFIG_MAPLE) += maple/
obj-$(CONFIG_SUPERHYWAY) += superhyway/
obj-$(CONFIG_GENERIC_GPIO) += pfc.o pfc-gpio.o
obj-$(CONFIG_SH_PFC) += pfc.o
obj-$(CONFIG_GPIO_SH_PFC) += pfc-gpio.o
obj-y += pm_runtime.o

0 comments on commit b16b2a2

Please sign in to comment.