diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-08-23 12:53:50 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-11 11:18:46 -0400 |
commit | 606a083b1e1a357cb66454e4581b80f1a67d8368 (patch) | |
tree | 4967e653091001d2bcd6ca380cdc5a7ad61be53b /include/asm-mips | |
parent | deeb45ac4a32c8271b022ecba73913bc1112e8e6 (diff) |
MIPS: RB532: Cleanup the headers again
This patch cleans up headers and regroups informations to
where they should reside. While moving, try to have a
consistant naming for defines.
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r-- | include/asm-mips/mach-rc32434/irq.h | 20 | ||||
-rw-r--r-- | include/asm-mips/mach-rc32434/rb.h | 2 | ||||
-rw-r--r-- | include/asm-mips/mach-rc32434/rc32434.h | 30 |
3 files changed, 22 insertions, 30 deletions
diff --git a/include/asm-mips/mach-rc32434/irq.h b/include/asm-mips/mach-rc32434/irq.h index d68318b6b76d..56738d8ec4e2 100644 --- a/include/asm-mips/mach-rc32434/irq.h +++ b/include/asm-mips/mach-rc32434/irq.h | |||
@@ -4,6 +4,26 @@ | |||
4 | #define NR_IRQS 256 | 4 | #define NR_IRQS 256 |
5 | 5 | ||
6 | #include <asm/mach-generic/irq.h> | 6 | #include <asm/mach-generic/irq.h> |
7 | #include <asm/mach-rc32434/rb.h> | ||
8 | |||
9 | /* Interrupt Controller */ | ||
10 | #define IC_GROUP0_PEND (REGBASE + 0x38000) | ||
11 | #define IC_GROUP0_MASK (REGBASE + 0x38008) | ||
12 | #define IC_GROUP_OFFSET 0x0C | ||
13 | |||
14 | #define NUM_INTR_GROUPS 5 | ||
15 | |||
16 | /* 16550 UARTs */ | ||
17 | #define GROUP0_IRQ_BASE 8 /* GRP2 IRQ numbers start here */ | ||
18 | /* GRP3 IRQ numbers start here */ | ||
19 | #define GROUP1_IRQ_BASE (GROUP0_IRQ_BASE + 32) | ||
20 | /* GRP4 IRQ numbers start here */ | ||
21 | #define GROUP2_IRQ_BASE (GROUP1_IRQ_BASE + 32) | ||
22 | /* GRP5 IRQ numbers start here */ | ||
23 | #define GROUP3_IRQ_BASE (GROUP2_IRQ_BASE + 32) | ||
24 | #define GROUP4_IRQ_BASE (GROUP3_IRQ_BASE + 32) | ||
25 | |||
26 | #define UART0_IRQ (GROUP3_IRQ_BASE + 0) | ||
7 | 27 | ||
8 | #define ETH0_DMA_RX_IRQ (GROUP1_IRQ_BASE + 0) | 28 | #define ETH0_DMA_RX_IRQ (GROUP1_IRQ_BASE + 0) |
9 | #define ETH0_DMA_TX_IRQ (GROUP1_IRQ_BASE + 1) | 29 | #define ETH0_DMA_TX_IRQ (GROUP1_IRQ_BASE + 1) |
diff --git a/include/asm-mips/mach-rc32434/rb.h b/include/asm-mips/mach-rc32434/rb.h index 62ac73c999c4..79e8ef67d0d3 100644 --- a/include/asm-mips/mach-rc32434/rb.h +++ b/include/asm-mips/mach-rc32434/rb.h | |||
@@ -19,6 +19,8 @@ | |||
19 | 19 | ||
20 | #define REGBASE 0x18000000 | 20 | #define REGBASE 0x18000000 |
21 | #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE)) | 21 | #define IDT434_REG_BASE ((volatile void *) KSEG1ADDR(REGBASE)) |
22 | #define UART0BASE 0x58000 | ||
23 | #define RST (1 << 15) | ||
22 | #define DEV0BASE 0x010000 | 24 | #define DEV0BASE 0x010000 |
23 | #define DEV0MASK 0x010004 | 25 | #define DEV0MASK 0x010004 |
24 | #define DEV0C 0x010008 | 26 | #define DEV0C 0x010008 |
diff --git a/include/asm-mips/mach-rc32434/rc32434.h b/include/asm-mips/mach-rc32434/rc32434.h index c4a02145104e..9df04b72744a 100644 --- a/include/asm-mips/mach-rc32434/rc32434.h +++ b/include/asm-mips/mach-rc32434/rc32434.h | |||
@@ -8,37 +8,7 @@ | |||
8 | #include <linux/delay.h> | 8 | #include <linux/delay.h> |
9 | #include <linux/io.h> | 9 | #include <linux/io.h> |
10 | 10 | ||
11 | #define RC32434_REG_BASE 0x18000000 | ||
12 | #define RC32434_RST (1 << 15) | ||
13 | |||
14 | #define IDT_CLOCK_MULT 2 | 11 | #define IDT_CLOCK_MULT 2 |
15 | #define MIPS_CPU_TIMER_IRQ 7 | ||
16 | |||
17 | /* Interrupt Controller */ | ||
18 | #define IC_GROUP0_PEND (RC32434_REG_BASE + 0x38000) | ||
19 | #define IC_GROUP0_MASK (RC32434_REG_BASE + 0x38008) | ||
20 | #define IC_GROUP_OFFSET 0x0C | ||
21 | |||
22 | #define NUM_INTR_GROUPS 5 | ||
23 | |||
24 | /* 16550 UARTs */ | ||
25 | #define GROUP0_IRQ_BASE 8 /* GRP2 IRQ numbers start here */ | ||
26 | /* GRP3 IRQ numbers start here */ | ||
27 | #define GROUP1_IRQ_BASE (GROUP0_IRQ_BASE + 32) | ||
28 | /* GRP4 IRQ numbers start here */ | ||
29 | #define GROUP2_IRQ_BASE (GROUP1_IRQ_BASE + 32) | ||
30 | /* GRP5 IRQ numbers start here */ | ||
31 | #define GROUP3_IRQ_BASE (GROUP2_IRQ_BASE + 32) | ||
32 | #define GROUP4_IRQ_BASE (GROUP3_IRQ_BASE + 32) | ||
33 | |||
34 | |||
35 | #ifdef __MIPSEB__ | ||
36 | #define RC32434_UART0_BASE (RC32434_REG_BASE + 0x58003) | ||
37 | #else | ||
38 | #define RC32434_UART0_BASE (RC32434_REG_BASE + 0x58000) | ||
39 | #endif | ||
40 | |||
41 | #define RC32434_UART0_IRQ (GROUP3_IRQ_BASE + 0) | ||
42 | 12 | ||
43 | /* cpu pipeline flush */ | 13 | /* cpu pipeline flush */ |
44 | static inline void rc32434_sync(void) | 14 | static inline void rc32434_sync(void) |