17ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun/* 27ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * arch/arm/mach-w90x900/include/mach/irqs.h 37ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * 47f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun * Copyright (c) 2008 Nuvoton technology corporation. 57ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * 67ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * Wan ZongShun <mcuos.com@gmail.com> 77ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * 87ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * Based on arch/arm/mach-s3c2410/include/mach/irqs.h 97ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * 107ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * This program is free software; you can redistribute it and/or modify 117ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * it under the terms of the GNU General Public License as published by 127f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun * the Free Software Foundation;version 2 of the License. 137ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * 147ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun */ 157ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun 167ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#ifndef __ASM_ARCH_IRQS_H 177ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define __ASM_ARCH_IRQS_H 187ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun 197ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun/* 207ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * we keep the first set of CPU IRQs out of the range of 217ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * the ISA space, so that the PC104 has them to itself 227ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * and we don't end up having to do horrible things to the 237ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * standard ISA drivers.... 247ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun * 257ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun */ 267ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun 277ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define W90X900_IRQ(x) (x) 287ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun 297ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun/* Main cpu interrupts */ 307ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun 317ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_WDT W90X900_IRQ(1) 327f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP0 W90X900_IRQ(2) 337f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP1 W90X900_IRQ(3) 347f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_ACTL W90X900_IRQ(4) 357f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_LCD W90X900_IRQ(5) 367f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_RTC W90X900_IRQ(6) 377ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_UART0 W90X900_IRQ(7) 387ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_UART1 W90X900_IRQ(8) 397ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_UART2 W90X900_IRQ(9) 407ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_UART3 W90X900_IRQ(10) 417ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_UART4 W90X900_IRQ(11) 427ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_TIMER0 W90X900_IRQ(12) 437ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_TIMER1 W90X900_IRQ(13) 447ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_T_INT_GROUP W90X900_IRQ(14) 457f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_USBH W90X900_IRQ(15) 467f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_EMCTX W90X900_IRQ(16) 477f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_EMCRX W90X900_IRQ(17) 487f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GDMAGROUP W90X900_IRQ(18) 497f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_DMAC W90X900_IRQ(19) 507f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_FMI W90X900_IRQ(20) 517f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_USBD W90X900_IRQ(21) 527f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_ATAPI W90X900_IRQ(22) 537f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_G2D W90X900_IRQ(23) 547f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_PCI W90X900_IRQ(24) 557f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_SCGROUP W90X900_IRQ(25) 567f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_I2CGROUP W90X900_IRQ(26) 577f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_SSP W90X900_IRQ(27) 587f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_PWM W90X900_IRQ(28) 597f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_KPI W90X900_IRQ(29) 607f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_P2SGROUP W90X900_IRQ(30) 617ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define IRQ_ADC W90X900_IRQ(31) 627ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#define NR_IRQS (IRQ_ADC+1) 637ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun 647f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun/*for irq group*/ 657f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun 667f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_PS2_PORT0 0x10000000 677f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_PS2_PORT1 0x20000000 687f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_I2C_LINE0 0x04000000 697f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_I2C_LINE1 0x08000000 707f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_SC_CARD0 0x01000000 717f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_SC_CARD1 0x02000000 727f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GDMA_CH0 0x00100000 737f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GDMA_CH1 0x00200000 747f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_TIMER2 0x00010000 757f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_TIMER3 0x00020000 767f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_TIMER4 0x00040000 777f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP0_IRQ0 0x00000001 787f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP0_IRQ1 0x00000002 797f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP0_IRQ2 0x00000004 807f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP0_IRQ3 0x00000008 817f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP1_IRQ4 0x00000010 827f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP1_IRQ5 0x00000020 837f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP1_IRQ6 0x00000040 847f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun#define IRQ_GROUP1_IRQ7 0x00000080 857f7810e2db70589c6695f9994c10258b09b1f93cwanzongshun 867ec80ddf0455ff3854a5ca524952d91b5eb676b2wanzongshun#endif /* __ASM_ARCH_IRQ_H */ 87