Path: blob/master/arch/arm/mach-nomadik/include/mach/irqs.h
10820 views
/*1* mach-nomadik/include/mach/irqs.h2*3* Copyright (C) ST Microelectronics4*5* This program is free software; you can redistribute it and/or modify6* it under the terms of the GNU General Public License as published by7* the Free Software Foundation; either version 2 of the License, or8* (at your option) any later version.9*10* This program is distributed in the hope that it will be useful,11* but WITHOUT ANY WARRANTY; without even the implied warranty of12* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the13* GNU General Public License for more details.14*15* You should have received a copy of the GNU General Public License16* along with this program; if not, write to the Free Software17* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA18*/19#ifndef __ASM_ARCH_IRQS_H20#define __ASM_ARCH_IRQS_H2122#include <mach/hardware.h>2324#define IRQ_VIC_START 0 /* first VIC interrupt is 0 */2526/*27* Interrupt numbers generic for all Nomadik Chip cuts28*/29#define IRQ_WATCHDOG 030#define IRQ_SOFTINT 131#define IRQ_CRYPTO 232#define IRQ_OWM 333#define IRQ_MTU0 434#define IRQ_MTU1 535#define IRQ_GPIO0 636#define IRQ_GPIO1 737#define IRQ_GPIO2 838#define IRQ_GPIO3 939#define IRQ_RTC_RTT 1040#define IRQ_SSP 1141#define IRQ_UART0 1242#define IRQ_DMA1 1343#define IRQ_CLCD_MDIF 1444#define IRQ_DMA0 1545#define IRQ_PWRFAIL 1646#define IRQ_UART1 1747#define IRQ_FIRDA 1848#define IRQ_MSP0 1949#define IRQ_I2C0 2050#define IRQ_I2C1 2151#define IRQ_SDMMC 2252#define IRQ_USBOTG 2353#define IRQ_SVA_IT0 2454#define IRQ_SVA_IT1 2555#define IRQ_SAA_IT0 2656#define IRQ_SAA_IT1 2757#define IRQ_UART2 2858#define IRQ_MSP2 3159#define IRQ_L2CC 4860#define IRQ_HPI 4961#define IRQ_SKE 5062#define IRQ_KP 5163#define IRQ_MEMST 5464#define IRQ_SGA_IT 5865#define IRQ_USBM 6066#define IRQ_MSP1 626768#define NOMADIK_SOC_NR_IRQS 646970/* After chip-specific IRQ numbers we have the GPIO ones */71#define NOMADIK_NR_GPIO 128 /* last 4 not wired to pins */72#define NOMADIK_GPIO_TO_IRQ(gpio) ((gpio) + NOMADIK_SOC_NR_IRQS)73#define NOMADIK_IRQ_TO_GPIO(irq) ((irq) - NOMADIK_SOC_NR_IRQS)74#define NR_IRQS NOMADIK_GPIO_TO_IRQ(NOMADIK_NR_GPIO)7576/* Following two are used by entry_macro.S, to access our dual-vic */77#define VIC_REG_IRQSR0 078#define VIC_REG_IRQSR1 0x207980#endif /* __ASM_ARCH_IRQS_H */81828384