Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(144)

Side by Side Diff: arch/arm/mach-tegra/nv/include/ap20/arsnor.h

Issue 3256004: [ARM] tegra: add nvos/nvrm/nvmap drivers (Closed) Base URL: ssh://git@gitrw.chromium.org/kernel.git
Patch Set: remove ap15 headers Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (c) 2009 NVIDIA Corporation.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are met:
7 *
8 * Redistributions of source code must retain the above copyright notice,
9 * this list of conditions and the following disclaimer.
10 *
11 * Redistributions in binary form must reproduce the above copyright notice,
12 * this list of conditions and the following disclaimer in the documentation
13 * and/or other materials provided with the distribution.
14 *
15 * Neither the name of the NVIDIA Corporation nor the names of its contributors
16 * may be used to endorse or promote products derived from this software
17 * without specific prior written permission.
18 *
19 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29 * POSSIBILITY OF SUCH DAMAGE.
30 *
31 */
32 //
33 // DO NOT EDIT - generated by simspec!
34 //
35
36 #ifndef ___ARSNOR_H_INC_
37 #define ___ARSNOR_H_INC_
38
39 // Register SNOR_CONFIG_0
40 #define SNOR_CONFIG_0 _MK_ADDR_CONST(0x0)
41 #define SNOR_CONFIG_0_SECURE 0x0
42 #define SNOR_CONFIG_0_WORD_COUNT 0x1
43 #define SNOR_CONFIG_0_RESET_VAL _MK_MASK_CONST(0x1080000 0)
44 #define SNOR_CONFIG_0_RESET_MASK _MK_MASK_CONST(0xfdf887f f)
45 #define SNOR_CONFIG_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0)
46 #define SNOR_CONFIG_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
47 #define SNOR_CONFIG_0_READ_MASK _MK_MASK_CONST(0xfdf887f f)
48 #define SNOR_CONFIG_0_WRITE_MASK _MK_MASK_CONST(0xfdf887f f)
49 // When set a NOR operation commences.
50 #define SNOR_CONFIG_0_GO_NOR_SHIFT _MK_SHIFT_CONST(31)
51 #define SNOR_CONFIG_0_GO_NOR_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_GO_NOR_SHIFT)
52 #define SNOR_CONFIG_0_GO_NOR_RANGE 31:31
53 #define SNOR_CONFIG_0_GO_NOR_WOFFSET 0x0
54 #define SNOR_CONFIG_0_GO_NOR_DEFAULT _MK_MASK_CONST(0x0)
55 #define SNOR_CONFIG_0_GO_NOR_DEFAULT_MASK _MK_MASK_CONST(0 x1)
56 #define SNOR_CONFIG_0_GO_NOR_SW_DEFAULT _MK_MASK_CONST(0x0)
57 #define SNOR_CONFIG_0_GO_NOR_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
58 #define SNOR_CONFIG_0_GO_NOR_DISABLE _MK_ENUM_CONST(0)
59 #define SNOR_CONFIG_0_GO_NOR_ENABLE _MK_ENUM_CONST(1)
60
61 // NOR Device DataBus width Configuration Bit 0=16Bit, 1=32Bit.
62 #define SNOR_CONFIG_0_WORDWIDE_GMI_SHIFT _MK_SHIFT_CONST( 30)
63 #define SNOR_CONFIG_0_WORDWIDE_GMI_FIELD (_MK_MASK_CONST( 0x1) << SNOR_CONFIG_0_WORDWIDE_GMI_SHIFT)
64 #define SNOR_CONFIG_0_WORDWIDE_GMI_RANGE 30:30
65 #define SNOR_CONFIG_0_WORDWIDE_GMI_WOFFSET 0x0
66 #define SNOR_CONFIG_0_WORDWIDE_GMI_DEFAULT _MK_MASK_CONST(0 x0)
67 #define SNOR_CONFIG_0_WORDWIDE_GMI_DEFAULT_MASK _MK_MASK_CONST(0 x1)
68 #define SNOR_CONFIG_0_WORDWIDE_GMI_SW_DEFAULT _MK_MASK_CONST(0 x0)
69 #define SNOR_CONFIG_0_WORDWIDE_GMI_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
70 #define SNOR_CONFIG_0_WORDWIDE_GMI_NOR16BIT _MK_ENUM_CONST(0 )
71 #define SNOR_CONFIG_0_WORDWIDE_GMI_NOR32BIT _MK_ENUM_CONST(1 )
72
73 // External NOR Memory Type 0=SNOR, 1=MUXONENAND(simulation purpoes).
74 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_SHIFT _MK_SHIFT_CONST( 29)
75 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_FIELD (_MK_MASK_CONST( 0x1) << SNOR_CONFIG_0_NOR_DEVICE_TYPE_SHIFT)
76 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_RANGE 29:29
77 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_WOFFSET 0x0
78 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_DEFAULT _MK_MASK_CONST(0 x0)
79 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_DEFAULT_MASK _MK_MASK _CONST(0x1)
80 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_SW_DEFAULT _MK_MASK _CONST(0x0)
81 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
82 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_SNOR _MK_ENUM_CONST(0 )
83 #define SNOR_CONFIG_0_NOR_DEVICE_TYPE_MUXONENAND _MK_ENUM _CONST(1)
84
85 // NOR Device Address-Data Configuration Bit 0=NON-MUX Mode, 1=MUX Mode.
86 #define SNOR_CONFIG_0_MUXMODE_GMI_SHIFT _MK_SHIFT_CONST(28)
87 #define SNOR_CONFIG_0_MUXMODE_GMI_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_MUXMODE_GMI_SHIFT)
88 #define SNOR_CONFIG_0_MUXMODE_GMI_RANGE 28:28
89 #define SNOR_CONFIG_0_MUXMODE_GMI_WOFFSET 0x0
90 #define SNOR_CONFIG_0_MUXMODE_GMI_DEFAULT _MK_MASK_CONST(0 x1)
91 #define SNOR_CONFIG_0_MUXMODE_GMI_DEFAULT_MASK _MK_MASK_CONST(0 x1)
92 #define SNOR_CONFIG_0_MUXMODE_GMI_SW_DEFAULT _MK_MASK_CONST(0 x0)
93 #define SNOR_CONFIG_0_MUXMODE_GMI_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
94 #define SNOR_CONFIG_0_MUXMODE_GMI_AD_NONMUX _MK_ENUM_CONST(0 )
95 #define SNOR_CONFIG_0_MUXMODE_GMI_AD_MUX _MK_ENUM_CONST(1 )
96
97 // Burst Length Types 00=Continuous Burst, 01=8 Words, 10=16 Words, 11=32 Words.
98 #define SNOR_CONFIG_0_BURST_LENGTH_SHIFT _MK_SHIFT_CONST( 26)
99 #define SNOR_CONFIG_0_BURST_LENGTH_FIELD (_MK_MASK_CONST( 0x3) << SNOR_CONFIG_0_BURST_LENGTH_SHIFT)
100 #define SNOR_CONFIG_0_BURST_LENGTH_RANGE 27:26
101 #define SNOR_CONFIG_0_BURST_LENGTH_WOFFSET 0x0
102 #define SNOR_CONFIG_0_BURST_LENGTH_DEFAULT _MK_MASK_CONST(0 x0)
103 #define SNOR_CONFIG_0_BURST_LENGTH_DEFAULT_MASK _MK_MASK_CONST(0 x3)
104 #define SNOR_CONFIG_0_BURST_LENGTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
105 #define SNOR_CONFIG_0_BURST_LENGTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
106 #define SNOR_CONFIG_0_BURST_LENGTH_CNTBRST _MK_ENUM_CONST(0 )
107 #define SNOR_CONFIG_0_BURST_LENGTH_BL8WORD _MK_ENUM_CONST(1 )
108 #define SNOR_CONFIG_0_BURST_LENGTH_BL16WORD _MK_ENUM_CONST(2 )
109 #define SNOR_CONFIG_0_BURST_LENGTH_BL32WORD _MK_ENUM_CONST(3 )
110
111 // Device RDY Active Status 0=With Data, 1=One Cycle Before Data.
112 #define SNOR_CONFIG_0_RDY_ACTIVE_SHIFT _MK_SHIFT_CONST(24)
113 #define SNOR_CONFIG_0_RDY_ACTIVE_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_RDY_ACTIVE_SHIFT)
114 #define SNOR_CONFIG_0_RDY_ACTIVE_RANGE 24:24
115 #define SNOR_CONFIG_0_RDY_ACTIVE_WOFFSET 0x0
116 #define SNOR_CONFIG_0_RDY_ACTIVE_DEFAULT _MK_MASK_CONST(0 x0)
117 #define SNOR_CONFIG_0_RDY_ACTIVE_DEFAULT_MASK _MK_MASK_CONST(0 x1)
118 #define SNOR_CONFIG_0_RDY_ACTIVE_SW_DEFAULT _MK_MASK_CONST(0 x0)
119 #define SNOR_CONFIG_0_RDY_ACTIVE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
120 #define SNOR_CONFIG_0_RDY_ACTIVE_WITHDATA _MK_ENUM_CONST(0 )
121 #define SNOR_CONFIG_0_RDY_ACTIVE_BEFOREDATA _MK_ENUM_CONST(1 )
122
123 // Ready signal polarity 0=Active low, 1=Active high.
124 #define SNOR_CONFIG_0_RDY_POLARITY_SHIFT _MK_SHIFT_CONST( 23)
125 #define SNOR_CONFIG_0_RDY_POLARITY_FIELD (_MK_MASK_CONST( 0x1) << SNOR_CONFIG_0_RDY_POLARITY_SHIFT)
126 #define SNOR_CONFIG_0_RDY_POLARITY_RANGE 23:23
127 #define SNOR_CONFIG_0_RDY_POLARITY_WOFFSET 0x0
128 #define SNOR_CONFIG_0_RDY_POLARITY_DEFAULT _MK_MASK_CONST(0 x1)
129 #define SNOR_CONFIG_0_RDY_POLARITY_DEFAULT_MASK _MK_MASK_CONST(0 x1)
130 #define SNOR_CONFIG_0_RDY_POLARITY_SW_DEFAULT _MK_MASK_CONST(0 x0)
131 #define SNOR_CONFIG_0_RDY_POLARITY_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
132 #define SNOR_CONFIG_0_RDY_POLARITY_RESV _MK_ENUM_CONST(0)
133 #define SNOR_CONFIG_0_RDY_POLARITY_HIGH _MK_ENUM_CONST(1)
134
135 // ADV pulse polarity 0=Active low, 1=Active high.
136 #define SNOR_CONFIG_0_ADV_POLARITY_SHIFT _MK_SHIFT_CONST( 22)
137 #define SNOR_CONFIG_0_ADV_POLARITY_FIELD (_MK_MASK_CONST( 0x1) << SNOR_CONFIG_0_ADV_POLARITY_SHIFT)
138 #define SNOR_CONFIG_0_ADV_POLARITY_RANGE 22:22
139 #define SNOR_CONFIG_0_ADV_POLARITY_WOFFSET 0x0
140 #define SNOR_CONFIG_0_ADV_POLARITY_DEFAULT _MK_MASK_CONST(0 x0)
141 #define SNOR_CONFIG_0_ADV_POLARITY_DEFAULT_MASK _MK_MASK_CONST(0 x1)
142 #define SNOR_CONFIG_0_ADV_POLARITY_SW_DEFAULT _MK_MASK_CONST(0 x0)
143 #define SNOR_CONFIG_0_ADV_POLARITY_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
144 #define SNOR_CONFIG_0_ADV_POLARITY_LOW _MK_ENUM_CONST(0)
145 #define SNOR_CONFIG_0_ADV_POLARITY_RESV _MK_ENUM_CONST(1)
146
147 // OE/WE polarity 0=Active low, 1=Active high.
148 #define SNOR_CONFIG_0_OE_WE_POLARITY_SHIFT _MK_SHIFT_CONST( 21)
149 #define SNOR_CONFIG_0_OE_WE_POLARITY_FIELD (_MK_MASK_CONST( 0x1) << SNOR_CONFIG_0_OE_WE_POLARITY_SHIFT)
150 #define SNOR_CONFIG_0_OE_WE_POLARITY_RANGE 21:21
151 #define SNOR_CONFIG_0_OE_WE_POLARITY_WOFFSET 0x0
152 #define SNOR_CONFIG_0_OE_WE_POLARITY_DEFAULT _MK_MASK_CONST(0 x0)
153 #define SNOR_CONFIG_0_OE_WE_POLARITY_DEFAULT_MASK _MK_MASK _CONST(0x1)
154 #define SNOR_CONFIG_0_OE_WE_POLARITY_SW_DEFAULT _MK_MASK_CONST(0 x0)
155 #define SNOR_CONFIG_0_OE_WE_POLARITY_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
156 #define SNOR_CONFIG_0_OE_WE_POLARITY_LOW _MK_ENUM_CONST(0 )
157 #define SNOR_CONFIG_0_OE_WE_POLARITY_RESV _MK_ENUM_CONST(1 )
158
159 // Chip Select polarity 0=Active low, 1=Active high.
160 #define SNOR_CONFIG_0_CS_POLARITY_SHIFT _MK_SHIFT_CONST(20)
161 #define SNOR_CONFIG_0_CS_POLARITY_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_CS_POLARITY_SHIFT)
162 #define SNOR_CONFIG_0_CS_POLARITY_RANGE 20:20
163 #define SNOR_CONFIG_0_CS_POLARITY_WOFFSET 0x0
164 #define SNOR_CONFIG_0_CS_POLARITY_DEFAULT _MK_MASK_CONST(0 x0)
165 #define SNOR_CONFIG_0_CS_POLARITY_DEFAULT_MASK _MK_MASK_CONST(0 x1)
166 #define SNOR_CONFIG_0_CS_POLARITY_SW_DEFAULT _MK_MASK_CONST(0 x0)
167 #define SNOR_CONFIG_0_CS_POLARITY_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
168 #define SNOR_CONFIG_0_CS_POLARITY_LOW _MK_ENUM_CONST(0)
169 #define SNOR_CONFIG_0_CS_POLARITY_RESV _MK_ENUM_CONST(1)
170
171 // Indicates the Power Down Mode enable bit.
172 #define SNOR_CONFIG_0_NOR_DPD_SHIFT _MK_SHIFT_CONST(19)
173 #define SNOR_CONFIG_0_NOR_DPD_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_NOR_DPD_SHIFT)
174 #define SNOR_CONFIG_0_NOR_DPD_RANGE 19:19
175 #define SNOR_CONFIG_0_NOR_DPD_WOFFSET 0x0
176 #define SNOR_CONFIG_0_NOR_DPD_DEFAULT _MK_MASK_CONST(0x0)
177 #define SNOR_CONFIG_0_NOR_DPD_DEFAULT_MASK _MK_MASK_CONST(0 x1)
178 #define SNOR_CONFIG_0_NOR_DPD_SW_DEFAULT _MK_MASK_CONST(0 x0)
179 #define SNOR_CONFIG_0_NOR_DPD_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
180 #define SNOR_CONFIG_0_NOR_DPD_DISABLE _MK_ENUM_CONST(0)
181 #define SNOR_CONFIG_0_NOR_DPD_ENABLE _MK_ENUM_CONST(1)
182
183 // Sets the NOR Write protect enable bit.
184 #define SNOR_CONFIG_0_NOR_WP_SHIFT _MK_SHIFT_CONST(15)
185 #define SNOR_CONFIG_0_NOR_WP_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_NOR_WP_SHIFT)
186 #define SNOR_CONFIG_0_NOR_WP_RANGE 15:15
187 #define SNOR_CONFIG_0_NOR_WP_WOFFSET 0x0
188 #define SNOR_CONFIG_0_NOR_WP_DEFAULT _MK_MASK_CONST(0x0)
189 #define SNOR_CONFIG_0_NOR_WP_DEFAULT_MASK _MK_MASK_CONST(0 x1)
190 #define SNOR_CONFIG_0_NOR_WP_SW_DEFAULT _MK_MASK_CONST(0x0)
191 #define SNOR_CONFIG_0_NOR_WP_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
192 #define SNOR_CONFIG_0_NOR_WP_DISABLE _MK_ENUM_CONST(0)
193 #define SNOR_CONFIG_0_NOR_WP_ENABLE _MK_ENUM_CONST(1)
194
195 // Sets the number of words in a page if page mode is selected.
196 #define SNOR_CONFIG_0_PAGE_SIZE_SHIFT _MK_SHIFT_CONST(8)
197 #define SNOR_CONFIG_0_PAGE_SIZE_FIELD (_MK_MASK_CONST(0x7) << SNOR_CONFIG_0_PAGE_SIZE_SHIFT)
198 #define SNOR_CONFIG_0_PAGE_SIZE_RANGE 10:8
199 #define SNOR_CONFIG_0_PAGE_SIZE_WOFFSET 0x0
200 #define SNOR_CONFIG_0_PAGE_SIZE_DEFAULT _MK_MASK_CONST(0x0)
201 #define SNOR_CONFIG_0_PAGE_SIZE_DEFAULT_MASK _MK_MASK_CONST(0 x7)
202 #define SNOR_CONFIG_0_PAGE_SIZE_SW_DEFAULT _MK_MASK_CONST(0 x0)
203 #define SNOR_CONFIG_0_PAGE_SIZE_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
204 #define SNOR_CONFIG_0_PAGE_SIZE_BRST _MK_ENUM_CONST(0)
205 #define SNOR_CONFIG_0_PAGE_SIZE_PG4WORD _MK_ENUM_CONST(1)
206 #define SNOR_CONFIG_0_PAGE_SIZE_PG8WORD _MK_ENUM_CONST(2)
207 #define SNOR_CONFIG_0_PAGE_SIZE_PG16WORD _MK_ENUM_CONST(3 )
208 #define SNOR_CONFIG_0_PAGE_SIZE_RESV4 _MK_ENUM_CONST(4)
209 #define SNOR_CONFIG_0_PAGE_SIZE_RESV5 _MK_ENUM_CONST(5)
210 #define SNOR_CONFIG_0_PAGE_SIZE_RESV6 _MK_ENUM_CONST(6)
211 #define SNOR_CONFIG_0_PAGE_SIZE_RESV7 _MK_ENUM_CONST(7)
212
213 // Selection bit between Master DMA and Slave Interface.
214 #define SNOR_CONFIG_0_MST_ENB_SHIFT _MK_SHIFT_CONST(7)
215 #define SNOR_CONFIG_0_MST_ENB_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_MST_ENB_SHIFT)
216 #define SNOR_CONFIG_0_MST_ENB_RANGE 7:7
217 #define SNOR_CONFIG_0_MST_ENB_WOFFSET 0x0
218 #define SNOR_CONFIG_0_MST_ENB_DEFAULT _MK_MASK_CONST(0x0)
219 #define SNOR_CONFIG_0_MST_ENB_DEFAULT_MASK _MK_MASK_CONST(0 x1)
220 #define SNOR_CONFIG_0_MST_ENB_SW_DEFAULT _MK_MASK_CONST(0 x0)
221 #define SNOR_CONFIG_0_MST_ENB_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
222 #define SNOR_CONFIG_0_MST_ENB_DISABLE _MK_ENUM_CONST(0)
223 #define SNOR_CONFIG_0_MST_ENB_ENABLE _MK_ENUM_CONST(1)
224
225 // SNOR 8 chip selects combinations.
226 #define SNOR_CONFIG_0_SNOR_SEL_SHIFT _MK_SHIFT_CONST(4)
227 #define SNOR_CONFIG_0_SNOR_SEL_FIELD (_MK_MASK_CONST(0x7) << SNOR_CONFIG_0_SNOR_SEL_SHIFT)
228 #define SNOR_CONFIG_0_SNOR_SEL_RANGE 6:4
229 #define SNOR_CONFIG_0_SNOR_SEL_WOFFSET 0x0
230 #define SNOR_CONFIG_0_SNOR_SEL_DEFAULT _MK_MASK_CONST(0x0)
231 #define SNOR_CONFIG_0_SNOR_SEL_DEFAULT_MASK _MK_MASK_CONST(0 x7)
232 #define SNOR_CONFIG_0_SNOR_SEL_SW_DEFAULT _MK_MASK_CONST(0 x0)
233 #define SNOR_CONFIG_0_SNOR_SEL_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
234 #define SNOR_CONFIG_0_SNOR_SEL_CS0 _MK_ENUM_CONST(0)
235 #define SNOR_CONFIG_0_SNOR_SEL_CS1 _MK_ENUM_CONST(1)
236 #define SNOR_CONFIG_0_SNOR_SEL_CS2 _MK_ENUM_CONST(2)
237 #define SNOR_CONFIG_0_SNOR_SEL_CS3 _MK_ENUM_CONST(3)
238 #define SNOR_CONFIG_0_SNOR_SEL_CS4 _MK_ENUM_CONST(4)
239 #define SNOR_CONFIG_0_SNOR_SEL_CS5 _MK_ENUM_CONST(5)
240 #define SNOR_CONFIG_0_SNOR_SEL_CS6 _MK_ENUM_CONST(6)
241 #define SNOR_CONFIG_0_SNOR_SEL_CS7 _MK_ENUM_CONST(7)
242
243 // Indicates if the ADV gets asserted before CE.
244 #define SNOR_CONFIG_0_CE_LAST_SHIFT _MK_SHIFT_CONST(3)
245 #define SNOR_CONFIG_0_CE_LAST_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_CE_LAST_SHIFT)
246 #define SNOR_CONFIG_0_CE_LAST_RANGE 3:3
247 #define SNOR_CONFIG_0_CE_LAST_WOFFSET 0x0
248 #define SNOR_CONFIG_0_CE_LAST_DEFAULT _MK_MASK_CONST(0x0)
249 #define SNOR_CONFIG_0_CE_LAST_DEFAULT_MASK _MK_MASK_CONST(0 x1)
250 #define SNOR_CONFIG_0_CE_LAST_SW_DEFAULT _MK_MASK_CONST(0 x0)
251 #define SNOR_CONFIG_0_CE_LAST_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
252 #define SNOR_CONFIG_0_CE_LAST_DISABLE _MK_ENUM_CONST(0)
253 #define SNOR_CONFIG_0_CE_LAST_RESV _MK_ENUM_CONST(1)
254
255 // Indicates if the CE gets asserted before ADV.
256 #define SNOR_CONFIG_0_CE_FIRST_SHIFT _MK_SHIFT_CONST(2)
257 #define SNOR_CONFIG_0_CE_FIRST_FIELD (_MK_MASK_CONST(0x1) << SNOR_CONFIG_0_CE_FIRST_SHIFT)
258 #define SNOR_CONFIG_0_CE_FIRST_RANGE 2:2
259 #define SNOR_CONFIG_0_CE_FIRST_WOFFSET 0x0
260 #define SNOR_CONFIG_0_CE_FIRST_DEFAULT _MK_MASK_CONST(0x0)
261 #define SNOR_CONFIG_0_CE_FIRST_DEFAULT_MASK _MK_MASK_CONST(0 x1)
262 #define SNOR_CONFIG_0_CE_FIRST_SW_DEFAULT _MK_MASK_CONST(0 x0)
263 #define SNOR_CONFIG_0_CE_FIRST_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
264 #define SNOR_CONFIG_0_CE_FIRST_DISABLE _MK_ENUM_CONST(0)
265 #define SNOR_CONFIG_0_CE_FIRST_RESV _MK_ENUM_CONST(1)
266
267 // This field specifies the Mode of Operation for SYNC Memories.
268 #define SNOR_CONFIG_0_DEVICE_MODE_SHIFT _MK_SHIFT_CONST(0)
269 #define SNOR_CONFIG_0_DEVICE_MODE_FIELD (_MK_MASK_CONST(0x3) << SNOR_CONFIG_0_DEVICE_MODE_SHIFT)
270 #define SNOR_CONFIG_0_DEVICE_MODE_RANGE 1:0
271 #define SNOR_CONFIG_0_DEVICE_MODE_WOFFSET 0x0
272 #define SNOR_CONFIG_0_DEVICE_MODE_DEFAULT _MK_MASK_CONST(0 x0)
273 #define SNOR_CONFIG_0_DEVICE_MODE_DEFAULT_MASK _MK_MASK_CONST(0 x3)
274 #define SNOR_CONFIG_0_DEVICE_MODE_SW_DEFAULT _MK_MASK_CONST(0 x0)
275 #define SNOR_CONFIG_0_DEVICE_MODE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
276 #define SNOR_CONFIG_0_DEVICE_MODE_ASYNC _MK_ENUM_CONST(0)
277 #define SNOR_CONFIG_0_DEVICE_MODE_PAGE _MK_ENUM_CONST(1)
278 #define SNOR_CONFIG_0_DEVICE_MODE_BURST _MK_ENUM_CONST(2)
279 #define SNOR_CONFIG_0_DEVICE_MODE_RESV _MK_ENUM_CONST(3)
280
281
282 // Register SNOR_STA_0
283 #define SNOR_STA_0 _MK_ADDR_CONST(0x4)
284 #define SNOR_STA_0_SECURE 0x0
285 #define SNOR_STA_0_WORD_COUNT 0x1
286 #define SNOR_STA_0_RESET_VAL _MK_MASK_CONST(0x0)
287 #define SNOR_STA_0_RESET_MASK _MK_MASK_CONST(0x8ff0ffff)
288 #define SNOR_STA_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0)
289 #define SNOR_STA_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
290 #define SNOR_STA_0_READ_MASK _MK_MASK_CONST(0x8ff0ffff)
291 #define SNOR_STA_0_WRITE_MASK _MK_MASK_CONST(0xf000000)
292 // Indicates that the device status.
293 #define SNOR_STA_0_DEVICE_BSY_SHIFT _MK_SHIFT_CONST(31)
294 #define SNOR_STA_0_DEVICE_BSY_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_DEVICE_BSY_SHIFT)
295 #define SNOR_STA_0_DEVICE_BSY_RANGE 31:31
296 #define SNOR_STA_0_DEVICE_BSY_WOFFSET 0x0
297 #define SNOR_STA_0_DEVICE_BSY_DEFAULT _MK_MASK_CONST(0x0)
298 #define SNOR_STA_0_DEVICE_BSY_DEFAULT_MASK _MK_MASK_CONST(0 x1)
299 #define SNOR_STA_0_DEVICE_BSY_SW_DEFAULT _MK_MASK_CONST(0 x0)
300 #define SNOR_STA_0_DEVICE_BSY_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
301
302 // Device Interrupt-2 from MuxOneNand Memory.
303 #define SNOR_STA_0_DEVICE_INTR_2_SHIFT _MK_SHIFT_CONST(27)
304 #define SNOR_STA_0_DEVICE_INTR_2_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_DEVICE_INTR_2_SHIFT)
305 #define SNOR_STA_0_DEVICE_INTR_2_RANGE 27:27
306 #define SNOR_STA_0_DEVICE_INTR_2_WOFFSET 0x0
307 #define SNOR_STA_0_DEVICE_INTR_2_DEFAULT _MK_MASK_CONST(0 x0)
308 #define SNOR_STA_0_DEVICE_INTR_2_DEFAULT_MASK _MK_MASK_CONST(0 x1)
309 #define SNOR_STA_0_DEVICE_INTR_2_SW_DEFAULT _MK_MASK_CONST(0 x0)
310 #define SNOR_STA_0_DEVICE_INTR_2_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
311
312 // Device Interrupt-1 from MuxOneNand Memory.
313 #define SNOR_STA_0_DEVICE_INTR_1_SHIFT _MK_SHIFT_CONST(26)
314 #define SNOR_STA_0_DEVICE_INTR_1_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_DEVICE_INTR_1_SHIFT)
315 #define SNOR_STA_0_DEVICE_INTR_1_RANGE 26:26
316 #define SNOR_STA_0_DEVICE_INTR_1_WOFFSET 0x0
317 #define SNOR_STA_0_DEVICE_INTR_1_DEFAULT _MK_MASK_CONST(0 x0)
318 #define SNOR_STA_0_DEVICE_INTR_1_DEFAULT_MASK _MK_MASK_CONST(0 x1)
319 #define SNOR_STA_0_DEVICE_INTR_1_SW_DEFAULT _MK_MASK_CONST(0 x0)
320 #define SNOR_STA_0_DEVICE_INTR_1_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
321
322 // Device Interrupt-2 Enable Bit.
323 #define SNOR_STA_0_DEVICE_INTR_2_ENB_SHIFT _MK_SHIFT_CONST( 25)
324 #define SNOR_STA_0_DEVICE_INTR_2_ENB_FIELD (_MK_MASK_CONST( 0x1) << SNOR_STA_0_DEVICE_INTR_2_ENB_SHIFT)
325 #define SNOR_STA_0_DEVICE_INTR_2_ENB_RANGE 25:25
326 #define SNOR_STA_0_DEVICE_INTR_2_ENB_WOFFSET 0x0
327 #define SNOR_STA_0_DEVICE_INTR_2_ENB_DEFAULT _MK_MASK_CONST(0 x0)
328 #define SNOR_STA_0_DEVICE_INTR_2_ENB_DEFAULT_MASK _MK_MASK _CONST(0x1)
329 #define SNOR_STA_0_DEVICE_INTR_2_ENB_SW_DEFAULT _MK_MASK_CONST(0 x0)
330 #define SNOR_STA_0_DEVICE_INTR_2_ENB_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
331
332 // Device Interrupt-1 Enable Bit.
333 #define SNOR_STA_0_DEVICE_INTR_1_ENB_SHIFT _MK_SHIFT_CONST( 24)
334 #define SNOR_STA_0_DEVICE_INTR_1_ENB_FIELD (_MK_MASK_CONST( 0x1) << SNOR_STA_0_DEVICE_INTR_1_ENB_SHIFT)
335 #define SNOR_STA_0_DEVICE_INTR_1_ENB_RANGE 24:24
336 #define SNOR_STA_0_DEVICE_INTR_1_ENB_WOFFSET 0x0
337 #define SNOR_STA_0_DEVICE_INTR_1_ENB_DEFAULT _MK_MASK_CONST(0 x0)
338 #define SNOR_STA_0_DEVICE_INTR_1_ENB_DEFAULT_MASK _MK_MASK _CONST(0x1)
339 #define SNOR_STA_0_DEVICE_INTR_1_ENB_SW_DEFAULT _MK_MASK_CONST(0 x0)
340 #define SNOR_STA_0_DEVICE_INTR_1_ENB_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
341
342 // SLV FIFO full status.
343 #define SNOR_STA_0_SLV_FIFO_FULL_SHIFT _MK_SHIFT_CONST(23)
344 #define SNOR_STA_0_SLV_FIFO_FULL_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_SLV_FIFO_FULL_SHIFT)
345 #define SNOR_STA_0_SLV_FIFO_FULL_RANGE 23:23
346 #define SNOR_STA_0_SLV_FIFO_FULL_WOFFSET 0x0
347 #define SNOR_STA_0_SLV_FIFO_FULL_DEFAULT _MK_MASK_CONST(0 x0)
348 #define SNOR_STA_0_SLV_FIFO_FULL_DEFAULT_MASK _MK_MASK_CONST(0 x1)
349 #define SNOR_STA_0_SLV_FIFO_FULL_SW_DEFAULT _MK_MASK_CONST(0 x0)
350 #define SNOR_STA_0_SLV_FIFO_FULL_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
351
352 // SLV FIFO empty status.
353 #define SNOR_STA_0_SLV_FIFO_EMPTY_SHIFT _MK_SHIFT_CONST(22)
354 #define SNOR_STA_0_SLV_FIFO_EMPTY_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_SLV_FIFO_EMPTY_SHIFT)
355 #define SNOR_STA_0_SLV_FIFO_EMPTY_RANGE 22:22
356 #define SNOR_STA_0_SLV_FIFO_EMPTY_WOFFSET 0x0
357 #define SNOR_STA_0_SLV_FIFO_EMPTY_DEFAULT _MK_MASK_CONST(0 x0)
358 #define SNOR_STA_0_SLV_FIFO_EMPTY_DEFAULT_MASK _MK_MASK_CONST(0 x1)
359 #define SNOR_STA_0_SLV_FIFO_EMPTY_SW_DEFAULT _MK_MASK_CONST(0 x0)
360 #define SNOR_STA_0_SLV_FIFO_EMPTY_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
361
362 // MST FIFO full status.
363 #define SNOR_STA_0_MST_FIFO_FULL_SHIFT _MK_SHIFT_CONST(21)
364 #define SNOR_STA_0_MST_FIFO_FULL_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_MST_FIFO_FULL_SHIFT)
365 #define SNOR_STA_0_MST_FIFO_FULL_RANGE 21:21
366 #define SNOR_STA_0_MST_FIFO_FULL_WOFFSET 0x0
367 #define SNOR_STA_0_MST_FIFO_FULL_DEFAULT _MK_MASK_CONST(0 x0)
368 #define SNOR_STA_0_MST_FIFO_FULL_DEFAULT_MASK _MK_MASK_CONST(0 x1)
369 #define SNOR_STA_0_MST_FIFO_FULL_SW_DEFAULT _MK_MASK_CONST(0 x0)
370 #define SNOR_STA_0_MST_FIFO_FULL_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
371
372 // MST FIFO empty status.
373 #define SNOR_STA_0_MST_FIFO_EMPTY_SHIFT _MK_SHIFT_CONST(20)
374 #define SNOR_STA_0_MST_FIFO_EMPTY_FIELD (_MK_MASK_CONST(0x1) << SNOR_STA_0_MST_FIFO_EMPTY_SHIFT)
375 #define SNOR_STA_0_MST_FIFO_EMPTY_RANGE 20:20
376 #define SNOR_STA_0_MST_FIFO_EMPTY_WOFFSET 0x0
377 #define SNOR_STA_0_MST_FIFO_EMPTY_DEFAULT _MK_MASK_CONST(0 x0)
378 #define SNOR_STA_0_MST_FIFO_EMPTY_DEFAULT_MASK _MK_MASK_CONST(0 x1)
379 #define SNOR_STA_0_MST_FIFO_EMPTY_SW_DEFAULT _MK_MASK_CONST(0 x0)
380 #define SNOR_STA_0_MST_FIFO_EMPTY_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
381
382 // Indicates the number of Data to be transfered; current dma_data_count.
383 #define SNOR_STA_0_DMA_DATA_CNT_SHIFT _MK_SHIFT_CONST(0)
384 #define SNOR_STA_0_DMA_DATA_CNT_FIELD (_MK_MASK_CONST(0xffff) << SNOR_STA_0_DMA_DATA_CNT_SHIFT)
385 #define SNOR_STA_0_DMA_DATA_CNT_RANGE 15:0
386 #define SNOR_STA_0_DMA_DATA_CNT_WOFFSET 0x0
387 #define SNOR_STA_0_DMA_DATA_CNT_DEFAULT _MK_MASK_CONST(0x0)
388 #define SNOR_STA_0_DMA_DATA_CNT_DEFAULT_MASK _MK_MASK_CONST(0 xffff)
389 #define SNOR_STA_0_DMA_DATA_CNT_SW_DEFAULT _MK_MASK_CONST(0 x0)
390 #define SNOR_STA_0_DMA_DATA_CNT_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
391
392
393 // Register SNOR_NOR_ADDR_PTR_0
394 #define SNOR_NOR_ADDR_PTR_0 _MK_ADDR_CONST(0x8)
395 #define SNOR_NOR_ADDR_PTR_0_SECURE 0x0
396 #define SNOR_NOR_ADDR_PTR_0_WORD_COUNT 0x1
397 #define SNOR_NOR_ADDR_PTR_0_RESET_VAL _MK_MASK_CONST(0x0)
398 #define SNOR_NOR_ADDR_PTR_0_RESET_MASK _MK_MASK_CONST(0xfffffff f)
399 #define SNOR_NOR_ADDR_PTR_0_SW_DEFAULT_VAL _MK_MASK_CONST(0 x0)
400 #define SNOR_NOR_ADDR_PTR_0_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
401 #define SNOR_NOR_ADDR_PTR_0_READ_MASK _MK_MASK_CONST(0xfffffff f)
402 #define SNOR_NOR_ADDR_PTR_0_WRITE_MASK _MK_MASK_CONST(0xfffffff f)
403 // Indicates that the NOR controller Address.
404 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_SHIFT _MK_SHIF T_CONST(0)
405 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_FIELD (_MK_MAS K_CONST(0xffffffff) << SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_SHIFT)
406 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_RANGE 31:0
407 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_WOFFSET 0x0
408 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_DEFAULT _MK_MASK _CONST(0x0)
409 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_DEFAULT_MASK _MK_MASK_CONST(0xffffffff)
410 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_SW_DEFAULT _MK_MASK_CONST(0x0)
411 #define SNOR_NOR_ADDR_PTR_0_SNOR_NOR_ADDR_PTR_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
412
413
414 // Register SNOR_AHB_ADDR_PTR_0
415 #define SNOR_AHB_ADDR_PTR_0 _MK_ADDR_CONST(0xc)
416 #define SNOR_AHB_ADDR_PTR_0_SECURE 0x0
417 #define SNOR_AHB_ADDR_PTR_0_WORD_COUNT 0x1
418 #define SNOR_AHB_ADDR_PTR_0_RESET_VAL _MK_MASK_CONST(0x0)
419 #define SNOR_AHB_ADDR_PTR_0_RESET_MASK _MK_MASK_CONST(0xfffffff f)
420 #define SNOR_AHB_ADDR_PTR_0_SW_DEFAULT_VAL _MK_MASK_CONST(0 x0)
421 #define SNOR_AHB_ADDR_PTR_0_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
422 #define SNOR_AHB_ADDR_PTR_0_READ_MASK _MK_MASK_CONST(0xfffffff f)
423 #define SNOR_AHB_ADDR_PTR_0_WRITE_MASK _MK_MASK_CONST(0xfffffff f)
424 // Indicates that the AHB side Address.
425 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_SHIFT _MK_SHIF T_CONST(0)
426 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_FIELD (_MK_MAS K_CONST(0xffffffff) << SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_SHIFT)
427 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_RANGE 31:0
428 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_WOFFSET 0x0
429 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_DEFAULT _MK_MASK _CONST(0x0)
430 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_DEFAULT_MASK _MK_MASK_CONST(0xffffffff)
431 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_SW_DEFAULT _MK_MASK_CONST(0x0)
432 #define SNOR_AHB_ADDR_PTR_0_SNOR_AHB_ADDR_PTR_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
433
434
435 // Register SNOR_TIMING0_0
436 #define SNOR_TIMING0_0 _MK_ADDR_CONST(0x10)
437 #define SNOR_TIMING0_0_SECURE 0x0
438 #define SNOR_TIMING0_0_WORD_COUNT 0x1
439 #define SNOR_TIMING0_0_RESET_VAL _MK_MASK_CONST(0x3010111 4)
440 #define SNOR_TIMING0_0_RESET_MASK _MK_MASK_CONST(0xf0f0fff f)
441 #define SNOR_TIMING0_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0)
442 #define SNOR_TIMING0_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
443 #define SNOR_TIMING0_0_READ_MASK _MK_MASK_CONST(0xf0f0fff f)
444 #define SNOR_TIMING0_0_WRITE_MASK _MK_MASK_CONST(0xf0f0fff f)
445 // This represents the number of wait clock cycles from address to 1st data read y.
446 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_SHIFT _MK_SHIFT_CONST( 28)
447 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_FIELD (_MK_MASK_CONST( 0xf) << SNOR_TIMING0_0_PAGE_RDY_WIDTH_SHIFT)
448 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_RANGE 31:28
449 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_WOFFSET 0x0
450 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_DEFAULT _MK_MASK_CONST(0 x3)
451 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_DEFAULT_MASK _MK_MASK _CONST(0xf)
452 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_SW_DEFAULT _MK_MASK _CONST(0x0)
453 #define SNOR_TIMING0_0_PAGE_RDY_WIDTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
454
455 // Page Sequential width indicates the delay cycle between the intra page Read a ccess.
456 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_SHIFT _MK_SHIFT_CONST( 20)
457 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_FIELD (_MK_MASK_CONST( 0xf) << SNOR_TIMING0_0_PAGE_SEQ_WIDTH_SHIFT)
458 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_RANGE 23:20
459 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_WOFFSET 0x0
460 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_DEFAULT _MK_MASK_CONST(0 x1)
461 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_DEFAULT_MASK _MK_MASK _CONST(0xf)
462 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_SW_DEFAULT _MK_MASK _CONST(0x0)
463 #define SNOR_TIMING0_0_PAGE_SEQ_WIDTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
464
465 // Indicates in number of cycles MUX address/data asserted on the bus.
466 #define SNOR_TIMING0_0_MUXED_WIDTH_SHIFT _MK_SHIFT_CONST( 12)
467 #define SNOR_TIMING0_0_MUXED_WIDTH_FIELD (_MK_MASK_CONST( 0xf) << SNOR_TIMING0_0_MUXED_WIDTH_SHIFT)
468 #define SNOR_TIMING0_0_MUXED_WIDTH_RANGE 15:12
469 #define SNOR_TIMING0_0_MUXED_WIDTH_WOFFSET 0x0
470 #define SNOR_TIMING0_0_MUXED_WIDTH_DEFAULT _MK_MASK_CONST(0 x1)
471 #define SNOR_TIMING0_0_MUXED_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xf)
472 #define SNOR_TIMING0_0_MUXED_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
473 #define SNOR_TIMING0_0_MUXED_WIDTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
474
475 // Indicates in number of cycles CE stays asserted after the de-assertion of WE_ (in case of SLAVE/MASTER Request) or OE_(in case of MASTER Request).
476 #define SNOR_TIMING0_0_HOLD_WIDTH_SHIFT _MK_SHIFT_CONST(8)
477 #define SNOR_TIMING0_0_HOLD_WIDTH_FIELD (_MK_MASK_CONST(0xf) << SNOR_TIMING0_0_HOLD_WIDTH_SHIFT)
478 #define SNOR_TIMING0_0_HOLD_WIDTH_RANGE 11:8
479 #define SNOR_TIMING0_0_HOLD_WIDTH_WOFFSET 0x0
480 #define SNOR_TIMING0_0_HOLD_WIDTH_DEFAULT _MK_MASK_CONST(0 x1)
481 #define SNOR_TIMING0_0_HOLD_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xf)
482 #define SNOR_TIMING0_0_HOLD_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
483 #define SNOR_TIMING0_0_HOLD_WIDTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
484
485 // Indicates the number of cycles during which ADV stays asserted.
486 #define SNOR_TIMING0_0_ADV_WIDTH_SHIFT _MK_SHIFT_CONST(4)
487 #define SNOR_TIMING0_0_ADV_WIDTH_FIELD (_MK_MASK_CONST(0xf) << SNOR_TIMING0_0_ADV_WIDTH_SHIFT)
488 #define SNOR_TIMING0_0_ADV_WIDTH_RANGE 7:4
489 #define SNOR_TIMING0_0_ADV_WIDTH_WOFFSET 0x0
490 #define SNOR_TIMING0_0_ADV_WIDTH_DEFAULT _MK_MASK_CONST(0 x1)
491 #define SNOR_TIMING0_0_ADV_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xf)
492 #define SNOR_TIMING0_0_ADV_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
493 #define SNOR_TIMING0_0_ADV_WIDTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
494
495 // Indicates the number of cycles before CE is asserted.
496 #define SNOR_TIMING0_0_CE_WIDTH_SHIFT _MK_SHIFT_CONST(0)
497 #define SNOR_TIMING0_0_CE_WIDTH_FIELD (_MK_MASK_CONST(0xf) << SNOR_TIMING0_0_CE_WIDTH_SHIFT)
498 #define SNOR_TIMING0_0_CE_WIDTH_RANGE 3:0
499 #define SNOR_TIMING0_0_CE_WIDTH_WOFFSET 0x0
500 #define SNOR_TIMING0_0_CE_WIDTH_DEFAULT _MK_MASK_CONST(0x4)
501 #define SNOR_TIMING0_0_CE_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xf)
502 #define SNOR_TIMING0_0_CE_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
503 #define SNOR_TIMING0_0_CE_WIDTH_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
504
505
506 // Register SNOR_TIMING1_0
507 #define SNOR_TIMING1_0 _MK_ADDR_CONST(0x14)
508 #define SNOR_TIMING1_0_SECURE 0x0
509 #define SNOR_TIMING1_0_WORD_COUNT 0x1
510 #define SNOR_TIMING1_0_RESET_VAL _MK_MASK_CONST(0x10103)
511 #define SNOR_TIMING1_0_RESET_MASK _MK_MASK_CONST(0xffffff)
512 #define SNOR_TIMING1_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0)
513 #define SNOR_TIMING1_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
514 #define SNOR_TIMING1_0_READ_MASK _MK_MASK_CONST(0xffffff)
515 #define SNOR_TIMING1_0_WRITE_MASK _MK_MASK_CONST(0xffffff)
516 // Write access time.
517 #define SNOR_TIMING1_0_WE_WIDTH_SHIFT _MK_SHIFT_CONST(16)
518 #define SNOR_TIMING1_0_WE_WIDTH_FIELD (_MK_MASK_CONST(0xff) << SNOR_TIMING1_0_WE_WIDTH_SHIFT)
519 #define SNOR_TIMING1_0_WE_WIDTH_RANGE 23:16
520 #define SNOR_TIMING1_0_WE_WIDTH_WOFFSET 0x0
521 #define SNOR_TIMING1_0_WE_WIDTH_DEFAULT _MK_MASK_CONST(0x1)
522 #define SNOR_TIMING1_0_WE_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xff)
523 #define SNOR_TIMING1_0_WE_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
524 #define SNOR_TIMING1_0_WE_WIDTH_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
525
526 // Read access time.
527 #define SNOR_TIMING1_0_OE_WIDTH_SHIFT _MK_SHIFT_CONST(8)
528 #define SNOR_TIMING1_0_OE_WIDTH_FIELD (_MK_MASK_CONST(0xff) << SNOR_TIMING1_0_OE_WIDTH_SHIFT)
529 #define SNOR_TIMING1_0_OE_WIDTH_RANGE 15:8
530 #define SNOR_TIMING1_0_OE_WIDTH_WOFFSET 0x0
531 #define SNOR_TIMING1_0_OE_WIDTH_DEFAULT _MK_MASK_CONST(0x1)
532 #define SNOR_TIMING1_0_OE_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xff)
533 #define SNOR_TIMING1_0_OE_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
534 #define SNOR_TIMING1_0_OE_WIDTH_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
535
536 // Indicates in cycles the number of wait states before when READY is issued.
537 #define SNOR_TIMING1_0_WAIT_WIDTH_SHIFT _MK_SHIFT_CONST(0)
538 #define SNOR_TIMING1_0_WAIT_WIDTH_FIELD (_MK_MASK_CONST(0xff) << SNOR_TIMING1_0_WAIT_WIDTH_SHIFT)
539 #define SNOR_TIMING1_0_WAIT_WIDTH_RANGE 7:0
540 #define SNOR_TIMING1_0_WAIT_WIDTH_WOFFSET 0x0
541 #define SNOR_TIMING1_0_WAIT_WIDTH_DEFAULT _MK_MASK_CONST(0 x3)
542 #define SNOR_TIMING1_0_WAIT_WIDTH_DEFAULT_MASK _MK_MASK_CONST(0 xff)
543 #define SNOR_TIMING1_0_WAIT_WIDTH_SW_DEFAULT _MK_MASK_CONST(0 x0)
544 #define SNOR_TIMING1_0_WAIT_WIDTH_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
545
546
547 // Register SNOR_MIO_CFG_0
548 #define SNOR_MIO_CFG_0 _MK_ADDR_CONST(0x18)
549 #define SNOR_MIO_CFG_0_SECURE 0x0
550 #define SNOR_MIO_CFG_0_WORD_COUNT 0x1
551 #define SNOR_MIO_CFG_0_RESET_VAL _MK_MASK_CONST(0x1070000 0)
552 #define SNOR_MIO_CFG_0_RESET_MASK _MK_MASK_CONST(0x3070000 0)
553 #define SNOR_MIO_CFG_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0)
554 #define SNOR_MIO_CFG_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
555 #define SNOR_MIO_CFG_0_READ_MASK _MK_MASK_CONST(0x3070000 0)
556 #define SNOR_MIO_CFG_0_WRITE_MASK _MK_MASK_CONST(0x3070000 0)
557 // Indicates the databus size of MIO Memory.
558 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_SHIFT _MK_SHIFT_CONST( 29)
559 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_FIELD (_MK_MASK_CONST( 0x1) << SNOR_MIO_CFG_0_MIO_WORDWIDE_SHIFT)
560 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_RANGE 29:29
561 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_WOFFSET 0x0
562 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_DEFAULT _MK_MASK_CONST(0 x0)
563 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_DEFAULT_MASK _MK_MASK _CONST(0x1)
564 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_SW_DEFAULT _MK_MASK_CONST(0 x0)
565 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
566 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_MIO16BIT _MK_ENUM_CONST(0 )
567 #define SNOR_MIO_CFG_0_MIO_WORDWIDE_MIO32BIT _MK_ENUM_CONST(1 )
568
569 // Specifies the polarity of MIO RDY.
570 #define SNOR_MIO_CFG_0_MIO_RDY_POL_SHIFT _MK_SHIFT_CONST( 28)
571 #define SNOR_MIO_CFG_0_MIO_RDY_POL_FIELD (_MK_MASK_CONST( 0x1) << SNOR_MIO_CFG_0_MIO_RDY_POL_SHIFT)
572 #define SNOR_MIO_CFG_0_MIO_RDY_POL_RANGE 28:28
573 #define SNOR_MIO_CFG_0_MIO_RDY_POL_WOFFSET 0x0
574 #define SNOR_MIO_CFG_0_MIO_RDY_POL_DEFAULT _MK_MASK_CONST(0 x1)
575 #define SNOR_MIO_CFG_0_MIO_RDY_POL_DEFAULT_MASK _MK_MASK_CONST(0 x1)
576 #define SNOR_MIO_CFG_0_MIO_RDY_POL_SW_DEFAULT _MK_MASK_CONST(0 x0)
577 #define SNOR_MIO_CFG_0_MIO_RDY_POL_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
578 #define SNOR_MIO_CFG_0_MIO_RDY_POL_RESV _MK_ENUM_CONST(0)
579 #define SNOR_MIO_CFG_0_MIO_RDY_POL_HIGH _MK_ENUM_CONST(1)
580
581 // MIO 8 chip selects combinations.
582 #define SNOR_MIO_CFG_0_MIO_SEL_SHIFT _MK_SHIFT_CONST(20)
583 #define SNOR_MIO_CFG_0_MIO_SEL_FIELD (_MK_MASK_CONST(0x7) << SNOR_MIO_CFG_0_MIO_SEL_SHIFT)
584 #define SNOR_MIO_CFG_0_MIO_SEL_RANGE 22:20
585 #define SNOR_MIO_CFG_0_MIO_SEL_WOFFSET 0x0
586 #define SNOR_MIO_CFG_0_MIO_SEL_DEFAULT _MK_MASK_CONST(0x7)
587 #define SNOR_MIO_CFG_0_MIO_SEL_DEFAULT_MASK _MK_MASK_CONST(0 x7)
588 #define SNOR_MIO_CFG_0_MIO_SEL_SW_DEFAULT _MK_MASK_CONST(0 x0)
589 #define SNOR_MIO_CFG_0_MIO_SEL_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
590 #define SNOR_MIO_CFG_0_MIO_SEL_MIO0 _MK_ENUM_CONST(0)
591 #define SNOR_MIO_CFG_0_MIO_SEL_MIO1 _MK_ENUM_CONST(1)
592 #define SNOR_MIO_CFG_0_MIO_SEL_MIO2 _MK_ENUM_CONST(2)
593 #define SNOR_MIO_CFG_0_MIO_SEL_MIO3 _MK_ENUM_CONST(3)
594 #define SNOR_MIO_CFG_0_MIO_SEL_MIO4 _MK_ENUM_CONST(4)
595 #define SNOR_MIO_CFG_0_MIO_SEL_MIO5 _MK_ENUM_CONST(5)
596 #define SNOR_MIO_CFG_0_MIO_SEL_MIO6 _MK_ENUM_CONST(6)
597 #define SNOR_MIO_CFG_0_MIO_SEL_MIO7 _MK_ENUM_CONST(7)
598
599
600 // Register SNOR_MIO_TIMING0_0
601 #define SNOR_MIO_TIMING0_0 _MK_ADDR_CONST(0x1c)
602 #define SNOR_MIO_TIMING0_0_SECURE 0x0
603 #define SNOR_MIO_TIMING0_0_WORD_COUNT 0x1
604 #define SNOR_MIO_TIMING0_0_RESET_VAL _MK_MASK_CONST(0x1020102 )
605 #define SNOR_MIO_TIMING0_0_RESET_MASK _MK_MASK_CONST(0x3f3f3f3 f)
606 #define SNOR_MIO_TIMING0_0_SW_DEFAULT_VAL _MK_MASK_CONST(0 x0)
607 #define SNOR_MIO_TIMING0_0_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
608 #define SNOR_MIO_TIMING0_0_READ_MASK _MK_MASK_CONST(0x3f3f3f3 f)
609 #define SNOR_MIO_TIMING0_0_WRITE_MASK _MK_MASK_CONST(0x3f3f3f3 f)
610 // Minimum number of MIO bus clock cycles between the end of a write access
611 // and the start of the following access (write or read) for MIO.
612 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_SHIFT _MK_SHIFT_CONST( 24)
613 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_FIELD (_MK_MASK_CONST( 0x3f) << SNOR_MIO_TIMING0_0_MIO_A_DED_WR_SHIFT)
614 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_RANGE 29:24
615 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_WOFFSET 0x0
616 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_DEFAULT _MK_MASK_CONST(0 x1)
617 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_DEFAULT_MASK _MK_MASK _CONST(0x3f)
618 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_SW_DEFAULT _MK_MASK _CONST(0x0)
619 #define SNOR_MIO_TIMING0_0_MIO_A_DED_WR_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
620
621 // Minimum number of MIO bus clock cycles during a write access that the MIO_RD
622 // signal is set low for MIO.
623 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_SHIFT _MK_SHIFT_CONST( 16)
624 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_FIELD (_MK_MASK_CONST( 0x3f) << SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_SHIFT)
625 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_RANGE 21:16
626 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_WOFFSET 0x0
627 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_DEFAULT _MK_MASK _CONST(0x2)
628 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_DEFAULT_MASK _MK_MASK _CONST(0x3f)
629 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_SW_DEFAULT _MK_MASK _CONST(0x0)
630 #define SNOR_MIO_TIMING0_0_MIO_A_WR_TIME_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
631
632 // Minimum number of MIO bus clock cycles between the end of a read access
633 // and the start of the following access (write or read) for MIO.
634 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_SHIFT _MK_SHIFT_CONST( 8)
635 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_FIELD (_MK_MASK_CONST( 0x3f) << SNOR_MIO_TIMING0_0_MIO_A_DED_RD_SHIFT)
636 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_RANGE 13:8
637 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_WOFFSET 0x0
638 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_DEFAULT _MK_MASK_CONST(0 x1)
639 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_DEFAULT_MASK _MK_MASK _CONST(0x3f)
640 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_SW_DEFAULT _MK_MASK _CONST(0x0)
641 #define SNOR_MIO_TIMING0_0_MIO_A_DED_RD_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
642
643 // Minimum number of MIO bus clock cycles during a read access that the MIO_RD
644 // signal is set low for MIO.
645 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_SHIFT _MK_SHIFT_CONST( 0)
646 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_FIELD (_MK_MASK_CONST( 0x3f) << SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_SHIFT)
647 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_RANGE 5:0
648 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_WOFFSET 0x0
649 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_DEFAULT _MK_MASK _CONST(0x2)
650 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_DEFAULT_MASK _MK_MASK _CONST(0x3f)
651 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_SW_DEFAULT _MK_MASK _CONST(0x0)
652 #define SNOR_MIO_TIMING0_0_MIO_A_RD_TIME_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
653
654
655 // Register SNOR_DMA_CFG_0
656 #define SNOR_DMA_CFG_0 _MK_ADDR_CONST(0x20)
657 #define SNOR_DMA_CFG_0_SECURE 0x0
658 #define SNOR_DMA_CFG_0_WORD_COUNT 0x1
659 #define SNOR_DMA_CFG_0_RESET_VAL _MK_MASK_CONST(0x4000000 )
660 #define SNOR_DMA_CFG_0_RESET_MASK _MK_MASK_CONST(0xff00fff c)
661 #define SNOR_DMA_CFG_0_SW_DEFAULT_VAL _MK_MASK_CONST(0x0)
662 #define SNOR_DMA_CFG_0_SW_DEFAULT_MASK _MK_MASK_CONST(0x0)
663 #define SNOR_DMA_CFG_0_READ_MASK _MK_MASK_CONST(0xff00fff c)
664 #define SNOR_DMA_CFG_0_WRITE_MASK _MK_MASK_CONST(0xff00fff c)
665 // This represents the number of DMA is enabled.
666 #define SNOR_DMA_CFG_0_DMA_GO_SHIFT _MK_SHIFT_CONST(31)
667 #define SNOR_DMA_CFG_0_DMA_GO_FIELD (_MK_MASK_CONST(0x1) << SNOR_DMA_CFG_0_DMA_GO_SHIFT)
668 #define SNOR_DMA_CFG_0_DMA_GO_RANGE 31:31
669 #define SNOR_DMA_CFG_0_DMA_GO_WOFFSET 0x0
670 #define SNOR_DMA_CFG_0_DMA_GO_DEFAULT _MK_MASK_CONST(0x0)
671 #define SNOR_DMA_CFG_0_DMA_GO_DEFAULT_MASK _MK_MASK_CONST(0 x1)
672 #define SNOR_DMA_CFG_0_DMA_GO_SW_DEFAULT _MK_MASK_CONST(0 x0)
673 #define SNOR_DMA_CFG_0_DMA_GO_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
674 #define SNOR_DMA_CFG_0_DMA_GO_DISABLE _MK_ENUM_CONST(0)
675 #define SNOR_DMA_CFG_0_DMA_GO_ENABLE _MK_ENUM_CONST(1)
676
677 // Indicates the status of DMA.
678 #define SNOR_DMA_CFG_0_BSY_SHIFT _MK_SHIFT_CONST(30)
679 #define SNOR_DMA_CFG_0_BSY_FIELD (_MK_MASK_CONST(0x1) << SNOR_DMA_CFG_0_BSY_SHIFT)
680 #define SNOR_DMA_CFG_0_BSY_RANGE 30:30
681 #define SNOR_DMA_CFG_0_BSY_WOFFSET 0x0
682 #define SNOR_DMA_CFG_0_BSY_DEFAULT _MK_MASK_CONST(0x0)
683 #define SNOR_DMA_CFG_0_BSY_DEFAULT_MASK _MK_MASK_CONST(0x1)
684 #define SNOR_DMA_CFG_0_BSY_SW_DEFAULT _MK_MASK_CONST(0x0)
685 #define SNOR_DMA_CFG_0_BSY_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
686
687 // This represents the the direction of DMA data Transfer.
688 #define SNOR_DMA_CFG_0_DIR_SHIFT _MK_SHIFT_CONST(29)
689 #define SNOR_DMA_CFG_0_DIR_FIELD (_MK_MASK_CONST(0x1) << SNOR_DMA_CFG_0_DIR_SHIFT)
690 #define SNOR_DMA_CFG_0_DIR_RANGE 29:29
691 #define SNOR_DMA_CFG_0_DIR_WOFFSET 0x0
692 #define SNOR_DMA_CFG_0_DIR_DEFAULT _MK_MASK_CONST(0x0)
693 #define SNOR_DMA_CFG_0_DIR_DEFAULT_MASK _MK_MASK_CONST(0x1)
694 #define SNOR_DMA_CFG_0_DIR_SW_DEFAULT _MK_MASK_CONST(0x0)
695 #define SNOR_DMA_CFG_0_DIR_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
696 #define SNOR_DMA_CFG_0_DIR_NOR2AHB _MK_ENUM_CONST(0)
697 #define SNOR_DMA_CFG_0_DIR_AHB2NOR _MK_ENUM_CONST(1)
698
699 // Interrupt Enable on DMA transfer completion.
700 #define SNOR_DMA_CFG_0_IE_DMA_DONE_SHIFT _MK_SHIFT_CONST( 28)
701 #define SNOR_DMA_CFG_0_IE_DMA_DONE_FIELD (_MK_MASK_CONST( 0x1) << SNOR_DMA_CFG_0_IE_DMA_DONE_SHIFT)
702 #define SNOR_DMA_CFG_0_IE_DMA_DONE_RANGE 28:28
703 #define SNOR_DMA_CFG_0_IE_DMA_DONE_WOFFSET 0x0
704 #define SNOR_DMA_CFG_0_IE_DMA_DONE_DEFAULT _MK_MASK_CONST(0 x0)
705 #define SNOR_DMA_CFG_0_IE_DMA_DONE_DEFAULT_MASK _MK_MASK_CONST(0 x1)
706 #define SNOR_DMA_CFG_0_IE_DMA_DONE_SW_DEFAULT _MK_MASK_CONST(0 x0)
707 #define SNOR_DMA_CFG_0_IE_DMA_DONE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
708 #define SNOR_DMA_CFG_0_IE_DMA_DONE_DISABLE _MK_ENUM_CONST(0 )
709 #define SNOR_DMA_CFG_0_IE_DMA_DONE_ENABLE _MK_ENUM_CONST(1 )
710
711 // Interrupt Status (Write 1 to clear).
712 #define SNOR_DMA_CFG_0_IS_DMA_DONE_SHIFT _MK_SHIFT_CONST( 27)
713 #define SNOR_DMA_CFG_0_IS_DMA_DONE_FIELD (_MK_MASK_CONST( 0x1) << SNOR_DMA_CFG_0_IS_DMA_DONE_SHIFT)
714 #define SNOR_DMA_CFG_0_IS_DMA_DONE_RANGE 27:27
715 #define SNOR_DMA_CFG_0_IS_DMA_DONE_WOFFSET 0x0
716 #define SNOR_DMA_CFG_0_IS_DMA_DONE_DEFAULT _MK_MASK_CONST(0 x0)
717 #define SNOR_DMA_CFG_0_IS_DMA_DONE_DEFAULT_MASK _MK_MASK_CONST(0 x1)
718 #define SNOR_DMA_CFG_0_IS_DMA_DONE_SW_DEFAULT _MK_MASK_CONST(0 x0)
719 #define SNOR_DMA_CFG_0_IS_DMA_DONE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
720 #define SNOR_DMA_CFG_0_IS_DMA_DONE_DISABLE _MK_ENUM_CONST(0 )
721 #define SNOR_DMA_CFG_0_IS_DMA_DONE_ENABLE _MK_ENUM_CONST(1 )
722
723 // DMA burst size.
724 #define SNOR_DMA_CFG_0_BURST_SIZE_SHIFT _MK_SHIFT_CONST(24)
725 #define SNOR_DMA_CFG_0_BURST_SIZE_FIELD (_MK_MASK_CONST(0x7) << SNOR_DMA_CFG_0_BURST_SIZE_SHIFT)
726 #define SNOR_DMA_CFG_0_BURST_SIZE_RANGE 26:24
727 #define SNOR_DMA_CFG_0_BURST_SIZE_WOFFSET 0x0
728 #define SNOR_DMA_CFG_0_BURST_SIZE_DEFAULT _MK_MASK_CONST(0 x4)
729 #define SNOR_DMA_CFG_0_BURST_SIZE_DEFAULT_MASK _MK_MASK_CONST(0 x7)
730 #define SNOR_DMA_CFG_0_BURST_SIZE_SW_DEFAULT _MK_MASK_CONST(0 x0)
731 #define SNOR_DMA_CFG_0_BURST_SIZE_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
732 #define SNOR_DMA_CFG_0_BURST_SIZE_RESV0 _MK_ENUM_CONST(0)
733 #define SNOR_DMA_CFG_0_BURST_SIZE_RESV1 _MK_ENUM_CONST(1)
734 #define SNOR_DMA_CFG_0_BURST_SIZE_RESV2 _MK_ENUM_CONST(2)
735 #define SNOR_DMA_CFG_0_BURST_SIZE_RESV3 _MK_ENUM_CONST(3)
736 #define SNOR_DMA_CFG_0_BURST_SIZE_BS1WORD _MK_ENUM_CONST(4 )
737 #define SNOR_DMA_CFG_0_BURST_SIZE_BS4WORD _MK_ENUM_CONST(5 )
738 #define SNOR_DMA_CFG_0_BURST_SIZE_BS8WORD _MK_ENUM_CONST(6 )
739 #define SNOR_DMA_CFG_0_BURST_SIZE_RESV7 _MK_ENUM_CONST(7)
740
741 // Specifies the number of words that need to be transferred.
742 #define SNOR_DMA_CFG_0_WORD_COUNT_SHIFT _MK_SHIFT_CONST(2)
743 #define SNOR_DMA_CFG_0_WORD_COUNT_FIELD (_MK_MASK_CONST(0x3fff) << SNOR_DMA_CFG_0_WORD_COUNT_SHIFT)
744 #define SNOR_DMA_CFG_0_WORD_COUNT_RANGE 15:2
745 #define SNOR_DMA_CFG_0_WORD_COUNT_WOFFSET 0x0
746 #define SNOR_DMA_CFG_0_WORD_COUNT_DEFAULT _MK_MASK_CONST(0 x0)
747 #define SNOR_DMA_CFG_0_WORD_COUNT_DEFAULT_MASK _MK_MASK_CONST(0 x3fff)
748 #define SNOR_DMA_CFG_0_WORD_COUNT_SW_DEFAULT _MK_MASK_CONST(0 x0)
749 #define SNOR_DMA_CFG_0_WORD_COUNT_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
750
751
752 // Register SNOR_CS_MUX_CFG_0
753 #define SNOR_CS_MUX_CFG_0 _MK_ADDR_CONST(0x24)
754 #define SNOR_CS_MUX_CFG_0_SECURE 0x0
755 #define SNOR_CS_MUX_CFG_0_WORD_COUNT 0x1
756 #define SNOR_CS_MUX_CFG_0_RESET_VAL _MK_MASK_CONST(0x7654321 0)
757 #define SNOR_CS_MUX_CFG_0_RESET_MASK _MK_MASK_CONST(0x7777777 7)
758 #define SNOR_CS_MUX_CFG_0_SW_DEFAULT_VAL _MK_MASK_CONST(0 x0)
759 #define SNOR_CS_MUX_CFG_0_SW_DEFAULT_MASK _MK_MASK_CONST(0 x0)
760 #define SNOR_CS_MUX_CFG_0_READ_MASK _MK_MASK_CONST(0x7777777 7)
761 #define SNOR_CS_MUX_CFG_0_WRITE_MASK _MK_MASK_CONST(0x7777777 7)
762 // This represents the which chip selects goes to which memory.
763 // Chip selection between SNOR and MIO Memories.
764 #define SNOR_CS_MUX_CFG_0_CS7_MUX_SHIFT _MK_SHIFT_CONST(28)
765 #define SNOR_CS_MUX_CFG_0_CS7_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS7_MUX_SHIFT)
766 #define SNOR_CS_MUX_CFG_0_CS7_MUX_RANGE 30:28
767 #define SNOR_CS_MUX_CFG_0_CS7_MUX_WOFFSET 0x0
768 #define SNOR_CS_MUX_CFG_0_CS7_MUX_DEFAULT _MK_MASK_CONST(0 x7)
769 #define SNOR_CS_MUX_CFG_0_CS7_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
770 #define SNOR_CS_MUX_CFG_0_CS7_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
771 #define SNOR_CS_MUX_CFG_0_CS7_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
772
773 // This represents the which chip selects goes to which memory.
774 // Chip selection between SNOR and MIO Memories.
775 #define SNOR_CS_MUX_CFG_0_CS6_MUX_SHIFT _MK_SHIFT_CONST(24)
776 #define SNOR_CS_MUX_CFG_0_CS6_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS6_MUX_SHIFT)
777 #define SNOR_CS_MUX_CFG_0_CS6_MUX_RANGE 26:24
778 #define SNOR_CS_MUX_CFG_0_CS6_MUX_WOFFSET 0x0
779 #define SNOR_CS_MUX_CFG_0_CS6_MUX_DEFAULT _MK_MASK_CONST(0 x6)
780 #define SNOR_CS_MUX_CFG_0_CS6_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
781 #define SNOR_CS_MUX_CFG_0_CS6_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
782 #define SNOR_CS_MUX_CFG_0_CS6_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
783
784 // This represents the which chip selects goes to which memory.
785 // Chip selection between SNOR and MIO Memories.
786 #define SNOR_CS_MUX_CFG_0_CS5_MUX_SHIFT _MK_SHIFT_CONST(20)
787 #define SNOR_CS_MUX_CFG_0_CS5_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS5_MUX_SHIFT)
788 #define SNOR_CS_MUX_CFG_0_CS5_MUX_RANGE 22:20
789 #define SNOR_CS_MUX_CFG_0_CS5_MUX_WOFFSET 0x0
790 #define SNOR_CS_MUX_CFG_0_CS5_MUX_DEFAULT _MK_MASK_CONST(0 x5)
791 #define SNOR_CS_MUX_CFG_0_CS5_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
792 #define SNOR_CS_MUX_CFG_0_CS5_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
793 #define SNOR_CS_MUX_CFG_0_CS5_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
794
795 // This represents the which chip selects goes to which memory.
796 // Chip selection between SNOR and MIO Memories.
797 #define SNOR_CS_MUX_CFG_0_CS4_MUX_SHIFT _MK_SHIFT_CONST(16)
798 #define SNOR_CS_MUX_CFG_0_CS4_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS4_MUX_SHIFT)
799 #define SNOR_CS_MUX_CFG_0_CS4_MUX_RANGE 18:16
800 #define SNOR_CS_MUX_CFG_0_CS4_MUX_WOFFSET 0x0
801 #define SNOR_CS_MUX_CFG_0_CS4_MUX_DEFAULT _MK_MASK_CONST(0 x4)
802 #define SNOR_CS_MUX_CFG_0_CS4_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
803 #define SNOR_CS_MUX_CFG_0_CS4_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
804 #define SNOR_CS_MUX_CFG_0_CS4_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
805
806 // This represents the which chip selects goes to which memory.
807 // Chip selection between SNOR and MIO Memories.
808 #define SNOR_CS_MUX_CFG_0_CS3_MUX_SHIFT _MK_SHIFT_CONST(12)
809 #define SNOR_CS_MUX_CFG_0_CS3_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS3_MUX_SHIFT)
810 #define SNOR_CS_MUX_CFG_0_CS3_MUX_RANGE 14:12
811 #define SNOR_CS_MUX_CFG_0_CS3_MUX_WOFFSET 0x0
812 #define SNOR_CS_MUX_CFG_0_CS3_MUX_DEFAULT _MK_MASK_CONST(0 x3)
813 #define SNOR_CS_MUX_CFG_0_CS3_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
814 #define SNOR_CS_MUX_CFG_0_CS3_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
815 #define SNOR_CS_MUX_CFG_0_CS3_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
816
817 // This represents the which chip selects goes to which memory.
818 // Chip selection between SNOR and MIO Memories.
819 #define SNOR_CS_MUX_CFG_0_CS2_MUX_SHIFT _MK_SHIFT_CONST(8)
820 #define SNOR_CS_MUX_CFG_0_CS2_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS2_MUX_SHIFT)
821 #define SNOR_CS_MUX_CFG_0_CS2_MUX_RANGE 10:8
822 #define SNOR_CS_MUX_CFG_0_CS2_MUX_WOFFSET 0x0
823 #define SNOR_CS_MUX_CFG_0_CS2_MUX_DEFAULT _MK_MASK_CONST(0 x2)
824 #define SNOR_CS_MUX_CFG_0_CS2_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
825 #define SNOR_CS_MUX_CFG_0_CS2_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
826 #define SNOR_CS_MUX_CFG_0_CS2_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
827
828 // This represents the which chip selects goes to which memory.
829 // Chip selection between SNOR and MIO Memories.
830 #define SNOR_CS_MUX_CFG_0_CS1_MUX_SHIFT _MK_SHIFT_CONST(4)
831 #define SNOR_CS_MUX_CFG_0_CS1_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS1_MUX_SHIFT)
832 #define SNOR_CS_MUX_CFG_0_CS1_MUX_RANGE 6:4
833 #define SNOR_CS_MUX_CFG_0_CS1_MUX_WOFFSET 0x0
834 #define SNOR_CS_MUX_CFG_0_CS1_MUX_DEFAULT _MK_MASK_CONST(0 x1)
835 #define SNOR_CS_MUX_CFG_0_CS1_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
836 #define SNOR_CS_MUX_CFG_0_CS1_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
837 #define SNOR_CS_MUX_CFG_0_CS1_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
838
839 // This represents the which chip selects goes to which memory.
840 // Chip selection between SNOR and MIO Memories.
841 #define SNOR_CS_MUX_CFG_0_CS0_MUX_SHIFT _MK_SHIFT_CONST(0)
842 #define SNOR_CS_MUX_CFG_0_CS0_MUX_FIELD (_MK_MASK_CONST(0x7) << SNOR_CS_MUX_CFG_0_CS0_MUX_SHIFT)
843 #define SNOR_CS_MUX_CFG_0_CS0_MUX_RANGE 2:0
844 #define SNOR_CS_MUX_CFG_0_CS0_MUX_WOFFSET 0x0
845 #define SNOR_CS_MUX_CFG_0_CS0_MUX_DEFAULT _MK_MASK_CONST(0 x0)
846 #define SNOR_CS_MUX_CFG_0_CS0_MUX_DEFAULT_MASK _MK_MASK_CONST(0 x7)
847 #define SNOR_CS_MUX_CFG_0_CS0_MUX_SW_DEFAULT _MK_MASK_CONST(0 x0)
848 #define SNOR_CS_MUX_CFG_0_CS0_MUX_SW_DEFAULT_MASK _MK_MASK _CONST(0x0)
849
850
851 //
852 // REGISTER LIST
853 //
854 #define LIST_ARSNOR_REGS(_op_) \
855 _op_(SNOR_CONFIG_0) \
856 _op_(SNOR_STA_0) \
857 _op_(SNOR_NOR_ADDR_PTR_0) \
858 _op_(SNOR_AHB_ADDR_PTR_0) \
859 _op_(SNOR_TIMING0_0) \
860 _op_(SNOR_TIMING1_0) \
861 _op_(SNOR_MIO_CFG_0) \
862 _op_(SNOR_MIO_TIMING0_0) \
863 _op_(SNOR_DMA_CFG_0) \
864 _op_(SNOR_CS_MUX_CFG_0)
865
866
867 //
868 // ADDRESS SPACES
869 //
870
871 #define BASE_ADDRESS_SNOR 0x00000000
872
873 //
874 // ARSNOR REGISTER BANKS
875 //
876
877 #define SNOR0_FIRST_REG 0x0000 // SNOR_CONFIG_0
878 #define SNOR0_LAST_REG 0x0024 // SNOR_CS_MUX_CFG_0
879
880 #ifndef _MK_SHIFT_CONST
881 #define _MK_SHIFT_CONST(_constant_) _constant_
882 #endif
883 #ifndef _MK_MASK_CONST
884 #define _MK_MASK_CONST(_constant_) _constant_
885 #endif
886 #ifndef _MK_ENUM_CONST
887 #define _MK_ENUM_CONST(_constant_) (_constant_ ## UL)
888 #endif
889 #ifndef _MK_ADDR_CONST
890 #define _MK_ADDR_CONST(_constant_) _constant_
891 #endif
892
893 #endif // ifndef ___ARSNOR_H_INC_
OLDNEW
« no previous file with comments | « arch/arm/mach-tegra/nv/include/ap20/arslink.h ('k') | arch/arm/mach-tegra/nv/include/ap20/dev_ap_pcie2_pads.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698