Path: blob/master/arch/arm/mach-realview/include/mach/irqs-pba8.h
10820 views
/*1* arch/arm/mach-realview/include/mach/irqs-pba8.h2*3* Copyright (C) 2008 ARM Limited4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License version 2 as7* published by the Free Software Foundation.8*9* This program is distributed in the hope that it will be useful,10* but WITHOUT ANY WARRANTY; without even the implied warranty of11* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the12* GNU General Public License for more details.13*14* You should have received a copy of the GNU General Public License15* along with this program; if not, write to the Free Software16* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,17* MA 02110-1301, USA.18*/1920#ifndef __MACH_IRQS_PBA8_H21#define __MACH_IRQS_PBA8_H2223#define IRQ_PBA8_GIC_START 322425/*26* PB-A8 on-board gic irq sources27*/28#define IRQ_PBA8_WATCHDOG (IRQ_PBA8_GIC_START + 0) /* Watchdog timer */29#define IRQ_PBA8_SOFT (IRQ_PBA8_GIC_START + 1) /* Software interrupt */30#define IRQ_PBA8_COMMRx (IRQ_PBA8_GIC_START + 2) /* Debug Comm Rx interrupt */31#define IRQ_PBA8_COMMTx (IRQ_PBA8_GIC_START + 3) /* Debug Comm Tx interrupt */32#define IRQ_PBA8_TIMER0_1 (IRQ_PBA8_GIC_START + 4) /* Timer 0/1 (default timer) */33#define IRQ_PBA8_TIMER2_3 (IRQ_PBA8_GIC_START + 5) /* Timer 2/3 */34#define IRQ_PBA8_GPIO0 (IRQ_PBA8_GIC_START + 6) /* GPIO 0 */35#define IRQ_PBA8_GPIO1 (IRQ_PBA8_GIC_START + 7) /* GPIO 1 */36#define IRQ_PBA8_GPIO2 (IRQ_PBA8_GIC_START + 8) /* GPIO 2 */37/* 9 reserved */38#define IRQ_PBA8_RTC (IRQ_PBA8_GIC_START + 10) /* Real Time Clock */39#define IRQ_PBA8_SSP (IRQ_PBA8_GIC_START + 11) /* Synchronous Serial Port */40#define IRQ_PBA8_UART0 (IRQ_PBA8_GIC_START + 12) /* UART 0 on development chip */41#define IRQ_PBA8_UART1 (IRQ_PBA8_GIC_START + 13) /* UART 1 on development chip */42#define IRQ_PBA8_UART2 (IRQ_PBA8_GIC_START + 14) /* UART 2 on development chip */43#define IRQ_PBA8_UART3 (IRQ_PBA8_GIC_START + 15) /* UART 3 on development chip */44#define IRQ_PBA8_SCI (IRQ_PBA8_GIC_START + 16) /* Smart Card Interface */45#define IRQ_PBA8_MMCI0A (IRQ_PBA8_GIC_START + 17) /* Multimedia Card 0A */46#define IRQ_PBA8_MMCI0B (IRQ_PBA8_GIC_START + 18) /* Multimedia Card 0B */47#define IRQ_PBA8_AACI (IRQ_PBA8_GIC_START + 19) /* Audio Codec */48#define IRQ_PBA8_KMI0 (IRQ_PBA8_GIC_START + 20) /* Keyboard/Mouse port 0 */49#define IRQ_PBA8_KMI1 (IRQ_PBA8_GIC_START + 21) /* Keyboard/Mouse port 1 */50#define IRQ_PBA8_CHARLCD (IRQ_PBA8_GIC_START + 22) /* Character LCD */51#define IRQ_PBA8_CLCD (IRQ_PBA8_GIC_START + 23) /* CLCD controller */52#define IRQ_PBA8_DMAC (IRQ_PBA8_GIC_START + 24) /* DMA controller */53#define IRQ_PBA8_PWRFAIL (IRQ_PBA8_GIC_START + 25) /* Power failure */54#define IRQ_PBA8_PISMO (IRQ_PBA8_GIC_START + 26) /* PISMO interface */55#define IRQ_PBA8_DoC (IRQ_PBA8_GIC_START + 27) /* Disk on Chip memory controller */56#define IRQ_PBA8_ETH (IRQ_PBA8_GIC_START + 28) /* Ethernet controller */57#define IRQ_PBA8_USB (IRQ_PBA8_GIC_START + 29) /* USB controller */58#define IRQ_PBA8_TSPEN (IRQ_PBA8_GIC_START + 30) /* Touchscreen pen */59#define IRQ_PBA8_TSKPAD (IRQ_PBA8_GIC_START + 31) /* Touchscreen keypad */6061#define IRQ_PBA8_PMU (IRQ_PBA8_GIC_START + 47) /* Cortex-A8 PMU */6263/* ... */64#define IRQ_PBA8_PCI0 (IRQ_PBA8_GIC_START + 50)65#define IRQ_PBA8_PCI1 (IRQ_PBA8_GIC_START + 51)66#define IRQ_PBA8_PCI2 (IRQ_PBA8_GIC_START + 52)67#define IRQ_PBA8_PCI3 (IRQ_PBA8_GIC_START + 53)6869#define IRQ_PBA8_SMC -170#define IRQ_PBA8_SCTL -17172#define NR_GIC_PBA8 17374/*75* Only define NR_IRQS if less than NR_IRQS_PBA876*/77#define NR_IRQS_PBA8 (IRQ_PBA8_GIC_START + 64)7879#if defined(CONFIG_MACH_REALVIEW_PBA8)8081#if !defined(NR_IRQS) || (NR_IRQS < NR_IRQS_PBA8)82#undef NR_IRQS83#define NR_IRQS NR_IRQS_PBA884#endif8586#if !defined(MAX_GIC_NR) || (MAX_GIC_NR < NR_GIC_PBA8)87#undef MAX_GIC_NR88#define MAX_GIC_NR NR_GIC_PBA889#endif9091#endif /* CONFIG_MACH_REALVIEW_PBA8 */9293#endif /* __MACH_IRQS_PBA8_H */949596