diff options
Diffstat (limited to 'include/asm-mips/jmr3927/tx3927.h')
-rw-r--r-- | include/asm-mips/jmr3927/tx3927.h | 68 |
1 files changed, 16 insertions, 52 deletions
diff --git a/include/asm-mips/jmr3927/tx3927.h b/include/asm-mips/jmr3927/tx3927.h index 0b9073bfb759..211bcf47fffb 100644 --- a/include/asm-mips/jmr3927/tx3927.h +++ b/include/asm-mips/jmr3927/tx3927.h | |||
@@ -50,41 +50,26 @@ struct tx3927_dma_reg { | |||
50 | volatile unsigned long unused0; | 50 | volatile unsigned long unused0; |
51 | }; | 51 | }; |
52 | 52 | ||
53 | struct tx3927_irc_reg { | ||
54 | volatile unsigned long cer; | ||
55 | volatile unsigned long cr[2]; | ||
56 | volatile unsigned long unused0; | ||
57 | volatile unsigned long ilr[8]; | ||
58 | volatile unsigned long unused1[4]; | ||
59 | volatile unsigned long imr; | ||
60 | volatile unsigned long unused2[7]; | ||
61 | volatile unsigned long scr; | ||
62 | volatile unsigned long unused3[7]; | ||
63 | volatile unsigned long ssr; | ||
64 | volatile unsigned long unused4[7]; | ||
65 | volatile unsigned long csr; | ||
66 | }; | ||
67 | |||
68 | #include <asm/byteorder.h> | 53 | #include <asm/byteorder.h> |
69 | 54 | ||
70 | #ifdef __BIG_ENDIAN | 55 | #ifdef __BIG_ENDIAN |
71 | #define endian_def_s2(e1,e2) \ | 56 | #define endian_def_s2(e1, e2) \ |
72 | volatile unsigned short e1,e2 | 57 | volatile unsigned short e1, e2 |
73 | #define endian_def_sb2(e1,e2,e3) \ | 58 | #define endian_def_sb2(e1, e2, e3) \ |
74 | volatile unsigned short e1;volatile unsigned char e2,e3 | 59 | volatile unsigned short e1;volatile unsigned char e2, e3 |
75 | #define endian_def_b2s(e1,e2,e3) \ | 60 | #define endian_def_b2s(e1, e2, e3) \ |
76 | volatile unsigned char e1,e2;volatile unsigned short e3 | 61 | volatile unsigned char e1, e2;volatile unsigned short e3 |
77 | #define endian_def_b4(e1,e2,e3,e4) \ | 62 | #define endian_def_b4(e1, e2, e3, e4) \ |
78 | volatile unsigned char e1,e2,e3,e4 | 63 | volatile unsigned char e1, e2, e3, e4 |
79 | #else | 64 | #else |
80 | #define endian_def_s2(e1,e2) \ | 65 | #define endian_def_s2(e1, e2) \ |
81 | volatile unsigned short e2,e1 | 66 | volatile unsigned short e2, e1 |
82 | #define endian_def_sb2(e1,e2,e3) \ | 67 | #define endian_def_sb2(e1, e2, e3) \ |
83 | volatile unsigned char e3,e2;volatile unsigned short e1 | 68 | volatile unsigned char e3, e2;volatile unsigned short e1 |
84 | #define endian_def_b2s(e1,e2,e3) \ | 69 | #define endian_def_b2s(e1, e2, e3) \ |
85 | volatile unsigned short e3;volatile unsigned char e2,e1 | 70 | volatile unsigned short e3;volatile unsigned char e2, e1 |
86 | #define endian_def_b4(e1,e2,e3,e4) \ | 71 | #define endian_def_b4(e1, e2, e3, e4) \ |
87 | volatile unsigned char e4,e3,e2,e1 | 72 | volatile unsigned char e4, e3, e2, e1 |
88 | #endif | 73 | #endif |
89 | 74 | ||
90 | struct tx3927_pcic_reg { | 75 | struct tx3927_pcic_reg { |
@@ -225,26 +210,6 @@ struct tx3927_ccfg_reg { | |||
225 | /* | 210 | /* |
226 | * IRC | 211 | * IRC |
227 | */ | 212 | */ |
228 | #define TX3927_IR_MAX_LEVEL 7 | ||
229 | |||
230 | /* IRCER : Int. Control Enable */ | ||
231 | #define TX3927_IRCER_ICE 0x00000001 | ||
232 | |||
233 | /* IRCR : Int. Control */ | ||
234 | #define TX3927_IRCR_LOW 0x00000000 | ||
235 | #define TX3927_IRCR_HIGH 0x00000001 | ||
236 | #define TX3927_IRCR_DOWN 0x00000002 | ||
237 | #define TX3927_IRCR_UP 0x00000003 | ||
238 | |||
239 | /* IRSCR : Int. Status Control */ | ||
240 | #define TX3927_IRSCR_EIClrE 0x00000100 | ||
241 | #define TX3927_IRSCR_EIClr_MASK 0x0000000f | ||
242 | |||
243 | /* IRCSR : Int. Current Status */ | ||
244 | #define TX3927_IRCSR_IF 0x00010000 | ||
245 | #define TX3927_IRCSR_ILV_MASK 0x00000700 | ||
246 | #define TX3927_IRCSR_IVL_MASK 0x0000001f | ||
247 | |||
248 | #define TX3927_IR_INT0 0 | 213 | #define TX3927_IR_INT0 0 |
249 | #define TX3927_IR_INT1 1 | 214 | #define TX3927_IR_INT1 1 |
250 | #define TX3927_IR_INT2 2 | 215 | #define TX3927_IR_INT2 2 |
@@ -347,7 +312,6 @@ struct tx3927_ccfg_reg { | |||
347 | #define tx3927_sdramcptr ((struct tx3927_sdramc_reg *)TX3927_SDRAMC_REG) | 312 | #define tx3927_sdramcptr ((struct tx3927_sdramc_reg *)TX3927_SDRAMC_REG) |
348 | #define tx3927_romcptr ((struct tx3927_romc_reg *)TX3927_ROMC_REG) | 313 | #define tx3927_romcptr ((struct tx3927_romc_reg *)TX3927_ROMC_REG) |
349 | #define tx3927_dmaptr ((struct tx3927_dma_reg *)TX3927_DMA_REG) | 314 | #define tx3927_dmaptr ((struct tx3927_dma_reg *)TX3927_DMA_REG) |
350 | #define tx3927_ircptr ((struct tx3927_irc_reg *)TX3927_IRC_REG) | ||
351 | #define tx3927_pcicptr ((struct tx3927_pcic_reg *)TX3927_PCIC_REG) | 315 | #define tx3927_pcicptr ((struct tx3927_pcic_reg *)TX3927_PCIC_REG) |
352 | #define tx3927_ccfgptr ((struct tx3927_ccfg_reg *)TX3927_CCFG_REG) | 316 | #define tx3927_ccfgptr ((struct tx3927_ccfg_reg *)TX3927_CCFG_REG) |
353 | #define tx3927_tmrptr(ch) ((struct txx927_tmr_reg *)TX3927_TMR_REG(ch)) | 317 | #define tx3927_tmrptr(ch) ((struct txx927_tmr_reg *)TX3927_TMR_REG(ch)) |