kernel-ark/include/asm-mips
Michael Buesch 7444a72eff 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 <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>
2008-07-25 10:53:30 -07:00
..
dec [MIPS] DECstation: Document more MB ASIC register bits 2008-07-15 18:44:30 +01:00
emma2rh
fw [MIPS] CFE: Make code remotely resemble Linux code. 2008-01-29 10:14:55 +00:00
ip32 [MIPS] IP32: More interrupt renumbering fixes. 2007-11-26 17:26:13 +00:00
lasat [MIPS] Remove mips_machtype for LASAT machines 2008-07-15 18:44:39 +01:00
mach-au1x00 spi: au1550_spi: proper platform device 2008-07-24 10:47:30 -07:00
mach-bcm47xx [MIPS] Deforest the function pointer jungle in the time code. 2007-10-11 23:46:08 +01:00
mach-cobalt [MIPS] remove unneeded button check for reset 2008-01-29 10:15:00 +00:00
mach-db1x00 [MIPS] Alchemy: remove unused MMC macros from db1x00 header. 2008-07-15 18:44:30 +01:00
mach-dec [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-emma2rh [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-excite include/asm-mips/: Spelling fixes 2008-02-03 16:57:20 +02:00
mach-generic gpiolib: allow user-selection 2008-07-25 10:53:30 -07:00
mach-ip22 [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-ip27 [MIPS] IP27: Fix build bug due to missing include 2008-04-28 17:14:32 +01:00
mach-ip28 [MIPS] IP28 support 2008-01-29 10:14:58 +00:00
mach-ip32 [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
mach-jazz [MIPS] Fix and cleanup the MIPS part of the (ab)use of CLOCK_TICK_RATE. 2007-11-02 16:13:48 +00:00
mach-lasat [MIPS] Lasat: fix LASAT_CASCADE_IRQ 2008-03-12 14:14:42 +00:00
mach-lemote [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-malta [MIPS] Malta: Cleanup organization of code into directories. 2008-07-15 18:44:34 +01:00
mach-mipssim [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-pb1x00 [MIPS] Pb1200/DBAu1200 code style cleanup 2008-05-12 16:46:55 +01:00
mach-pnx8550 [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
mach-rc32434 [MIPS] Routerboard 532: Support for base system 2008-07-20 14:38:18 +01:00
mach-rm [MIPS] Fix and cleanup the MIPS part of the (ab)use of CLOCK_TICK_RATE. 2007-11-02 16:13:48 +00:00
mach-sibyte [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-tx39xx [MIPS] TXx9: rename asm-mips/mach-jmr3927 to asm-mips/mach-tx39xx 2008-07-15 18:44:38 +01:00
mach-tx49xx [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mach-vr41xx [MIPS] cmbvr4133: Remove support 2008-07-15 18:44:36 +01:00
mach-wrppmc include/asm-mips/: Spelling fixes 2008-02-03 16:57:20 +02:00
mach-yosemite [MIPS] Split up war.h 2007-10-11 23:46:07 +01:00
mips-boards [MIPS] Remove unused maltasmp.h. 2008-07-20 14:38:22 +01:00
pci Fix misspellings of "system", "controller", "interrupt" and "necessary". 2007-10-19 23:10:43 +02:00
pmc-sierra/msp71xx [MIPS] Delete CONFIG_MSP_FPGA 2008-01-29 10:15:01 +00:00
sgi include/asm-mips/: Spelling fixes 2008-02-03 16:57:20 +02:00
sibyte [MIPS] Remove CONFIG_SIBYTE_PT{1120,1125,SWARM} 2008-01-29 10:14:58 +00:00
sn include/asm-mips/: Spelling fixes 2008-02-03 16:57:20 +02:00
txx9 [MIPS] TXx9: Fix some sparse warnings 2008-07-20 14:38:21 +01:00
vr41xx [MIPS] cmbvr4133: Remove support 2008-07-15 18:44:36 +01:00
xtalk [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
a.out.h aout: move STACK_TOP[_MAX] to asm/processor.h 2008-02-08 09:22:29 -08:00
abi.h
addrspace.h [MIPS] Put cast inside macro instead of all the callers 2008-01-29 10:14:55 +00:00
asm.h [MIPS] IP28: added cache barrier to assembly routines 2008-01-29 10:14:58 +00:00
asmmacro-32.h
asmmacro-64.h
asmmacro.h [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
atomic.h [MIPS] Fix bug in atomic_sub_if_positive. 2008-07-04 08:22:15 +01:00
auxvec.h
barrier.h [MIPS] IP28: switch to "normal" mode after PROM no longer needed 2008-07-15 18:44:32 +01:00
bcache.h [MIPS] SNI: remove unused pcimt_scache.c 2007-08-27 02:16:54 +01:00
bitops.h [MIPS] Tinker with constraints in <asm/atomic.h> to fix build error. 2008-07-20 14:38:18 +01:00
bootinfo.h [MIPS] Routerboard 532: Support for base system 2008-07-20 14:38:18 +01:00
branch.h
break.h
bug.h
bugs.h [MIPS] R4000/R4400 errata workarounds 2008-01-29 10:14:54 +00:00
byteorder.h [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
cache.h
cachectl.h
cacheflush.h [MIPS] Handle aliases in vmalloc correctly. 2008-04-07 22:31:04 +01:00
cacheops.h [MIPS] Cacheops.h: Fix typo. 2008-01-15 01:04:42 +00:00
checksum.h
cmp.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
cmpxchg.h Add cmpxchg64 and cmpxchg64_local to mips 2008-02-07 08:42:30 -08:00
compat-signal.h
compat.h asm-*/compat.h: fix typo in comment 2008-02-03 16:32:51 +02:00
compiler.h [MIPS] Add empty argument parenthesis to GCC_IMM_ASM 2008-05-12 16:46:52 +01:00
cpu-features.h [MIPS] Fix use of smp_processor_id() in preemptible code. 2007-12-01 00:39:37 +00:00
cpu-info.h [MIPS] vpe_id is required for VSMP and SMTC builds 2008-06-16 15:14:48 +01:00
cpu.h [MIPS] modify the MIPS CPU classfication 2008-07-15 18:44:28 +01:00
cputime.h
current.h
debug.h
delay.h [MIPS] R4000/R4400 daddiu erratum workaround 2008-01-29 10:14:55 +00:00
device.h
div64.h rename div64_64 to div64_u64 2008-05-01 08:03:58 -07:00
dma-mapping.h
dma.h [MIPS] IP28 support 2008-01-29 10:14:58 +00:00
ds1286.h
ds1287.h [MIPS] DS1287: Add clockevent driver 2008-04-28 17:14:32 +01:00
dsp.h
edac.h [MIPS] Polish <asm/edac.h>. 2007-08-27 02:16:59 +01:00
elf.h Cleanup asm/{elf,page,user}.h: #ifdef __KERNEL__ is no longer needed 2008-02-07 08:42:30 -08:00
emergency-restart.h
errno.h
fb.h
fcntl.h [MIPS] Fix value of O_TRUNC 2007-10-01 14:17:50 +01:00
fixmap.h [MIPS] fixmap: delete unused __set_fixmap, set_fixmap and set_fixmap_nocache 2008-01-29 10:15:00 +00:00
floppy.h cleanup floppy.h 2007-10-17 08:42:55 -07:00
fpregdef.h
fpu_emulator.h
fpu.h [MIPS] Fix missing prototypes in asm/fpu.h 2008-07-20 14:38:17 +01:00
futex.h asm-*/futex.h should include linux/uaccess.h 2008-04-30 08:29:52 -07:00
gcmpregs.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
gdb-stub.h
gic.h [MIPS] Malta: Fix build errors for 64-bit kernels 2008-06-16 15:14:48 +01:00
gpio.h
gt64120.h [MIPS] time: Add GT641xx timer0 clockevent driver 2007-10-22 22:09:00 +01:00
hardirq.h
hazards.h [MIPS] R1: Fix hazard barriers to make kernels work on R2 also. 2007-10-11 23:46:19 +01:00
highmem.h [MIPS] Fix yosemite build error 2008-03-12 14:14:42 +00:00
hw_irq.h [MIPS] i8295 cleanups. 2007-10-11 23:46:04 +01:00
i8253.h [MIPS] Fix pcspeaker build. 2007-11-26 17:26:13 +00:00
i8259.h [MIPS] i8295 cleanups. 2007-10-11 23:46:04 +01:00
ide.h
inst.h
io.h [MIPS] Remove obsolete isa_slot_offset 2008-07-15 18:44:29 +01:00
ioctl.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
ioctls.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
ipcbuf.h
irq_cpu.h
irq_gt641xx.h [MIPS] Add GT641xx IRQ routines. 2007-10-11 23:46:04 +01:00
irq_regs.h
irq.h [MIPS] IRQ Affinity Support for SMTC on Malta Platform 2007-10-11 23:45:57 +01:00
irqflags.h [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
isadep.h
jazz.h [MIPS] JAZZ fixes 2007-10-11 23:46:00 +01:00
jazzdma.h [MIPS] JAZZ fixes 2007-10-11 23:46:00 +01:00
Kbuild
kdebug.h
kexec.h
kmap_types.h
kspd.h
kvm.h kvm: provide kvm.h for all architecture: fixes headers_install 2008-04-02 15:28:18 -07:00
linkage.h [MIPS] Sibyte: Replace SB1 cachecode with standard R4000 class cache code. 2007-10-11 23:46:05 +01:00
local.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
m48t35.h
m48t37.h
mc146818-time.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
mc146818rtc.h
mips_mt.h [MIPS] MT: Enable coexistence of AP/SP with VSMP and SMTC. 2007-07-31 21:35:24 +01:00
mipsmtregs.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
mipsprom.h [MIPS] RM: Collected changes 2008-01-29 10:14:59 +00:00
mipsregs.h [MIPS] Add accessors for random register. 2008-06-05 18:13:15 +01:00
mman.h
mmu_context.h [MIPS] Kill num_online_cpus() loops. 2007-10-11 23:46:18 +01:00
mmu.h
mmzone.h
module.h
msc01_ic.h
msgbuf.h
mutex.h
namei.h [MIPS] IRIX: Goodbye and thanks for all the fish 2008-07-15 18:44:30 +01:00
nile4.h [MIPS] Add back support for LASAT platforms 2007-10-11 23:46:00 +01:00
paccess.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
page.h PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures 2008-07-24 10:47:21 -07:00
param.h
parport.h [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
pci.h [MIPS] PCI: Make the pcibios_max_latency variable static 2008-07-20 14:38:17 +01:00
percpu.h
pgalloc.h CONFIG_HIGHPTE vs. sub-page page tables. 2008-02-08 09:22:42 -08:00
pgtable-32.h [MIPS] All MIPS32 processors support64-bit physical addresses. 2008-04-28 17:14:25 +01:00
pgtable-64.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
pgtable-bits.h [MIPS] Fix build for PNX platforms. 2008-06-16 15:14:47 +01:00
pgtable.h [MIPS] Add missing braces to pte_mkyoung 2008-06-05 18:13:14 +01:00
pmon.h [MIPS] PMON: Fix cpustart declaration. 2007-07-31 21:35:32 +01:00
poll.h
posix_types.h asm-*/posix_types.h: scrub __GLIBC__ 2008-02-08 09:22:34 -08:00
prefetch.h
processor.h PAGE_ALIGN(): correctly handle 64-bit values on 32-bit architectures 2008-07-24 10:47:21 -07:00
ptrace.h [MIPS] IP22: Fix warning. 2007-10-16 18:23:47 +01:00
r4k-timer.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
r4kcache.h [MIPS] Use real cache invalidate 2008-01-29 10:14:57 +00:00
reboot.h
reg.h
regdef.h
resource.h
rm9k-ocd.h
rtlx.h [MIPS] Fix typo in header guard 2008-06-05 18:13:16 +01:00
scatterlist.h Add CONFIG_DEBUG_SG sg validation 2007-10-22 21:20:03 +02:00
seccomp.h [MIPS] Fixup secure computing stuff. 2007-07-31 21:35:21 +01:00
sections.h
segment.h
sembuf.h
serial.h
setup.h [MIPS] don't leak setup_early_printk() in userspace header 2008-07-20 14:38:19 +01:00
sgialib.h
sgiarcs.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
sgidefs.h
shmbuf.h
shmparam.h
sigcontext.h
siginfo.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
signal.h [MIPS] IRIX: Goodbye and thanks for all the fish 2008-07-15 18:44:30 +01:00
sim.h [MIPS] Fix "no space between function name and open parenthesis" warnings. 2007-10-11 23:46:15 +01:00
smp-ops.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
smp.h mips: convert to generic helpers for IPI function calls 2008-06-26 11:22:57 +02:00
smtc_ipi.h [MIPS] SMTC: Fix build error. 2008-01-22 00:35:23 +00:00
smtc_proc.h
smtc.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
smvp.h [MIPS] Add support for MIPS CMP platform. 2008-04-28 17:14:26 +01:00
sni.h [MIPS] RM: fix EISA=n compilation 2008-02-19 17:01:34 +00:00
socket.h flag parameters: socket and socketpair 2008-07-24 10:47:27 -07:00
sockios.h
sparsemem.h
spinlock_types.h
spinlock.h
stackframe.h [MIPS] R4000/R4400 daddiu erratum workaround 2008-01-29 10:14:55 +00:00
stacktrace.h [MIPS] unwind_stack should return a value ... 2007-08-27 02:16:55 +01:00
stat.h
statfs.h
string.h
suspend.h
sysmips.h
system.h IP22ZILOG: fix lockup and sysrq 2007-11-29 09:24:53 -08:00
termbits.h [MIPS] tty: add the new ioctls and definitions. 2007-09-10 21:25:27 +01:00
termios.h [MIPS] tty: add the new ioctls and definitions. 2007-09-10 21:25:27 +01:00
thread_info.h clean up duplicated alloc/free_thread_info 2008-07-25 10:53:28 -07:00
time.h [MIPS] Clocksource: Only install r4k counter as clocksource if present. 2008-03-12 14:14:42 +00:00
timex.h [MIPS] Change get_cycles to always return 0. 2007-11-15 23:21:49 +00:00
titan_dep.h
tlb.h
tlbdebug.h
tlbflush.h remove unused flush_tlb_pgtables 2007-10-19 11:53:34 -07:00
topology.h [MIPS] MT: Scheduler support for SMT 2008-01-29 10:14:57 +00:00
traps.h [MIPS] Remove board_watchpoint_handler 2008-07-15 18:44:29 +01:00
txx9irq.h [MIPS] The irq_chip for TX39/TX49 SoCs 2007-08-27 02:16:52 +01:00
txx9pio.h [MIPS] generic txx9 gpio support 2008-04-28 17:14:31 +01:00
txx9tmr.h [MIPS] txx9tmr clockevent/clocksource driver 2007-10-29 19:35:35 +00:00
types.h fix asm-mips/types.h syntax error 2008-05-04 14:45:55 -07:00
uaccess.h [MIPS] R4000/R4400 daddiu erratum workaround 2008-01-29 10:14:55 +00:00
ucontext.h
unaligned.h kernel: Move arches to use common unaligned access 2008-04-29 08:06:27 -07:00
unistd.h [MIPS] Wire up the timerfd_*() o32 system calls 2008-02-19 17:01:31 +00:00
user.h Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
vga.h [MIPS] checkfiles: Fix "need space after that ','" errors. 2007-10-11 23:46:15 +01:00
vpe.h
war.h [MIPS] R4000/R4400 errata workarounds 2008-01-29 10:14:54 +00:00
wbflush.h
xor.h