Go to the documentation of this file.
21 #ifndef __ASM_EMMA_EMMA2RH_H
22 #define __ASM_EMMA_EMMA2RH_H
29 #define REGBASE 0x10000000
31 #define EMMA2RH_BHIF_STRAP_0 (0x000010+REGBASE)
32 #define EMMA2RH_BHIF_INT_ST_0 (0x000030+REGBASE)
33 #define EMMA2RH_BHIF_INT_ST_1 (0x000034+REGBASE)
34 #define EMMA2RH_BHIF_INT_ST_2 (0x000038+REGBASE)
35 #define EMMA2RH_BHIF_INT_EN_0 (0x000040+REGBASE)
36 #define EMMA2RH_BHIF_INT_EN_1 (0x000044+REGBASE)
37 #define EMMA2RH_BHIF_INT_EN_2 (0x000048+REGBASE)
38 #define EMMA2RH_BHIF_INT1_EN_0 (0x000050+REGBASE)
39 #define EMMA2RH_BHIF_INT1_EN_1 (0x000054+REGBASE)
40 #define EMMA2RH_BHIF_INT1_EN_2 (0x000058+REGBASE)
41 #define EMMA2RH_BHIF_SW_INT (0x000070+REGBASE)
42 #define EMMA2RH_BHIF_SW_INT_EN (0x000080+REGBASE)
43 #define EMMA2RH_BHIF_SW_INT_CLR (0x000090+REGBASE)
44 #define EMMA2RH_BHIF_MAIN_CTRL (0x0000b4+REGBASE)
45 #define EMMA2RH_BHIF_EXCEPT_VECT_BASE_ADDRESS (0x0000c0+REGBASE)
46 #define EMMA2RH_GPIO_DIR (0x110d20+REGBASE)
47 #define EMMA2RH_GPIO_INT_ST (0x110d30+REGBASE)
48 #define EMMA2RH_GPIO_INT_MASK (0x110d3c+REGBASE)
49 #define EMMA2RH_GPIO_INT_MODE (0x110d48+REGBASE)
50 #define EMMA2RH_GPIO_INT_CND_A (0x110d54+REGBASE)
51 #define EMMA2RH_GPIO_INT_CND_B (0x110d60+REGBASE)
52 #define EMMA2RH_PBRD_INT_EN (0x100010+REGBASE)
53 #define EMMA2RH_PBRD_CLKSEL (0x100028+REGBASE)
54 #define EMMA2RH_PFUR0_BASE (0x101000+REGBASE)
55 #define EMMA2RH_PFUR1_BASE (0x102000+REGBASE)
56 #define EMMA2RH_PFUR2_BASE (0x103000+REGBASE)
57 #define EMMA2RH_PIIC0_BASE (0x107000+REGBASE)
58 #define EMMA2RH_PIIC1_BASE (0x108000+REGBASE)
59 #define EMMA2RH_PIIC2_BASE (0x109000+REGBASE)
60 #define EMMA2RH_PCI_CONTROL (0x200000+REGBASE)
61 #define EMMA2RH_PCI_ARBIT_CTR (0x200004+REGBASE)
62 #define EMMA2RH_PCI_IWIN0_CTR (0x200010+REGBASE)
63 #define EMMA2RH_PCI_IWIN1_CTR (0x200014+REGBASE)
64 #define EMMA2RH_PCI_INIT_ESWP (0x200018+REGBASE)
65 #define EMMA2RH_PCI_INT (0x200020+REGBASE)
66 #define EMMA2RH_PCI_INT_EN (0x200024+REGBASE)
67 #define EMMA2RH_PCI_TWIN_CTR (0x200030+REGBASE)
68 #define EMMA2RH_PCI_TWIN_BADR (0x200034+REGBASE)
69 #define EMMA2RH_PCI_TWIN0_DADR (0x200038+REGBASE)
70 #define EMMA2RH_PCI_TWIN1_DADR (0x20003c+REGBASE)
81 #define EMMA2RH_RAM_BASE 0x00000000
82 #define EMMA2RH_RAM_SIZE 0x10000000
84 #define EMMA2RH_IO_BASE 0x10000000
85 #define EMMA2RH_IO_SIZE 0x01000000
87 #define EMMA2RH_GENERALIO_BASE 0x11000000
88 #define EMMA2RH_GENERALIO_SIZE 0x01000000
90 #define EMMA2RH_PCI_IO_BASE 0x12000000
91 #define EMMA2RH_PCI_IO_SIZE 0x02000000
93 #define EMMA2RH_PCI_MEM_BASE 0x14000000
94 #define EMMA2RH_PCI_MEM_SIZE 0x08000000
96 #define EMMA2RH_ROM_BASE 0x1c000000
97 #define EMMA2RH_ROM_SIZE 0x04000000
99 #define EMMA2RH_PCI_CONFIG_BASE EMMA2RH_PCI_IO_BASE
100 #define EMMA2RH_PCI_CONFIG_SIZE EMMA2RH_PCI_IO_SIZE
102 #define NUM_EMMA2RH_IRQ 96
104 #define EMMA2RH_IRQ_BASE (MIPS_CPU_IRQ_BASE + 8)
110 #define EMMA2RH_IRQ_INT(n) (EMMA2RH_IRQ_BASE + (n))
112 #define EMMA2RH_IRQ_PFUR0 EMMA2RH_IRQ_INT(49)
113 #define EMMA2RH_IRQ_PFUR1 EMMA2RH_IRQ_INT(50)
114 #define EMMA2RH_IRQ_PFUR2 EMMA2RH_IRQ_INT(51)
115 #define EMMA2RH_IRQ_PIIC0 EMMA2RH_IRQ_INT(56)
116 #define EMMA2RH_IRQ_PIIC1 EMMA2RH_IRQ_INT(57)
117 #define EMMA2RH_IRQ_PIIC2 EMMA2RH_IRQ_INT(58)
123 #define EMMA2RH_BASE (0xa0000000)
125 static inline void emma2rh_sync(
void)
127 volatile u32 *
p = (
volatile u32 *)0xbfc00000;
137 static inline u32 emma2rh_in32(
u32 offset)
143 static inline void emma2rh_out16(
u32 offset,
u16 val)
149 static inline u16 emma2rh_in16(
u32 offset)
155 static inline void emma2rh_out8(
u32 offset,
u8 val)
161 static inline u8 emma2rh_in8(
u32 offset)
174 #define SPT 0x00000001
175 #define STT 0x00000002
176 #define ACKE 0x00000004
177 #define WTIM 0x00000008
178 #define SPIE 0x00000010
179 #define WREL 0x00000020
180 #define LREL 0x00000040
181 #define IICE 0x00000080
182 #define CNT_RESERVED 0x000000ff
184 #define I2C_EMMA_START (IICE | STT)
185 #define I2C_EMMA_STOP (IICE | SPT)
186 #define I2C_EMMA_REPSTART I2C_EMMA_START
191 #define MSTS 0x00000080
192 #define ALD 0x00000040
193 #define EXC 0x00000020
194 #define COI 0x00000010
195 #define TRC 0x00000008
196 #define ACKD 0x00000004
197 #define STD 0x00000002
198 #define SPD 0x00000001
203 #define FCL 0x00000080
204 #define ND50 0x00000040
205 #define CLD 0x00000020
206 #define DAD 0x00000010
207 #define SMC 0x00000008
208 #define DFC 0x00000004
209 #define CL 0x00000003
210 #define CSEL_RESERVED 0x000000ff
212 #define FAST397 0x0000008b
213 #define FAST297 0x0000008a
214 #define FAST347 0x0000000b
215 #define FAST260 0x0000000a
216 #define FAST130 0x00000008
217 #define STANDARD108 0x00000083
218 #define STANDARD83 0x00000082
219 #define STANDARD95 0x00000003
220 #define STANDARD73 0x00000002
221 #define STANDARD36 0x00000001
222 #define STANDARD71 0x00000000
227 #define SVA 0x000000fe
232 #define SR 0x000000ff
238 #define INTE0 0x00000001
244 #define I2C_EMMA_CNT 0x00
245 #define I2C_EMMA_STA 0x10
246 #define I2C_EMMA_CSEL 0x20
247 #define I2C_EMMA_SVA 0x30
248 #define I2C_EMMA_SHR 0x40
249 #define I2C_EMMA_INT 0x50
250 #define I2C_EMMA_INTM 0x60
255 #ifdef CONFIG_NEC_MARKEINS
258 #error "Unknown EMMA2RH board!"