Go to the documentation of this file.
7 #ifndef LEON_AMBA_H_INCLUDE
8 #define LEON_AMBA_H_INCLUDE
23 #define LEON_REG_UART_STATUS_DR 0x00000001
24 #define LEON_REG_UART_STATUS_TSE 0x00000002
25 #define LEON_REG_UART_STATUS_THE 0x00000004
26 #define LEON_REG_UART_STATUS_BR 0x00000008
27 #define LEON_REG_UART_STATUS_OE 0x00000010
28 #define LEON_REG_UART_STATUS_PE 0x00000020
29 #define LEON_REG_UART_STATUS_FE 0x00000040
30 #define LEON_REG_UART_STATUS_ERR 0x00000078
36 #define LEON_REG_UART_CTRL_RE 0x00000001
37 #define LEON_REG_UART_CTRL_TE 0x00000002
38 #define LEON_REG_UART_CTRL_RI 0x00000004
39 #define LEON_REG_UART_CTRL_TI 0x00000008
40 #define LEON_REG_UART_CTRL_PS 0x00000010
41 #define LEON_REG_UART_CTRL_PE 0x00000020
42 #define LEON_REG_UART_CTRL_FL 0x00000040
43 #define LEON_REG_UART_CTRL_LB 0x00000080
45 #define LEON3_GPTIMER_EN 1
46 #define LEON3_GPTIMER_RL 2
47 #define LEON3_GPTIMER_LD 4
48 #define LEON3_GPTIMER_IRQEN 8
49 #define LEON3_GPTIMER_SEPIRQ 8
51 #define LEON23_REG_TIMER_CONTROL_EN 0x00000001
53 #define LEON23_REG_TIMER_CONTROL_RL 0x00000002
55 #define LEON23_REG_TIMER_CONTROL_LD 0x00000004
57 #define LEON23_REG_TIMER_CONTROL_IQ 0x00000008
64 #define LEON_REG_PS2_STATUS_DR 0x00000001
65 #define LEON_REG_PS2_STATUS_PE 0x00000002
66 #define LEON_REG_PS2_STATUS_FE 0x00000004
67 #define LEON_REG_PS2_STATUS_KI 0x00000008
68 #define LEON_REG_PS2_STATUS_RF 0x00000010
69 #define LEON_REG_PS2_STATUS_TF 0x00000020
75 #define LEON_REG_PS2_CTRL_RE 0x00000001
76 #define LEON_REG_PS2_CTRL_TE 0x00000002
77 #define LEON_REG_PS2_CTRL_RI 0x00000004
78 #define LEON_REG_PS2_CTRL_TI 0x00000008
80 #define LEON3_IRQMPSTATUS_CPUNR 28
81 #define LEON3_IRQMPSTATUS_BROADCAST 27
83 #define GPTIMER_CONFIG_IRQNT(a) (((a) >> 3) & 0x1f)
84 #define GPTIMER_CONFIG_ISSEP(a) ((a) & (1 << 8))
85 #define GPTIMER_CONFIG_NTIMERS(a) ((a) & (0x7))
86 #define LEON3_GPTIMER_CTRL_PENDING 0x10
87 #define LEON3_GPTIMER_CONFIG_NRTIMERS(c) ((c)->config & 0x7)
88 #define LEON3_GPTIMER_CTRL_ISPENDING(r) (((r)&LEON3_GPTIMER_CTRL_PENDING) ? 1 : 0)
141 #define AMBA_MAXAPB_DEVS 64
142 #define AMBA_MAXAPB_DEVS_PERBUS 16
192 #define LEON3_IO_AREA 0xfff00000
193 #define LEON3_CONF_AREA 0xff000
194 #define LEON3_AHB_SLAVE_CONF_AREA (1 << 11)
196 #define LEON3_AHB_CONF_WORDS 8
197 #define LEON3_APB_CONF_WORDS 2
198 #define LEON3_AHB_MASTERS 16
199 #define LEON3_AHB_SLAVES 16
200 #define LEON3_APB_SLAVES 16
201 #define LEON3_APBUARTS 8
204 #define VENDOR_GAISLER 1
205 #define VENDOR_PENDER 2
207 #define VENDOR_OPENCORES 8
210 #define GAISLER_LEON3 0x003
211 #define GAISLER_LEON3DSU 0x004
212 #define GAISLER_ETHAHB 0x005
213 #define GAISLER_APBMST 0x006
214 #define GAISLER_AHBUART 0x007
215 #define GAISLER_SRCTRL 0x008
216 #define GAISLER_SDCTRL 0x009
217 #define GAISLER_APBUART 0x00C
218 #define GAISLER_IRQMP 0x00D
219 #define GAISLER_AHBRAM 0x00E
220 #define GAISLER_GPTIMER 0x011
221 #define GAISLER_PCITRG 0x012
222 #define GAISLER_PCISBRG 0x013
223 #define GAISLER_PCIFBRG 0x014
224 #define GAISLER_PCITRACE 0x015
225 #define GAISLER_PCIDMA 0x016
226 #define GAISLER_AHBTRACE 0x017
227 #define GAISLER_ETHDSU 0x018
228 #define GAISLER_PIOPORT 0x01A
229 #define GAISLER_GRGPIO 0x01A
230 #define GAISLER_AHBJTAG 0x01c
231 #define GAISLER_ETHMAC 0x01D
232 #define GAISLER_AHB2AHB 0x020
233 #define GAISLER_USBDC 0x021
234 #define GAISLER_ATACTRL 0x024
235 #define GAISLER_DDRSPA 0x025
236 #define GAISLER_USBEHC 0x026
237 #define GAISLER_USBUHC 0x027
238 #define GAISLER_I2CMST 0x028
239 #define GAISLER_SPICTRL 0x02D
240 #define GAISLER_DDR2SPA 0x02E
241 #define GAISLER_SPIMCTRL 0x045
242 #define GAISLER_LEON4 0x048
243 #define GAISLER_LEON4DSU 0x049
244 #define GAISLER_AHBSTAT 0x052
245 #define GAISLER_FTMCTRL 0x054
246 #define GAISLER_KBD 0x060
247 #define GAISLER_VGA 0x061
248 #define GAISLER_SVGA 0x063
249 #define GAISLER_GRSYSMON 0x066
250 #define GAISLER_GRACECTRL 0x067
252 #define GAISLER_L2TIME 0xffd
253 #define GAISLER_L2C 0xffe
254 #define GAISLER_PLUGPLAY 0xfff
257 #define AEROFLEX_UT699 0x0699
258 #define LEON4_NEXTREME1 0x0102
259 #define GAISLER_GR712RC 0x0712
261 #define amba_vendor(x) (((x) >> 24) & 0xff)
263 #define amba_device(x) (((x) >> 12) & 0xfff)