2005-04-16 15:20:36 -07:00
|
|
|
/*
|
2008-08-05 08:14:15 -07:00
|
|
|
* arch/arm/mach-pxa/include/mach/irqs.h
|
2005-04-16 15:20:36 -07:00
|
|
|
*
|
|
|
|
* Author: Nicolas Pitre
|
|
|
|
* Created: Jun 15, 2001
|
|
|
|
* Copyright: MontaVista Software Inc.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
2008-10-17 05:19:08 -07:00
|
|
|
#ifndef __ASM_MACH_IRQS_H
|
|
|
|
#define __ASM_MACH_IRQS_H
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2008-09-01 05:03:32 -07:00
|
|
|
#ifdef CONFIG_PXA_HAVE_ISA_IRQS
|
|
|
|
#define PXA_ISA_IRQ(x) (x)
|
|
|
|
#define PXA_ISA_IRQ_NUM (16)
|
|
|
|
#else
|
|
|
|
#define PXA_ISA_IRQ_NUM (0)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define PXA_IRQ(x) (PXA_ISA_IRQ_NUM + (x))
|
2005-04-16 15:20:36 -07:00
|
|
|
|
2007-11-19 17:34:04 -07:00
|
|
|
#if defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx)
|
2005-04-16 15:20:36 -07:00
|
|
|
#define IRQ_SSP3 PXA_IRQ(0) /* SSP3 service request */
|
|
|
|
#define IRQ_MSL PXA_IRQ(1) /* MSL Interface interrupt */
|
|
|
|
#define IRQ_USBH2 PXA_IRQ(2) /* USB Host interrupt 1 (OHCI) */
|
|
|
|
#define IRQ_USBH1 PXA_IRQ(3) /* USB Host interrupt 2 (non-OHCI) */
|
|
|
|
#define IRQ_KEYPAD PXA_IRQ(4) /* Key pad controller */
|
|
|
|
#define IRQ_MEMSTK PXA_IRQ(5) /* Memory Stick interrupt */
|
|
|
|
#define IRQ_PWRI2C PXA_IRQ(6) /* Power I2C interrupt */
|
2007-06-05 22:22:20 -07:00
|
|
|
#endif
|
|
|
|
|
2005-04-16 15:20:36 -07:00
|
|
|
#define IRQ_HWUART PXA_IRQ(7) /* HWUART Transmit/Receive/Error (PXA26x) */
|
|
|
|
#define IRQ_OST_4_11 PXA_IRQ(7) /* OS timer 4-11 matches (PXA27x) */
|
|
|
|
#define IRQ_GPIO0 PXA_IRQ(8) /* GPIO0 Edge Detect */
|
|
|
|
#define IRQ_GPIO1 PXA_IRQ(9) /* GPIO1 Edge Detect */
|
|
|
|
#define IRQ_GPIO_2_x PXA_IRQ(10) /* GPIO[2-x] Edge Detect */
|
|
|
|
#define IRQ_USB PXA_IRQ(11) /* USB Service */
|
|
|
|
#define IRQ_PMU PXA_IRQ(12) /* Performance Monitoring Unit */
|
|
|
|
#define IRQ_I2S PXA_IRQ(13) /* I2S Interrupt */
|
|
|
|
#define IRQ_AC97 PXA_IRQ(14) /* AC97 Interrupt */
|
|
|
|
#define IRQ_ASSP PXA_IRQ(15) /* Audio SSP Service Request (PXA25x) */
|
|
|
|
#define IRQ_USIM PXA_IRQ(15) /* Smart Card interface interrupt (PXA27x) */
|
|
|
|
#define IRQ_NSSP PXA_IRQ(16) /* Network SSP Service Request (PXA25x) */
|
|
|
|
#define IRQ_SSP2 PXA_IRQ(16) /* SSP2 interrupt (PXA27x) */
|
|
|
|
#define IRQ_LCD PXA_IRQ(17) /* LCD Controller Service Request */
|
|
|
|
#define IRQ_I2C PXA_IRQ(18) /* I2C Service Request */
|
|
|
|
#define IRQ_ICP PXA_IRQ(19) /* ICP Transmit/Receive/Error */
|
|
|
|
#define IRQ_STUART PXA_IRQ(20) /* STUART Transmit/Receive/Error */
|
|
|
|
#define IRQ_BTUART PXA_IRQ(21) /* BTUART Transmit/Receive/Error */
|
|
|
|
#define IRQ_FFUART PXA_IRQ(22) /* FFUART Transmit/Receive/Error*/
|
|
|
|
#define IRQ_MMC PXA_IRQ(23) /* MMC Status/Error Detection */
|
|
|
|
#define IRQ_SSP PXA_IRQ(24) /* SSP Service Request */
|
|
|
|
#define IRQ_DMA PXA_IRQ(25) /* DMA Channel Service Request */
|
|
|
|
#define IRQ_OST0 PXA_IRQ(26) /* OS Timer match 0 */
|
|
|
|
#define IRQ_OST1 PXA_IRQ(27) /* OS Timer match 1 */
|
|
|
|
#define IRQ_OST2 PXA_IRQ(28) /* OS Timer match 2 */
|
|
|
|
#define IRQ_OST3 PXA_IRQ(29) /* OS Timer match 3 */
|
|
|
|
#define IRQ_RTC1Hz PXA_IRQ(30) /* RTC HZ Clock Tick */
|
|
|
|
#define IRQ_RTCAlrm PXA_IRQ(31) /* RTC Alarm */
|
|
|
|
|
2007-11-19 17:34:04 -07:00
|
|
|
#if defined(CONFIG_PXA27x) || defined(CONFIG_PXA3xx)
|
2005-04-16 15:20:36 -07:00
|
|
|
#define IRQ_TPM PXA_IRQ(32) /* TPM interrupt */
|
|
|
|
#define IRQ_CAMERA PXA_IRQ(33) /* Camera Interface */
|
|
|
|
#endif
|
|
|
|
|
2007-11-19 17:34:04 -07:00
|
|
|
#ifdef CONFIG_PXA3xx
|
2007-11-26 19:12:52 -07:00
|
|
|
#define IRQ_SSP4 PXA_IRQ(13) /* SSP4 service request */
|
2007-11-19 17:34:04 -07:00
|
|
|
#define IRQ_CIR PXA_IRQ(34) /* Consumer IR */
|
2009-08-31 02:23:44 -07:00
|
|
|
#define IRQ_COMM_WDT PXA_IRQ(35) /* Comm WDT interrupt */
|
2007-11-19 17:34:04 -07:00
|
|
|
#define IRQ_TSI PXA_IRQ(36) /* Touch Screen Interface (PXA320) */
|
|
|
|
#define IRQ_USIM2 PXA_IRQ(38) /* USIM2 Controller */
|
2009-07-09 10:04:50 -07:00
|
|
|
#define IRQ_GCU PXA_IRQ(39) /* Graphics Controller */
|
2007-11-19 17:34:04 -07:00
|
|
|
#define IRQ_MMC2 PXA_IRQ(41) /* MMC2 Controller */
|
|
|
|
#define IRQ_1WIRE PXA_IRQ(44) /* 1-Wire Controller */
|
|
|
|
#define IRQ_NAND PXA_IRQ(45) /* NAND Controller */
|
|
|
|
#define IRQ_USB2 PXA_IRQ(46) /* USB 2.0 Device Controller */
|
|
|
|
#define IRQ_WAKEUP0 PXA_IRQ(49) /* EXT_WAKEUP0 */
|
|
|
|
#define IRQ_WAKEUP1 PXA_IRQ(50) /* EXT_WAKEUP1 */
|
|
|
|
#define IRQ_DMEMC PXA_IRQ(51) /* Dynamic Memory Controller */
|
|
|
|
#define IRQ_MMC3 PXA_IRQ(55) /* MMC3 Controller (PXA310) */
|
|
|
|
#endif
|
|
|
|
|
2009-08-31 02:23:44 -07:00
|
|
|
#ifdef CONFIG_CPU_PXA935
|
|
|
|
#define IRQ_U2O PXA_IRQ(64) /* USB OTG 2.0 Controller (PXA935) */
|
|
|
|
#define IRQ_U2H PXA_IRQ(65) /* USB Host 2.0 Controller (PXA935) */
|
|
|
|
|
|
|
|
#define IRQ_MMC3_PXA935 PXA_IRQ(72) /* MMC3 Controller (PXA935) */
|
|
|
|
#define IRQ_MMC4_PXA935 PXA_IRQ(73) /* MMC4 Controller (PXA935) */
|
|
|
|
#define IRQ_MMC5_PXA935 PXA_IRQ(74) /* MMC5 Controller (PXA935) */
|
|
|
|
|
|
|
|
#define IRQ_U2P PXA_IRQ(93) /* USB PHY D+/D- Lines (PXA935) */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_PXA930
|
|
|
|
#define IRQ_ENHROT PXA_IRQ(37) /* Enhanced Rotary (PXA930) */
|
|
|
|
#define IRQ_ACIPC0 PXA_IRQ(5)
|
|
|
|
#define IRQ_ACIPC1 PXA_IRQ(40)
|
|
|
|
#define IRQ_ACIPC2 PXA_IRQ(19)
|
|
|
|
#define IRQ_TRKBALL PXA_IRQ(43) /* Track Ball */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef CONFIG_CPU_PXA950
|
|
|
|
#define IRQ_GC500 PXA_IRQ(70) /* Graphics Controller (PXA950) */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define PXA_GPIO_IRQ_BASE PXA_IRQ(96)
|
|
|
|
#define PXA_GPIO_IRQ_NUM (192)
|
2007-06-05 22:32:38 -07:00
|
|
|
|
|
|
|
#define GPIO_2_x_TO_IRQ(x) (PXA_GPIO_IRQ_BASE + (x))
|
2005-04-16 15:20:36 -07:00
|
|
|
#define IRQ_GPIO(x) (((x) < 2) ? (IRQ_GPIO0 + (x)) : GPIO_2_x_TO_IRQ(x))
|
|
|
|
|
2007-06-05 22:32:38 -07:00
|
|
|
#define IRQ_TO_GPIO_2_x(i) ((i) - PXA_GPIO_IRQ_BASE)
|
2005-04-16 15:20:36 -07:00
|
|
|
#define IRQ_TO_GPIO(i) (((i) < IRQ_GPIO(2)) ? ((i) - IRQ_GPIO0) : IRQ_TO_GPIO_2_x(i))
|
|
|
|
|
|
|
|
/*
|
2009-04-17 02:47:57 -07:00
|
|
|
* The following interrupts are for board specific purposes. Since
|
2005-04-16 15:20:36 -07:00
|
|
|
* the kernel can only run on one machine at a time, we can re-use
|
2009-04-17 02:47:57 -07:00
|
|
|
* these. There will be 16 IRQs by default. If it is not enough,
|
|
|
|
* IRQ_BOARD_END is allowed be customized for each board, but keep
|
|
|
|
* the numbers within sensible limits and in descending order, so
|
|
|
|
* when multiple config options are selected, the maximum will be
|
|
|
|
* used.
|
2005-04-16 15:20:36 -07:00
|
|
|
*/
|
2007-06-05 22:32:38 -07:00
|
|
|
#define IRQ_BOARD_START (PXA_GPIO_IRQ_BASE + PXA_GPIO_IRQ_NUM)
|
2009-04-17 02:47:57 -07:00
|
|
|
|
[ARM] pxa: add basic support for HP iPAQ hx4700 PDAs
This includes
- IrDA (pxafixp_ir),
- Buttons (gpio-keys),
- ASIC3 IRQ/GPIOs (asic3),
- EGPIOs (htc-egpio),
- ATI Imageon w3220 framebuffer (w100fb),
- Backlight (pwm-backlight),
- StrataFlash (physmap),
- Battery monitor (ds1wm,w1_ds2760,ds2760_battery)
- USB gadget support (pxa27x_udc,gpio_vbus).
- bq24022 battery charger (pda_power,bq24022)
- TSC2046 touchscreen (ads7846)
Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
2009-05-27 22:05:18 -07:00
|
|
|
#if defined(CONFIG_MACH_H4700)
|
|
|
|
#define IRQ_BOARD_END (IRQ_BOARD_START + 70)
|
|
|
|
#elif defined(CONFIG_MACH_ZYLONITE)
|
2009-04-17 02:47:57 -07:00
|
|
|
#define IRQ_BOARD_END (IRQ_BOARD_START + 32)
|
2009-06-23 08:39:25 -07:00
|
|
|
#elif defined(CONFIG_PXA_EZX)
|
|
|
|
#define IRQ_BOARD_END (IRQ_BOARD_START + 23)
|
2009-04-17 02:47:57 -07:00
|
|
|
#else
|
2005-04-16 15:20:36 -07:00
|
|
|
#define IRQ_BOARD_END (IRQ_BOARD_START + 16)
|
2009-04-17 02:47:57 -07:00
|
|
|
#endif
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Figure out the MAX IRQ number.
|
|
|
|
*
|
|
|
|
* If we have an SA1111, the max IRQ is S1_BVD1_STSCHG+1.
|
|
|
|
* If we have an LoCoMo, the max IRQ is IRQ_LOCOMO_SPI_TEND+1
|
|
|
|
* Otherwise, we have the standard IRQs only.
|
|
|
|
*/
|
|
|
|
#ifdef CONFIG_SA1111
|
2009-12-26 01:23:02 -07:00
|
|
|
#define NR_IRQS (IRQ_BOARD_END + 55)
|
2008-08-22 03:09:38 -07:00
|
|
|
#elif defined(CONFIG_PXA_HAVE_BOARD_IRQS)
|
2005-04-16 15:20:36 -07:00
|
|
|
#define NR_IRQS (IRQ_BOARD_END)
|
|
|
|
#else
|
|
|
|
#define NR_IRQS (IRQ_BOARD_START)
|
|
|
|
#endif
|
|
|
|
|
2007-09-23 07:59:26 -07:00
|
|
|
/* add IT8152 IRQs beyond BOARD_END */
|
|
|
|
#ifdef CONFIG_PCI_HOST_ITE8152
|
2009-12-27 08:01:25 -07:00
|
|
|
#define IT8152_LAST_IRQ (IRQ_BOARD_END + 40)
|
2007-09-23 07:59:26 -07:00
|
|
|
|
2008-04-21 02:56:32 -07:00
|
|
|
#if NR_IRQS < (IT8152_LAST_IRQ+1)
|
2007-09-23 07:59:26 -07:00
|
|
|
#undef NR_IRQS
|
|
|
|
#define NR_IRQS (IT8152_LAST_IRQ+1)
|
|
|
|
#endif
|
2008-04-21 02:56:32 -07:00
|
|
|
|
|
|
|
#endif /* CONFIG_PCI_HOST_ITE8152 */
|
2008-10-17 05:19:08 -07:00
|
|
|
|
|
|
|
#endif /* __ASM_MACH_IRQS_H */
|