1 /******************************************************************************
3 * (c) Copyright 2010-2013 Xilinx, Inc. All rights reserved.
5 * This file contains confidential and proprietary information of Xilinx, Inc.
6 * and is protected under U.S. and international copyright and other
7 * intellectual property laws.
10 * This disclaimer is not a license and does not grant any rights to the
11 * materials distributed herewith. Except as otherwise provided in a valid
12 * license issued to you by Xilinx, and to the maximum extent permitted by
13 * applicable law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND WITH ALL
14 * FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS, EXPRESS,
15 * IMPLIED, OR STATUTORY, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
16 * MERCHANTABILITY, NON-INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE;
17 * and (2) Xilinx shall not be liable (whether in contract or tort, including
18 * negligence, or under any other theory of liability) for any loss or damage
19 * of any kind or nature related to, arising under or in connection with these
20 * materials, including for any direct, or any indirect, special, incidental,
21 * or consequential loss or damage (including loss of data, profits, goodwill,
22 * or any type of loss or damage suffered as a result of any action brought by
23 * a third party) even if such damage or loss was reasonably foreseeable or
24 * Xilinx had been advised of the possibility of the same.
26 * CRITICAL APPLICATIONS
27 * Xilinx products are not designed or intended to be fail-safe, or for use in
28 * any application requiring fail-safe performance, such as life-support or
29 * safety devices or systems, Class III medical devices, nuclear facilities,
30 * applications related to the deployment of airbags, or any other applications
31 * that could lead to death, personal injury, or severe property or
32 * environmental damage (individually and collectively, "Critical
33 * Applications"). Customer assumes the sole risk and liability of any use of
34 * Xilinx products in Critical Applications, subject only to applicable laws
35 * and regulations governing limitations on product liability.
37 * THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS PART OF THIS FILE
39 ******************************************************************************/
40 /*****************************************************************************/
42 * @file xparameters_ps.h
44 * This file contains the address definitions for the hard peripherals
45 * attached to the ARM Cortex A9 core.
48 * MODIFICATION HISTORY:
50 * Ver Who Date Changes
51 * ----- ------- -------- ---------------------------------------------------
52 * 1.00a ecm/sdm 02/01/10 Initial version
53 * 3.04a sdm 02/02/12 Removed some of the defines as they are being generated through
61 ******************************************************************************/
63 #ifndef _XPARAMETERS_PS_H_
64 #define _XPARAMETERS_PS_H_
70 /************************** Constant Definitions *****************************/
73 * This block contains constant declarations for the peripherals
74 * within the hardblock
77 /* Canonical definitions for DDR MEMORY */
78 #define XPAR_DDR_MEM_BASEADDR 0x00000000
79 #define XPAR_DDR_MEM_HIGHADDR 0x3FFFFFFF
81 /* Canonical definitions for Interrupts */
82 #define XPAR_XUARTPS_0_INTR XPS_UART0_INT_ID
83 #define XPAR_XUARTPS_1_INTR XPS_UART1_INT_ID
84 #define XPAR_XUSBPS_0_INTR XPS_USB0_INT_ID
85 #define XPAR_XUSBPS_1_INTR XPS_USB1_INT_ID
86 #define XPAR_XIICPS_0_INTR XPS_I2C0_INT_ID
87 #define XPAR_XIICPS_1_INTR XPS_I2C1_INT_ID
88 #define XPAR_XSPIPS_0_INTR XPS_SPI0_INT_ID
89 #define XPAR_XSPIPS_1_INTR XPS_SPI1_INT_ID
90 #define XPAR_XCANPS_0_INTR XPS_CAN0_INT_ID
91 #define XPAR_XCANPS_1_INTR XPS_CAN1_INT_ID
92 #define XPAR_XGPIOPS_0_INTR XPS_GPIO_INT_ID
93 #define XPAR_XEMACPS_0_INTR XPS_GEM0_INT_ID
94 #define XPAR_XEMACPS_0_WAKE_INTR XPS_GEM0_WAKE_INT_ID
95 #define XPAR_XEMACPS_1_INTR XPS_GEM1_INT_ID
96 #define XPAR_XEMACPS_1_WAKE_INTR XPS_GEM1_WAKE_INT_ID
97 #define XPAR_XSDIOPS_0_INTR XPS_SDIO0_INT_ID
98 #define XPAR_XQSPIPS_0_INTR XPS_QSPI_INT_ID
99 #define XPAR_XSDIOPS_1_INTR XPS_SDIO1_INT_ID
100 #define XPAR_XWDTPS_0_INTR XPS_WDT_INT_ID
101 #define XPAR_XDCFG_0_INTR XPS_DVC_INT_ID
102 #define XPAR_SCUTIMER_INTR XPS_SCU_TMR_INT_ID
103 #define XPAR_SCUWDT_INTR XPS_SCU_WDT_INT_ID
104 #define XPAR_XTTCPS_0_INTR XPS_TTC0_0_INT_ID
105 #define XPAR_XTTCPS_1_INTR XPS_TTC0_1_INT_ID
106 #define XPAR_XTTCPS_2_INTR XPS_TTC0_2_INT_ID
107 #define XPAR_XTTCPS_3_INTR XPS_TTC1_0_INT_ID
108 #define XPAR_XTTCPS_4_INTR XPS_TTC1_1_INT_ID
109 #define XPAR_XTTCPS_5_INTR XPS_TTC1_2_INT_ID
110 #define XPAR_XDMAPS_0_FAULT_INTR XPS_DMA0_ABORT_INT_ID
111 #define XPAR_XDMAPS_0_DONE_INTR_0 XPS_DMA0_INT_ID
112 #define XPAR_XDMAPS_0_DONE_INTR_1 XPS_DMA1_INT_ID
113 #define XPAR_XDMAPS_0_DONE_INTR_2 XPS_DMA2_INT_ID
114 #define XPAR_XDMAPS_0_DONE_INTR_3 XPS_DMA3_INT_ID
115 #define XPAR_XDMAPS_0_DONE_INTR_4 XPS_DMA4_INT_ID
116 #define XPAR_XDMAPS_0_DONE_INTR_5 XPS_DMA5_INT_ID
117 #define XPAR_XDMAPS_0_DONE_INTR_6 XPS_DMA6_INT_ID
118 #define XPAR_XDMAPS_0_DONE_INTR_7 XPS_DMA7_INT_ID
121 #define XPAR_XQSPIPS_0_LINEAR_BASEADDR XPS_QSPI_LINEAR_BASEADDR
122 #define XPAR_XPARPORTPS_CTRL_BASEADDR XPS_PARPORT_CRTL_BASEADDR
126 /* Canonical definitions for DMAC */
129 /* Canonical definitions for WDT */
131 /* Canonical definitions for SLCR */
132 #define XPAR_XSLCR_NUM_INSTANCES 1
133 #define XPAR_XSLCR_0_DEVICE_ID 0
134 #define XPAR_XSLCR_0_BASEADDR XPS_SYS_CTRL_BASEADDR
136 /* Canonical definitions for SCU GIC */
137 #define XPAR_SCUGIC_NUM_INSTANCES 1
138 #define XPAR_SCUGIC_SINGLE_DEVICE_ID 0
139 #define XPAR_SCUGIC_CPU_BASEADDR (XPS_SCU_PERIPH_BASE + 0x0100)
140 #define XPAR_SCUGIC_DIST_BASEADDR (XPS_SCU_PERIPH_BASE + 0x1000)
141 #define XPAR_SCUGIC_ACK_BEFORE 0
143 /* Canonical definitions for Global Timer */
144 #define XPAR_GLOBAL_TMR_NUM_INSTANCES 1
145 #define XPAR_GLOBAL_TMR_DEVICE_ID 0
146 #define XPAR_GLOBAL_TMR_BASEADDR (XPS_SCU_PERIPH_BASE + 0x200)
147 #define XPAR_GLOBAL_TMR_INTR XPS_GLOBAL_TMR_INT_ID
150 /* Xilinx Parallel Flash Library (XilFlash) User Settings */
154 #define XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ
158 * This block contains constant declarations for the peripherals
159 * within the hardblock. These have been put for bacwards compatibilty
162 #define XPS_PERIPHERAL_BASEADDR 0xE0000000
163 #define XPS_UART0_BASEADDR 0xE0000000
164 #define XPS_UART1_BASEADDR 0xE0001000
165 #define XPS_USB0_BASEADDR 0xE0002000
166 #define XPS_USB1_BASEADDR 0xE0003000
167 #define XPS_I2C0_BASEADDR 0xE0004000
168 #define XPS_I2C1_BASEADDR 0xE0005000
169 #define XPS_SPI0_BASEADDR 0xE0006000
170 #define XPS_SPI1_BASEADDR 0xE0007000
171 #define XPS_CAN0_BASEADDR 0xE0008000
172 #define XPS_CAN1_BASEADDR 0xE0009000
173 #define XPS_GPIO_BASEADDR 0xE000A000
174 #define XPS_GEM0_BASEADDR 0xE000B000
175 #define XPS_GEM1_BASEADDR 0xE000C000
176 #define XPS_QSPI_BASEADDR 0xE000D000
177 #define XPS_PARPORT_CRTL_BASEADDR 0xE000E000
178 #define XPS_SDIO0_BASEADDR 0xE0100000
179 #define XPS_SDIO1_BASEADDR 0xE0101000
180 #define XPS_IOU_BUS_CFG_BASEADDR 0xE0200000
181 #define XPS_NAND_BASEADDR 0xE1000000
182 #define XPS_PARPORT0_BASEADDR 0xE2000000
183 #define XPS_PARPORT1_BASEADDR 0xE4000000
184 #define XPS_QSPI_LINEAR_BASEADDR 0xFC000000
185 #define XPS_SYS_CTRL_BASEADDR 0xF8000000 /* AKA SLCR */
186 #define XPS_TTC0_BASEADDR 0xF8001000
187 #define XPS_TTC1_BASEADDR 0xF8002000
188 #define XPS_DMAC0_SEC_BASEADDR 0xF8003000
189 #define XPS_DMAC0_NON_SEC_BASEADDR 0xF8004000
190 #define XPS_WDT_BASEADDR 0xF8005000
191 #define XPS_DDR_CTRL_BASEADDR 0xF8006000
192 #define XPS_DEV_CFG_APB_BASEADDR 0xF8007000
193 #define XPS_AFI0_BASEADDR 0xF8008000
194 #define XPS_AFI1_BASEADDR 0xF8009000
195 #define XPS_AFI2_BASEADDR 0xF800A000
196 #define XPS_AFI3_BASEADDR 0xF800B000
197 #define XPS_OCM_BASEADDR 0xF800C000
198 #define XPS_EFUSE_BASEADDR 0xF800D000
199 #define XPS_CORESIGHT_BASEADDR 0xF8800000
200 #define XPS_TOP_BUS_CFG_BASEADDR 0xF8900000
201 #define XPS_SCU_PERIPH_BASE 0xF8F00000
202 #define XPS_L2CC_BASEADDR 0xF8F02000
203 #define XPS_SAM_RAM_BASEADDR 0xFFFC0000
204 #define XPS_FPGA_AXI_S0_BASEADDR 0x40000000
205 #define XPS_FPGA_AXI_S1_BASEADDR 0x80000000
206 #define XPS_IOU_S_SWITCH_BASEADDR 0xE0000000
207 #define XPS_PERIPH_APB_BASEADDR 0xF8000000
209 /* Shared Peripheral Interrupts (SPI) */
210 #define XPS_CORE_PARITY0_INT_ID 32
211 #define XPS_CORE_PARITY1_INT_ID 33
212 #define XPS_L2CC_INT_ID 34
213 #define XPS_OCMINTR_INT_ID 35
214 #define XPS_ECC_INT_ID 36
215 #define XPS_PMU0_INT_ID 37
216 #define XPS_PMU1_INT_ID 38
217 #define XPS_SYSMON_INT_ID 39
218 #define XPS_DVC_INT_ID 40
219 #define XPS_WDT_INT_ID 41
220 #define XPS_TTC0_0_INT_ID 42
221 #define XPS_TTC0_1_INT_ID 43
222 #define XPS_TTC0_2_INT_ID 44
223 #define XPS_DMA0_ABORT_INT_ID 45
224 #define XPS_DMA0_INT_ID 46
225 #define XPS_DMA1_INT_ID 47
226 #define XPS_DMA2_INT_ID 48
227 #define XPS_DMA3_INT_ID 49
228 #define XPS_SMC_INT_ID 50
229 #define XPS_QSPI_INT_ID 51
230 #define XPS_GPIO_INT_ID 52
231 #define XPS_USB0_INT_ID 53
232 #define XPS_GEM0_INT_ID 54
233 #define XPS_GEM0_WAKE_INT_ID 55
234 #define XPS_SDIO0_INT_ID 56
235 #define XPS_I2C0_INT_ID 57
236 #define XPS_SPI0_INT_ID 58
237 #define XPS_UART0_INT_ID 59
238 #define XPS_CAN0_INT_ID 60
239 #define XPS_FPGA0_INT_ID 61
240 #define XPS_FPGA1_INT_ID 62
241 #define XPS_FPGA2_INT_ID 63
242 #define XPS_FPGA3_INT_ID 64
243 #define XPS_FPGA4_INT_ID 65
244 #define XPS_FPGA5_INT_ID 66
245 #define XPS_FPGA6_INT_ID 67
246 #define XPS_FPGA7_INT_ID 68
247 #define XPS_TTC1_0_INT_ID 69
248 #define XPS_TTC1_1_INT_ID 70
249 #define XPS_TTC1_2_INT_ID 71
250 #define XPS_DMA4_INT_ID 72
251 #define XPS_DMA5_INT_ID 73
252 #define XPS_DMA6_INT_ID 74
253 #define XPS_DMA7_INT_ID 75
254 #define XPS_USB1_INT_ID 76
255 #define XPS_GEM1_INT_ID 77
256 #define XPS_GEM1_WAKE_INT_ID 78
257 #define XPS_SDIO1_INT_ID 79
258 #define XPS_I2C1_INT_ID 80
259 #define XPS_SPI1_INT_ID 81
260 #define XPS_UART1_INT_ID 82
261 #define XPS_CAN1_INT_ID 83
262 #define XPS_FPGA8_INT_ID 84
263 #define XPS_FPGA9_INT_ID 85
264 #define XPS_FPGA10_INT_ID 86
265 #define XPS_FPGA11_INT_ID 87
266 #define XPS_FPGA12_INT_ID 88
267 #define XPS_FPGA13_INT_ID 89
268 #define XPS_FPGA14_INT_ID 90
269 #define XPS_FPGA15_INT_ID 91
271 /* Private Peripheral Interrupts (PPI) */
272 #define XPS_GLOBAL_TMR_INT_ID 27 /* SCU Global Timer interrupt */
273 #define XPS_FIQ_INT_ID 28 /* FIQ from FPGA fabric */
274 #define XPS_SCU_TMR_INT_ID 29 /* SCU Private Timer interrupt */
275 #define XPS_SCU_WDT_INT_ID 30 /* SCU Private WDT interrupt */
276 #define XPS_IRQ_INT_ID 31 /* IRQ from FPGA fabric */
279 /* REDEFINES for TEST APP */
280 /* Definitions for UART */
281 #define XPAR_PS7_UART_0_INTR XPS_UART0_INT_ID
282 #define XPAR_PS7_UART_1_INTR XPS_UART1_INT_ID
283 #define XPAR_PS7_USB_0_INTR XPS_USB0_INT_ID
284 #define XPAR_PS7_USB_1_INTR XPS_USB1_INT_ID
285 #define XPAR_PS7_I2C_0_INTR XPS_I2C0_INT_ID
286 #define XPAR_PS7_I2C_1_INTR XPS_I2C1_INT_ID
287 #define XPAR_PS7_SPI_0_INTR XPS_SPI0_INT_ID
288 #define XPAR_PS7_SPI_1_INTR XPS_SPI1_INT_ID
289 #define XPAR_PS7_CAN_0_INTR XPS_CAN0_INT_ID
290 #define XPAR_PS7_CAN_1_INTR XPS_CAN1_INT_ID
291 #define XPAR_PS7_GPIO_0_INTR XPS_GPIO_INT_ID
292 #define XPAR_PS7_ETHERNET_0_INTR XPS_GEM0_INT_ID
293 #define XPAR_PS7_ETHERNET_0_WAKE_INTR XPS_GEM0_WAKE_INT_ID
294 #define XPAR_PS7_ETHERNET_1_INTR XPS_GEM1_INT_ID
295 #define XPAR_PS7_ETHERNET_1_WAKE_INTR XPS_GEM1_WAKE_INT_ID
296 #define XPAR_PS7_QSPI_0_INTR XPS_QSPI_INT_ID
297 #define XPAR_PS7_WDT_0_INTR XPS_WDT_INT_ID
298 #define XPAR_PS7_SCUWDT_0_INTR XPS_SCU_WDT_INT_ID
299 #define XPAR_PS7_SCUTIMER_0_INTR XPS_SCU_TMR_INT_ID
300 #define XPAR_PS7_XADC_0_INTR XPS_SYSMON_INT_ID
302 #define XPAR_XADCPS_INT_ID XPS_SYSMON_INT_ID
304 /* For backwards compatibilty */
305 #define XPAR_XUARTPS_0_CLOCK_HZ XPAR_XUARTPS_0_UART_CLK_FREQ_HZ
306 #define XPAR_XUARTPS_1_CLOCK_HZ XPAR_XUARTPS_1_UART_CLK_FREQ_HZ
307 #define XPAR_XTTCPS_0_CLOCK_HZ XPAR_XTTCPS_0_TTC_CLK_FREQ_HZ
308 #define XPAR_XTTCPS_1_CLOCK_HZ XPAR_XTTCPS_1_TTC_CLK_FREQ_HZ
309 #define XPAR_XTTCPS_2_CLOCK_HZ XPAR_XTTCPS_2_TTC_CLK_FREQ_HZ
310 #define XPAR_XTTCPS_3_CLOCK_HZ XPAR_XTTCPS_3_TTC_CLK_FREQ_HZ
311 #define XPAR_XTTCPS_4_CLOCK_HZ XPAR_XTTCPS_4_TTC_CLK_FREQ_HZ
312 #define XPAR_XTTCPS_5_CLOCK_HZ XPAR_XTTCPS_5_TTC_CLK_FREQ_HZ
313 #define XPAR_XIICPS_0_CLOCK_HZ XPAR_XIICPS_0_I2C_CLK_FREQ_HZ
314 #define XPAR_XIICPS_1_CLOCK_HZ XPAR_XIICPS_1_I2C_CLK_FREQ_HZ
316 #define XPAR_XQSPIPS_0_CLOCK_HZ XPAR_XQSPIPS_0_QSPI_CLK_FREQ_HZ
318 #ifdef XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ
319 #define XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ XPAR_CPU_CORTEXA9_0_CPU_CLK_FREQ_HZ
322 #ifdef XPAR_CPU_CORTEXA9_1_CPU_CLK_FREQ_HZ
323 #define XPAR_CPU_CORTEXA9_CORE_CLOCK_FREQ_HZ XPAR_CPU_CORTEXA9_1_CPU_CLK_FREQ_HZ
326 #define XPAR_SCUTIMER_DEVICE_ID 0
327 #define XPAR_SCUWDT_DEVICE_ID 0
334 #endif /* protection macro */