]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/CORTEX_A9_Zynq_ZC702/RTOSDemo_bsp/ps7_cortexa9_0/libsrc/standalone_v6_6/src/smc.h
Update Zynq, MPSoc Cortex-A53 and MPSoc Cortex-R5 demo projects to build with the...
[freertos] / FreeRTOS / Demo / CORTEX_A9_Zynq_ZC702 / RTOSDemo_bsp / ps7_cortexa9_0 / libsrc / standalone_v6_6 / src / smc.h
1 /******************************************************************************
2 *
3 * Copyright (C) 2010 - 2015 Xilinx, Inc.  All rights reserved.
4 *
5 * Permission is hereby granted, free of charge, to any person obtaining a copy
6 * of this software and associated documentation files (the "Software"), to deal
7 * in the Software without restriction, including without limitation the rights
8 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 * copies of the Software, and to permit persons to whom the Software is
10 * furnished to do so, subject to the following conditions:
11 *
12 * The above copyright notice and this permission notice shall be included in
13 * all copies or substantial portions of the Software.
14 *
15 * Use of the Software is limited solely to applications:
16 * (a) running on a Xilinx device, or
17 * (b) that interact with a Xilinx device through a bus or interconnect.
18 *
19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
22 * XILINX  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
23 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
24 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25 * SOFTWARE.
26 *
27 * Except as contained in this notice, the name of the Xilinx shall not be used
28 * in advertising or otherwise to promote the sale, use or other dealings in
29 * this Software without prior written authorization from Xilinx.
30 *
31 ******************************************************************************/
32 /*****************************************************************************/
33 /**
34 * @file smc.h
35 *
36 * <pre>
37 * MODIFICATION HISTORY:
38 *
39 * Ver   Who  Date     Changes
40 * ----- ---- -------- ---------------------------------------------------
41 * 1.00a sdm  11/03/09 Initial release.
42 * 4.2   pkp      08/04/14 Removed function definition of XSmc_NorInit and XSmc_NorInit
43 *                                         as smc.c is removed
44 * </pre>
45 *
46 * @note         None.
47 *
48 ******************************************************************************/
49
50 #ifndef SMC_H /* prevent circular inclusions */
51 #define SMC_H /* by using protection macros */
52
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56
57 /***************************** Include Files *********************************/
58
59 #include "xparameters.h"
60 #include "xil_io.h"
61
62 /***************** Macros (Inline Functions) Definitions *********************/
63
64 /**************************** Type Definitions *******************************/
65
66 /************************** Constant Definitions *****************************/
67
68 /* Memory controller configuration register offset */
69 #define XSMCPSS_MC_STATUS               0x000U  /* Controller status reg, RO */
70 #define XSMCPSS_MC_INTERFACE_CONFIG     0x004U  /* Interface config reg, RO */
71 #define XSMCPSS_MC_SET_CONFIG           0x008U  /* Set configuration reg, WO */
72 #define XSMCPSS_MC_CLR_CONFIG           0x00CU  /* Clear config reg, WO */
73 #define XSMCPSS_MC_DIRECT_CMD           0x010U  /* Direct command reg, WO */
74 #define XSMCPSS_MC_SET_CYCLES           0x014U  /* Set cycles register, WO */
75 #define XSMCPSS_MC_SET_OPMODE           0x018U  /* Set opmode register, WO */
76 #define XSMCPSS_MC_REFRESH_PERIOD_0     0x020U  /* Refresh period_0 reg, RW */
77 #define XSMCPSS_MC_REFRESH_PERIOD_1     0x024U  /* Refresh period_1 reg, RW */
78
79 /* Chip select configuration register offset */
80 #define XSMCPSS_CS_IF0_CHIP_0_OFFSET    0x100U  /* Interface 0 chip 0 config */
81 #define XSMCPSS_CS_IF0_CHIP_1_OFFSET    0x120U  /* Interface 0 chip 1 config */
82 #define XSMCPSS_CS_IF0_CHIP_2_OFFSET    0x140U  /* Interface 0 chip 2 config */
83 #define XSMCPSS_CS_IF0_CHIP_3_OFFSET    0x160U  /* Interface 0 chip 3 config */
84 #define XSMCPSS_CS_IF1_CHIP_0_OFFSET    0x180U  /* Interface 1 chip 0 config */
85 #define XSMCPSS_CS_IF1_CHIP_1_OFFSET    0x1A0U  /* Interface 1 chip 1 config */
86 #define XSMCPSS_CS_IF1_CHIP_2_OFFSET    0x1C0U  /* Interface 1 chip 2 config */
87 #define XSMCPSS_CS_IF1_CHIP_3_OFFSET    0x1E0U  /* Interface 1 chip 3 config */
88
89 /* User configuration register offset */
90 #define XSMCPSS_UC_STATUS_OFFSET        0x200U  /* User status reg, RO */
91 #define XSMCPSS_UC_CONFIG_OFFSET        0x204U  /* User config reg, WO */
92
93 /* Integration test register offset */
94 #define XSMCPSS_IT_OFFSET               0xE00U
95
96 /* ID configuration register offset */
97 #define XSMCPSS_ID_PERIP_0_OFFSET       0xFE0U
98 #define XSMCPSS_ID_PERIP_1_OFFSET       0xFE4U
99 #define XSMCPSS_ID_PERIP_2_OFFSET       0xFE8U
100 #define XSMCPSS_ID_PERIP_3_OFFSET       0xFECU
101 #define XSMCPSS_ID_PCELL_0_OFFSET       0xFF0U
102 #define XSMCPSS_ID_PCELL_1_OFFSET       0xFF4U
103 #define XSMCPSS_ID_PCELL_2_OFFSET       0xFF8U
104 #define XSMCPSS_ID_PCELL_3_OFFSET       0xFFCU
105
106 /************************** Variable Definitions *****************************/
107
108 /************************** Function Prototypes ******************************/
109
110 #ifdef __cplusplus
111 }
112 #endif /* __cplusplus */
113
114 #endif /* SMC_H */