diff options
author | Florian Fainelli <florian.fainelli@telecomint.eu> | 2008-03-26 22:39:15 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-03-27 16:08:45 +0100 |
commit | b2ef749720a97053d60605a7456772a1752164cc (patch) | |
tree | 47120d353cc460d078b5f4b6560c5ab392d09622 /include/asm-x86/mach-rdc321x/rdc321x_defs.h | |
parent | d8d4f157b8d828bc837f0eb2ee4a2dd40dbdd572 (diff) |
rdc321x: GPIO routines bugfixes
This patch fixes the use of GPIO routines which are in the PCI
configuration space of the RDC321x, therefore reading/writing
to this space without spinlock protection can be problematic.
We also now request and free GPIOs and support the MGB100
board, previous code was very AR525W-centric.
Signed-off-by: Volker Weiss <volker@tintuc.de>
Signed-off-by: Florian Fainelli <florian.fainelli@telecomint.eu>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/mach-rdc321x/rdc321x_defs.h')
-rw-r--r-- | include/asm-x86/mach-rdc321x/rdc321x_defs.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/asm-x86/mach-rdc321x/rdc321x_defs.h b/include/asm-x86/mach-rdc321x/rdc321x_defs.h index 838ba8f64fd..c8e9c8bed3d 100644 --- a/include/asm-x86/mach-rdc321x/rdc321x_defs.h +++ b/include/asm-x86/mach-rdc321x/rdc321x_defs.h @@ -3,4 +3,10 @@ /* General purpose configuration and data registers */ #define RDC3210_CFGREG_ADDR 0x0CF8 #define RDC3210_CFGREG_DATA 0x0CFC -#define RDC_MAX_GPIO 0x3A + +#define RDC321X_GPIO_CTRL_REG1 0x48 +#define RDC321X_GPIO_CTRL_REG2 0x84 +#define RDC321X_GPIO_DATA_REG1 0x4c +#define RDC321X_GPIO_DATA_REG2 0x88 + +#define RDC321X_MAX_GPIO 58 |