aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/include/mach/board-pb1176.h
diff options
context:
space:
mode:
authorCatalin Marinas <catalin.marinas@arm.com>2009-05-30 09:00:17 -0400
committerCatalin Marinas <catalin.marinas@arm.com>2009-05-30 09:00:17 -0400
commitee8c9571191e588ede9a220ded807e33c4897d91 (patch)
treec032b4f59822b03fcdb98ae4283d1f69adafeeb9 /arch/arm/mach-realview/include/mach/board-pb1176.h
parent8c7e65742fd05f27071282d260376adb98e0e9ac (diff)
RealView: Move the IRQ_* definitions out of the board-*.h files
The IRQ_* macros need to be made visible via the mach/irqs.h file but without the additional macros defined in the board-*.h files. Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm/mach-realview/include/mach/board-pb1176.h')
-rw-r--r--arch/arm/mach-realview/include/mach/board-pb1176.h78
1 files changed, 0 insertions, 78 deletions
diff --git a/arch/arm/mach-realview/include/mach/board-pb1176.h b/arch/arm/mach-realview/include/mach/board-pb1176.h
index e4d0e8046ea5..98f8e7eeacc2 100644
--- a/arch/arm/mach-realview/include/mach/board-pb1176.h
+++ b/arch/arm/mach-realview/include/mach/board-pb1176.h
@@ -73,82 +73,4 @@
73#define REALVIEW_PB1176_GIC_DIST_BASE 0x10041000 /* GIC distributor, on FPGA */ 73#define REALVIEW_PB1176_GIC_DIST_BASE 0x10041000 /* GIC distributor, on FPGA */
74#define REALVIEW_PB1176_L220_BASE 0x10110000 /* L220 registers */ 74#define REALVIEW_PB1176_L220_BASE 0x10110000 /* L220 registers */
75 75
76/*
77 * Irqs
78 */
79#define IRQ_DC1176_GIC_START 32
80#define IRQ_PB1176_GIC_START 64
81
82/*
83 * ARM1176 DevChip interrupt sources (primary GIC)
84 */
85#define IRQ_DC1176_WATCHDOG (IRQ_DC1176_GIC_START + 0) /* Watchdog timer */
86#define IRQ_DC1176_SOFTINT (IRQ_DC1176_GIC_START + 1) /* Software interrupt */
87#define IRQ_DC1176_COMMRx (IRQ_DC1176_GIC_START + 2) /* Debug Comm Rx interrupt */
88#define IRQ_DC1176_COMMTx (IRQ_DC1176_GIC_START + 3) /* Debug Comm Tx interrupt */
89#define IRQ_DC1176_TIMER0 (IRQ_DC1176_GIC_START + 8) /* Timer 0 */
90#define IRQ_DC1176_TIMER1 (IRQ_DC1176_GIC_START + 9) /* Timer 1 */
91#define IRQ_DC1176_TIMER2 (IRQ_DC1176_GIC_START + 10) /* Timer 2 */
92#define IRQ_DC1176_APC (IRQ_DC1176_GIC_START + 11)
93#define IRQ_DC1176_IEC (IRQ_DC1176_GIC_START + 12)
94#define IRQ_DC1176_L2CC (IRQ_DC1176_GIC_START + 13)
95#define IRQ_DC1176_RTC (IRQ_DC1176_GIC_START + 14)
96#define IRQ_DC1176_CLCD (IRQ_DC1176_GIC_START + 15) /* CLCD controller */
97#define IRQ_DC1176_UART0 (IRQ_DC1176_GIC_START + 18) /* UART 0 on development chip */
98#define IRQ_DC1176_UART1 (IRQ_DC1176_GIC_START + 19) /* UART 1 on development chip */
99#define IRQ_DC1176_UART2 (IRQ_DC1176_GIC_START + 20) /* UART 2 on development chip */
100#define IRQ_DC1176_UART3 (IRQ_DC1176_GIC_START + 21) /* UART 3 on development chip */
101
102#define IRQ_DC1176_PB_IRQ2 (IRQ_DC1176_GIC_START + 30) /* tile GIC */
103#define IRQ_DC1176_PB_IRQ1 (IRQ_DC1176_GIC_START + 31) /* main GIC */
104
105/*
106 * RealView PB1176 interrupt sources (secondary GIC)
107 */
108#define IRQ_PB1176_MMCI0A (IRQ_PB1176_GIC_START + 1) /* Multimedia Card 0A */
109#define IRQ_PB1176_MMCI0B (IRQ_PB1176_GIC_START + 2) /* Multimedia Card 0A */
110#define IRQ_PB1176_KMI0 (IRQ_PB1176_GIC_START + 3) /* Keyboard/Mouse port 0 */
111#define IRQ_PB1176_KMI1 (IRQ_PB1176_GIC_START + 4) /* Keyboard/Mouse port 1 */
112#define IRQ_PB1176_SCI (IRQ_PB1176_GIC_START + 5)
113#define IRQ_PB1176_UART4 (IRQ_PB1176_GIC_START + 6) /* UART 4 on baseboard */
114#define IRQ_PB1176_CHARLCD (IRQ_PB1176_GIC_START + 7) /* Character LCD */
115#define IRQ_PB1176_GPIO1 (IRQ_PB1176_GIC_START + 8)
116#define IRQ_PB1176_GPIO2 (IRQ_PB1176_GIC_START + 9)
117#define IRQ_PB1176_ETH (IRQ_PB1176_GIC_START + 10) /* Ethernet controller */
118#define IRQ_PB1176_USB (IRQ_PB1176_GIC_START + 11) /* USB controller */
119
120#define IRQ_PB1176_PISMO (IRQ_PB1176_GIC_START + 16)
121
122#define IRQ_PB1176_AACI (IRQ_PB1176_GIC_START + 19) /* Audio Codec */
123
124#define IRQ_PB1176_TIMER0_1 (IRQ_PB1176_GIC_START + 22)
125#define IRQ_PB1176_TIMER2_3 (IRQ_PB1176_GIC_START + 23)
126#define IRQ_PB1176_DMAC (IRQ_PB1176_GIC_START + 24) /* DMA controller */
127#define IRQ_PB1176_RTC (IRQ_PB1176_GIC_START + 25) /* Real Time Clock */
128
129#define IRQ_PB1176_GPIO0 -1
130#define IRQ_PB1176_SSP -1
131#define IRQ_PB1176_SCTL -1
132
133#define NR_GIC_PB1176 2
134
135/*
136 * Only define NR_IRQS if less than NR_IRQS_PB1176
137 */
138#define NR_IRQS_PB1176 (IRQ_DC1176_GIC_START + 96)
139
140#if defined(CONFIG_MACH_REALVIEW_PB1176)
141
142#if !defined(NR_IRQS) || (NR_IRQS < NR_IRQS_PB1176)
143#undef NR_IRQS
144#define NR_IRQS NR_IRQS_PB1176
145#endif
146
147#if !defined(MAX_GIC_NR) || (MAX_GIC_NR < NR_GIC_PB1176)
148#undef MAX_GIC_NR
149#define MAX_GIC_NR NR_GIC_PB1176
150#endif
151
152#endif /* CONFIG_MACH_REALVIEW_PB1176 */
153
154#endif /* __ASM_ARCH_BOARD_PB1176_H */ 76#endif /* __ASM_ARCH_BOARD_PB1176_H */