gpiolib: allow user-selection
authorMichael Buesch <[email protected]>
Fri, 25 Jul 2008 08:46:11 +0000 (01:46 -0700)
committerLinus Torvalds <[email protected]>
Fri, 25 Jul 2008 17:53:30 +0000 (10:53 -0700)
commit7444a72effa632fcd8edc566f880d96fe213c73b
tree89d3e70c22751a6b00091df2b4dce7202eb3b1f5
parentff1d5c2f0268f4e32103536e2e65480b5b7b6530
gpiolib: allow user-selection

This patch adds functionality to the gpio-lib subsystem to make it
possible to enable the gpio-lib code even if the architecture code didn't
request to get it built in.

The archtitecture code does still need to implement the gpiolib accessor
functions in its asm/gpio.h file.  This patch adds the implementations for
x86 and PPC.

With these changes it is possible to run generic GPIO expansion cards on
every architecture that implements the trivial wrapper functions.  Support
for more architectures can easily be added.

Signed-off-by: Michael Buesch <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Stephen Rothwell <[email protected]>
Cc: David Brownell <[email protected]>
Cc: Russell King <[email protected]>
Cc: Haavard Skinnemoen <[email protected]>
Cc: Jesper Nilsson <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: Jean Delvare <[email protected]>
Cc: Samuel Ortiz <[email protected]>
Cc: Kumar Gala <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Cc: Adrian Bunk <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
18 files changed:
Documentation/gpio.txt
arch/arm/Kconfig
arch/avr32/Kconfig
arch/mips/Kconfig
arch/powerpc/Kconfig
arch/powerpc/platforms/52xx/Kconfig
arch/powerpc/sysdev/qe_lib/Kconfig
arch/x86/Kconfig
drivers/Makefile
drivers/gpio/Kconfig
drivers/gpio/Makefile
drivers/i2c/chips/Kconfig
drivers/mfd/Kconfig
drivers/of/Kconfig
include/asm-generic/gpio.h
include/asm-mips/mach-generic/gpio.h
include/asm-powerpc/gpio.h
include/asm-x86/gpio.h