add external irq

SVN-Revision: 21201
This commit is contained in:
Ralph Hempel 2010-04-27 15:46:45 +00:00
parent 7287be04b0
commit 72ae285297
2 changed files with 21 additions and 0 deletions

View file

@ -203,6 +203,23 @@
#define IFXMIPS_ICU_OFFSET (IFXMIPS_ICU_IM1_ISR - IFXMIPS_ICU_IM0_ISR)
/* EIU - external interrupt controller */
/** EIU - base address */
#define IFXMIPS_EIU_BASE_ADDR 0xBF101000
/** EIU - control register */
#define IFXMIPS_EIU_EXIN_C ((u32 *)(IFXMIPS_EIU_BASE_ADDR + 0x0000))
/** EIU - interrupt node interrupt capture */
#define IFXMIPS_EIU_INIC ((u32 *)(IFXMIPS_EIU_BASE_ADDR + 0x0004))
/** EIU - interrupt node control */
#define IFXMIPS_EIU_INC ((u32 *)(IFXMIPS_EIU_BASE_ADDR + 0x0008))
/** EIU - interrupt node enable */
#define IFXMIPS_EIU_INEN ((u32 *)(IFXMIPS_EIU_BASE_ADDR + 0x000C))
/** NMI - control */
#define IFXMIPS_NMI_CR ((u32 *)(IFXMIPS_EIU_BASE_ADDR + 0x00F0))
/** NMI - status */
#define IFXMIPS_NMI_SR (( u32 *)(IFXMIPS_EIU_BASE_ADDR + 0x00F4))
/*------------ ETOP */

View file

@ -72,6 +72,10 @@
#define IFXMIPS_USB_INT (INT_NUM_IM4_IRL0 + 22)
#define IFXMIPS_USB_OC_INT (INT_NUM_IM4_IRL0 + 23)
#define IFXMIPS_EIU_IR0 (INT_NUM_IM4_IRL0 + 30)
#define IFXMIPS_EIU_IR1 (INT_NUM_IM3_IRL0 + 31)
#define IFXMIPS_EIU_IR2 (INT_NUM_IM1_IRL0 + 26)
extern void ifxmips_mask_and_ack_irq(unsigned int irq_nr);