7444a72eff
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 <mb@bu3sch.de> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: David Brownell <david-b@pacbell.net> Cc: Russell King <rmk@arm.linux.org.uk> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: Jesper Nilsson <jesper.nilsson@axis.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Paul Mackerras <paulus@samba.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Ingo Molnar <mingo@elte.hu> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Jean Delvare <khali@linux-fr.org> Cc: Samuel Ortiz <sameo@openedhand.com> Cc: Kumar Gala <galak@gate.crashing.org> Cc: Sam Ravnborg <sam@ravnborg.org> Cc: Adrian Bunk <bunk@stusta.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
53 lines
1.6 KiB
Text
53 lines
1.6 KiB
Text
config PPC_MPC52xx
|
|
bool "52xx-based boards"
|
|
depends on PPC_MULTIPLATFORM && PPC32
|
|
select FSL_SOC
|
|
select PPC_CLOCK
|
|
select PPC_PCI_CHOICE
|
|
|
|
config PPC_MPC5200_SIMPLE
|
|
bool "Generic support for simple MPC5200 based boards"
|
|
depends on PPC_MPC52xx
|
|
select DEFAULT_UIMAGE
|
|
help
|
|
This option enables support for a simple MPC52xx based boards which
|
|
do not need a custom platform specific setup. Such boards are
|
|
supported assuming the following:
|
|
|
|
- GPIO pins are configured by the firmware,
|
|
- CDM configuration (clocking) is setup correctly by firmware,
|
|
- if the 'fsl,has-wdt' property is present in one of the
|
|
gpt nodes, then it is safe to use such gpt to reset the board,
|
|
- PCI is supported if enabled in the kernel configuration
|
|
and if there is a PCI bus node defined in the device tree.
|
|
|
|
Boards that are compatible with this generic platform support
|
|
are: 'tqc,tqm5200', 'promess,motionpro', 'schindler,cm5200'.
|
|
|
|
config PPC_EFIKA
|
|
bool "bPlan Efika 5k2. MPC5200B based computer"
|
|
depends on PPC_MPC52xx
|
|
select PPC_RTAS
|
|
select RTAS_PROC
|
|
select PPC_NATIVE
|
|
|
|
config PPC_LITE5200
|
|
bool "Freescale Lite5200 Eval Board"
|
|
depends on PPC_MPC52xx
|
|
select DEFAULT_UIMAGE
|
|
|
|
config PPC_MPC5200_BUGFIX
|
|
bool "MPC5200 (L25R) bugfix support"
|
|
depends on PPC_MPC52xx
|
|
help
|
|
Enable workarounds for original MPC5200 errata. This is not required
|
|
for MPC5200B based boards.
|
|
|
|
It is safe to say 'Y' here
|
|
|
|
config PPC_MPC5200_GPIO
|
|
bool "MPC5200 GPIO support"
|
|
depends on PPC_MPC52xx
|
|
select ARCH_REQUIRE_GPIOLIB
|
|
help
|
|
Enable gpiolib support for mpc5200 based boards
|