diff options
author | wdenk <wdenk> | 2004-07-11 22:19:26 +0000 |
---|---|---|
committer | wdenk <wdenk> | 2004-07-11 22:19:26 +0000 |
commit | a1f4a3dd0592ef982017a50a7cfe749823114203 (patch) | |
tree | 5cb47632f587600559b20ad5ca644e1867fc9f2c /include/asm-arm/arch-arm720t | |
parent | b9283e2dbedae4492ec0efdf683d51a00566a477 (diff) |
* Patch by George G. Davis, 06 Jul 2004:
- update mach-types.h to latest arm.linux.org.uk master list
- Set correct OMAP1610 bi_arch_number for build target
* Patch by Curt Brune, 06 Jul 2004:
evb4510: add support for timer interrupt; cleanup
Diffstat (limited to 'include/asm-arm/arch-arm720t')
-rw-r--r-- | include/asm-arm/arch-arm720t/s3c4510b.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/asm-arm/arch-arm720t/s3c4510b.h b/include/asm-arm/arch-arm720t/s3c4510b.h index 7acbec4266f..517b1ada99b 100644 --- a/include/asm-arm/arch-arm720t/s3c4510b.h +++ b/include/asm-arm/arch-arm720t/s3c4510b.h @@ -210,6 +210,11 @@ #define PUT__U8(reg, val) (*((volatile u8 *)(reg)) = (( u8)((val)&0xFF))) #define GET__U8(reg) (*((volatile u8 *)(reg))) +#define PUT_LED(val) (PUT_REG(REG_IOPDATA, (~val)&0xFF)) +#define GET_LED() ((~GET_REG( REG_IOPDATA)) & 0xFF) +#define SET_LED(val) { u32 led = GET_LED(); led |= 1 << (val); PUT_LED( led); } +#define CLR_LED(val) { u32 led = GET_LED(); led &= ~(1 << (val)); PUT_LED( led); } + /***********************************/ /* CLOCK CONSTANTS -- 50 MHz Clock */ /***********************************/ @@ -228,4 +233,42 @@ #define TM1_TOGGLE 0x10 /* 0, interval mode */ #define TM1_OUT_1 0x20 /* Timer 0 Initial TOUT0 value */ + +/*********************************/ +/* INTERRUPT SOURCES */ +/*********************************/ +#define INT_EXTINT0 0 +#define INT_EXTINT1 1 +#define INT_EXTINT2 2 +#define INT_EXTINT3 3 +#define INT_UARTTX0 4 +#define INT_UARTRX0 5 +#define INT_UARTTX1 6 +#define INT_UARTRX1 7 +#define INT_GDMA0 8 +#define INT_GDMA1 9 +#define INT_TIMER0 10 +#define INT_TIMER1 11 +#define INT_HDLCTXA 12 +#define INT_HDLCRXA 13 +#define INT_HDLCTXB 14 +#define INT_HDLCRXB 15 +#define INT_BDMATX 16 +#define INT_BDMARX 17 +#define INT_MACTX 18 +#define INT_MACRX 19 +#define INT_IIC 20 +#define INT_GLOBAL 21 +#define N_IRQS (21) + +#ifndef __ASSEMBLER__ +struct _irq_handler { + void *m_data; + void (*m_func)( void *data); +}; + +extern struct _irq_handler IRQ_HANDLER[]; + +#endif + #endif /* __S3C4510_h */ |