CC35xxDriverLibrary
hw_ospi.h
Go to the documentation of this file.
1 /******************************************************************************
2 * Filename: hw_ospi.h
3 *
4 * Description: Defines and prototypes for the OSPI peripheral.
5 *
6 * Copyright (c) 2023-2025, Texas Instruments Incorporated
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions are met:
11 *
12 * 1) Redistributions of source code must retain the above copyright notice,
13 * this list of conditions and the following disclaimer.
14 *
15 * 2) Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 *
19 * 3) Neither the name of the ORGANIZATION nor the names of its contributors may
20 * be used to endorse or promote products derived from this software without
21 * specific prior written permission.
22 *
23  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33 * POSSIBILITY OF SUCH DAMAGE.
34 *
35 ******************************************************************************/
36 #ifndef __HW_OSPI_H__
37 #define __HW_OSPI_H__
38 /*-------------------------------------------------------------------------------
39 
40 This section defines the register offsets of the OSPI component
41 
42 --------------------------------------------------------------------------------- */
43 
44 //Octal-SPI Configuration Register
45 #define OSPI_O_CONFIG 0x00000000U
46 
47 //Device Read Instruction Configuration Register
48 #define OSPI_O_DEV_INSTR_RD_CONFIG 0x00000004U
49 
50 //Device Write Instruction Configuration Register
51 #define OSPI_O_DEV_INSTR_WR_CONFIG 0x00000008U
52 
53 //Octal-SPI Device Delay Register: This register is used to introduce relative delays into the generation of the master output signals
54 #define OSPI_O_DEV_DELAY 0x0000000CU
55 
56 //Read Data Capture Register
57 #define OSPI_O_RD_DATA_CAPTURE 0x00000010U
58 
59 //Device Size Configuration Register
60 #define OSPI_O_DEV_SIZE_CONFIG 0x00000014U
61 
62 //SRAM Partition Configuration Register
63 #define OSPI_O_SRAM_PARTITION_CFG 0x00000018U
64 
65 //Indirect AHB Address Trigger Register
66 #define OSPI_O_IND_AHB_ADDR_TRIGGER 0x0000001CU
67 
68 //DMA Peripheral Configuration Register
69 #define OSPI_O_DMA_PERIPH_CONFIG 0x00000020U
70 
71 //Remap Address Register
72 #define OSPI_O_REMAP_ADDR 0x00000024U
73 
74 //Mode Bit Configuration Register
75 #define OSPI_O_MODE_BIT_CONFIG 0x00000028U
76 
77 //SRAM Fill Register
78 #define OSPI_O_SRAM_FILL 0x0000002CU
79 
80 //TX Threshold Register
81 #define OSPI_O_TX_THRESH 0x00000030U
82 
83 //RX Threshold Register
84 #define OSPI_O_RX_THRESH 0x00000034U
85 
86 //Write Completion Control Register: This register defines how the controller will poll the device following a write transfer
87 #define OSPI_O_WRITE_COMPLETION_CTRL 0x00000038U
88 
89 //Polling Expiration Register
90 #define OSPI_O_NO_OF_POLLS_BEF_EXP 0x0000003CU
91 
92 //Interrupt Status Register: The status fields in this register are set when the described event occurs and the interrupt is enabled in the mask register
93 #define OSPI_O_IRQ_STATUS 0x00000040U
94 
95 //Interrupt Mask: 0 : the interrupt for the corresponding interrupt status register bit is disabled
96 #define OSPI_O_IRQ_MASK 0x00000044U
97 
98 //Lower Write Protection Register
99 #define OSPI_O_LOWER_WR_PROT 0x00000050U
100 
101 //Upper Write Protection Register
102 #define OSPI_O_UPPER_WR_PROT 0x00000054U
103 
104 //Write Protection Control Register
105 #define OSPI_O_WR_PROT_CTRL 0x00000058U
106 
107 //Indirect Read Transfer Control Register
108 #define OSPI_O_INDIRECT_READ_XFER_CTRL 0x00000060U
109 
110 //Indirect Read Transfer Watermark Register
111 #define OSPI_O_INDIRECT_READ_XFER_WATERMARK 0x00000064U
112 
113 //Indirect Read Transfer Start Address Register
114 #define OSPI_O_INDIRECT_READ_XFER_START 0x00000068U
115 
116 //Indirect Read Transfer Number Bytes Register
117 #define OSPI_O_INDIRECT_READ_XFER_NUM_BYTES 0x0000006CU
118 
119 //Indirect Write Transfer Control Register
120 #define OSPI_O_INDIRECT_WRITE_XFER_CTRL 0x00000070U
121 
122 //Indirect Write Transfer Watermark Register
123 #define OSPI_O_INDIRECT_WRITE_XFER_WATERMARK 0x00000074U
124 
125 //Indirect Write Transfer Start Address Register
126 #define OSPI_O_INDIRECT_WRITE_XFER_START 0x00000078U
127 
128 //Indirect Write Transfer Number Bytes Register
129 #define OSPI_O_INDIRECT_WRITE_XFER_NUM_BYTES 0x0000007CU
130 
131 //Indirect Trigger Address Range Register
132 #define OSPI_O_INDIRECT_TRIGGER_ADDR_RANGE 0x00000080U
133 
134 //Flash Command Control Memory Register
135 #define OSPI_O_FLASH_COMMAND_CTRL_MEM 0x0000008CU
136 
137 //Flash Command Control Register
138 #define OSPI_O_FLASH_CMD_CTRL 0x00000090U
139 
140 //Flash Command Address Register
141 #define OSPI_O_FLASH_CMD_ADDR 0x00000094U
142 
143 //Flash Command Read Data Register (Lower)
144 #define OSPI_O_FLASH_RD_DATA_LOWER 0x000000A0U
145 
146 //Flash Command Read Data Register (Upper)
147 #define OSPI_O_FLASH_RD_DATA_UPPER 0x000000A4U
148 
149 //Flash Command Write Data Register (Lower)
150 #define OSPI_O_FLASH_WR_DATA_LOWER 0x000000A8U
151 
152 //Flash Command Write Data Register (Upper)
153 #define OSPI_O_FLASH_WR_DATA_UPPER 0x000000ACU
154 
155 //Polling Flash Status Register
156 #define OSPI_O_POLLING_FLASH_STATUS 0x000000B0U
157 
158 //PHY Configuration Register
159 #define OSPI_O_PHY_CONFIGURATION 0x000000B4U
160 
161 //PHY DLL Master Control Register
162 #define OSPI_O_PHY_MASTER_CONTROL 0x000000B8U
163 
164 //DLL Observable Register Lower
165 #define OSPI_O_DLL_OBSERVABLE_LOWER 0x000000BCU
166 
167 //DLL Observable Register Upper
168 #define OSPI_O_DLL_OBSERVABLE_UPPER 0x000000C0U
169 
170 //Opcode Extension Register (Lower)
171 #define OSPI_O_OPCODE_EXT_LOWER 0x000000E0U
172 
173 //Opcode Extension Register (Upper)
174 #define OSPI_O_OPCODE_EXT_UPPER 0x000000E4U
175 
176 //Module ID Register
177 #define OSPI_O_MODULE_ID 0x000000FCU
178 
179 
180 
181 /*-----------------------------------REGISTER------------------------------------
182  Register name: CONFIG
183  Offset name: OSPI_O_CONFIG
184  Relative address: 0x0
185  Description: Octal-SPI Configuration Register
186  Default Value: 0x82080081
187 
188  Field: ENB_SPI
189  From..to bits: 0...0
190  DefaultValue: 0x1
191  Access type: read-write
192  Description: Octal-SPI Enable:
193 
194  ENUMs:
195  DISABLE: disable the Octal-SPI, once current transfer of the data word (FF_W) is complete. 1 : enable the Octal-SPI, when spi_enable = 0, all output enables are inactive and all pins are set to input mode.
196  ENABLE: enable the Octal-SPI, when spi_enable = 0, all output enables are inactive and all pins are set to input mode.
197 */
198 #define OSPI_CONFIG_ENB_SPI 0x00000001U
199 #define OSPI_CONFIG_ENB_SPI_M 0x00000001U
200 #define OSPI_CONFIG_ENB_SPI_S 0U
201 #define OSPI_CONFIG_ENB_SPI_DISABLE 0x00000000U
202 #define OSPI_CONFIG_ENB_SPI_ENABLE 0x00000001U
203 /*
204 
205  Field: SEL_CLK_POL
206  From..to bits: 1...1
207  DefaultValue: 0x0
208  Access type: read-write
209  Description: Clock polarity outside SPI word:
210 
211  ENUMs:
212  DISABLE: the SPI clock is quiescent low 1 : the SPI clock is quiescent high
213  ENABLE: the SPI clock is quiescent high
214 */
215 #define OSPI_CONFIG_SEL_CLK_POL 0x00000002U
216 #define OSPI_CONFIG_SEL_CLK_POL_M 0x00000002U
217 #define OSPI_CONFIG_SEL_CLK_POL_S 1U
218 #define OSPI_CONFIG_SEL_CLK_POL_DISABLE 0x00000000U
219 #define OSPI_CONFIG_SEL_CLK_POL_ENABLE 0x00000002U
220 /*
221 
222  Field: SEL_CLK_PHASE
223  From..to bits: 2...2
224  DefaultValue: 0x0
225  Access type: read-write
226  Description: Select Clock Phase: Selects whether the clock is in an active or inactive phase outside the SPI word.
227 
228  ENUMs:
229  DISABLE: the SPI clock is active outside the word 1 : the SPI clock is inactive outside the word
230  ENABLE: the SPI clock is inactive outside the word
231 */
232 #define OSPI_CONFIG_SEL_CLK_PHASE 0x00000004U
233 #define OSPI_CONFIG_SEL_CLK_PHASE_M 0x00000004U
234 #define OSPI_CONFIG_SEL_CLK_PHASE_S 2U
235 #define OSPI_CONFIG_SEL_CLK_PHASE_DISABLE 0x00000000U
236 #define OSPI_CONFIG_SEL_CLK_PHASE_ENABLE 0x00000004U
237 /*
238 
239  Field: PHY_MODE_ENABLE
240  From..to bits: 3...3
241  DefaultValue: 0x0
242  Access type: read-write
243  Description: PHY mode enable: When enabled, the controller is informed that PHY Module is to be used for handling SPI transfers. This bit is relevant only for configuration with PHY Module.
244 
245  ENUMs:
246  DISABLE: Disable
247  ENABLE: Enable
248 */
249 #define OSPI_CONFIG_PHY_MODE_ENABLE 0x00000008U
250 #define OSPI_CONFIG_PHY_MODE_ENABLE_M 0x00000008U
251 #define OSPI_CONFIG_PHY_MODE_ENABLE_S 3U
252 #define OSPI_CONFIG_PHY_MODE_ENABLE_DISABLE 0x00000000U
253 #define OSPI_CONFIG_PHY_MODE_ENABLE_ENABLE 0x00000008U
254 /*
255 
256  Field: HOLD_PIN
257  From..to bits: 4...4
258  DefaultValue: 0x0
259  Access type: read-write
260  Description: Set to drive the HOLD pin of the FLASH device and reset for de-activation of the HOLD pin feature
261 
262  ENUMs:
263  DISABLE: Disable
264  ENABLE: Enable
265 */
266 #define OSPI_CONFIG_HOLD_PIN 0x00000010U
267 #define OSPI_CONFIG_HOLD_PIN_M 0x00000010U
268 #define OSPI_CONFIG_HOLD_PIN_S 4U
269 #define OSPI_CONFIG_HOLD_PIN_DISABLE 0x00000000U
270 #define OSPI_CONFIG_HOLD_PIN_ENABLE 0x00000010U
271 /*
272 
273  Field: RESET_PIN
274  From..to bits: 5...5
275  DefaultValue: 0x0
276  Access type: read-write
277  Description: Set to drive the RESET pin of the FLASH device and reset for de-activation of the RESET pin feature
278 
279  ENUMs:
280  DISABLE: Disable
281  ENABLE: Enable
282 */
283 #define OSPI_CONFIG_RESET_PIN 0x00000020U
284 #define OSPI_CONFIG_RESET_PIN_M 0x00000020U
285 #define OSPI_CONFIG_RESET_PIN_S 5U
286 #define OSPI_CONFIG_RESET_PIN_DISABLE 0x00000000U
287 #define OSPI_CONFIG_RESET_PIN_ENABLE 0x00000020U
288 /*
289 
290  Field: RESET_CFG
291  From..to bits: 6...6
292  DefaultValue: 0x0
293  Access type: read-write
294  Description: RESET pin configuration: 0 = RESET feature on DQ3 pin of the device 1 = RESET feature on dedicated pin of the device (controlling of 5th bit influences on reset_out output)
295 
296  ENUMs:
297  DISABLE: Disable
298  ENABLE: Enable
299 */
300 #define OSPI_CONFIG_RESET_CFG 0x00000040U
301 #define OSPI_CONFIG_RESET_CFG_M 0x00000040U
302 #define OSPI_CONFIG_RESET_CFG_S 6U
303 #define OSPI_CONFIG_RESET_CFG_DISABLE 0x00000000U
304 #define OSPI_CONFIG_RESET_CFG_ENABLE 0x00000040U
305 /*
306 
307  Field: ENB_DIR_ACC_CTLR
308  From..to bits: 7...7
309  DefaultValue: 0x1
310  Access type: read-write
311  Description: Enable Direct Access Controller:
312 
313  ENUMs:
314  DISABLE: disable the Direct Access Controller once current transfer of the data word (FF_W) is complete. 1 : enable the Direct Access Controller When the Direct Access Controller and Indirect Access Controller are both disabled, all AHB requested are completed with an error response.
315  ENABLE: enable the Direct Access Controller When the Direct Access Controller and Indirect Access Controller are both disabled, all AHB requested are completed with an error response.
316 */
317 #define OSPI_CONFIG_ENB_DIR_ACC_CTLR 0x00000080U
318 #define OSPI_CONFIG_ENB_DIR_ACC_CTLR_M 0x00000080U
319 #define OSPI_CONFIG_ENB_DIR_ACC_CTLR_S 7U
320 #define OSPI_CONFIG_ENB_DIR_ACC_CTLR_DISABLE 0x00000000U
321 #define OSPI_CONFIG_ENB_DIR_ACC_CTLR_ENABLE 0x00000080U
322 /*
323 
324  Field: ENB_LEGACY_IP_MODE
325  From..to bits: 8...8
326  DefaultValue: 0x0
327  Access type: read-write
328  Description: Legacy IP Mode Enable:
329 
330  ENUMs:
331  DISABLE: Use Direct Access Controller/Indirect Access Controller 1 : legacy Mode is enabled. In this mode, any write to the controller via the AHB interface is serialized and sent to the FLASH device. Any valid AHB read will pop the internal RX-FIFO, retrieving data that was forwarded by the external FLASH device on the SPI lines,4,2 or 1 byte transfers are permitted and controlled via the HSIZE input.
332  ENABLE: legacy Mode is enabled. In this mode, any write to the controller via the AHB interface is serialized and sent to the FLASH device. Any valid AHB read will pop the internal RX-FIFO, retrieving data that was forwarded by the external FLASH device on the SPI lines,4,2 or 1 byte transfers are permitted and controlled via the HSIZE input.
333 */
334 #define OSPI_CONFIG_ENB_LEGACY_IP_MODE 0x00000100U
335 #define OSPI_CONFIG_ENB_LEGACY_IP_MODE_M 0x00000100U
336 #define OSPI_CONFIG_ENB_LEGACY_IP_MODE_S 8U
337 #define OSPI_CONFIG_ENB_LEGACY_IP_MODE_DISABLE 0x00000000U
338 #define OSPI_CONFIG_ENB_LEGACY_IP_MODE_ENABLE 0x00000100U
339 /*
340 
341  Field: PERIPH_SEL_DEC
342  From..to bits: 9...9
343  DefaultValue: 0x0
344  Access type: read-write
345  Description: Peripheral select decode:
346 
347  ENUMs:
348  DISABLE: only 1 of 4 selects n_ss_out[3:0] is active 1 : allow external 4-to-16 decode (n_ss_out = ss)
349  ENABLE: allow external 4-to-16 decode (n_ss_out = ss)
350 */
351 #define OSPI_CONFIG_PERIPH_SEL_DEC 0x00000200U
352 #define OSPI_CONFIG_PERIPH_SEL_DEC_M 0x00000200U
353 #define OSPI_CONFIG_PERIPH_SEL_DEC_S 9U
354 #define OSPI_CONFIG_PERIPH_SEL_DEC_DISABLE 0x00000000U
355 #define OSPI_CONFIG_PERIPH_SEL_DEC_ENABLE 0x00000200U
356 /*
357 
358  Field: PERIPH_CS_LINES
359  From..to bits: 10...13
360  DefaultValue: 0x0
361  Access type: read-write
362  Description: Peripheral Chip Select Lines: Peripheral chip select lines If pdec = 0, ss[3:0] are output thus: ss[3:0] n_ss_out[3:0] xxx0 1110 xx01 1101 x011 1011 0111 0111 1111 1111 (no peripheral selected) else ss[3:0] directly drives n_ss_out[3:0]
363 
364  ENUMs:
365  MINIMUM: Smallest value
366  MAXIMUM: Highest possible value
367 */
368 #define OSPI_CONFIG_PERIPH_CS_LINES_W 4U
369 #define OSPI_CONFIG_PERIPH_CS_LINES_M 0x00003C00U
370 #define OSPI_CONFIG_PERIPH_CS_LINES_S 10U
371 #define OSPI_CONFIG_PERIPH_CS_LINES_MINIMUM 0x00000000U
372 #define OSPI_CONFIG_PERIPH_CS_LINES_MAXIMUM 0x00003C00U
373 /*
374 
375  Field: WR_PROT_FLASH
376  From..to bits: 14...14
377  DefaultValue: 0x0
378  Access type: read-write
379  Description: Write Protect Flash Pin: Set to drive the Write Protect pin of the FLASH device. This is resynchronized to the generated memory clock as necessary.
380 
381  ENUMs:
382  DISABLE: Disable
383  ENABLE: Enable
384 */
385 #define OSPI_CONFIG_WR_PROT_FLASH 0x00004000U
386 #define OSPI_CONFIG_WR_PROT_FLASH_M 0x00004000U
387 #define OSPI_CONFIG_WR_PROT_FLASH_S 14U
388 #define OSPI_CONFIG_WR_PROT_FLASH_DISABLE 0x00000000U
389 #define OSPI_CONFIG_WR_PROT_FLASH_ENABLE 0x00004000U
390 /*
391 
392  Field: ENB_DMA_IF
393  From..to bits: 15...15
394  DefaultValue: 0x0
395  Access type: read-write
396  Description: Enable DMA Peripheral Interface: Set to 1 to enable the DMA handshaking logic. When enabled the controller will trigger DMA transfer requests via the DMA peripheral interface. Set to 0 to disable
397 
398  ENUMs:
399  DISABLE: Disable
400  ENABLE: Enable
401 */
402 #define OSPI_CONFIG_ENB_DMA_IF 0x00008000U
403 #define OSPI_CONFIG_ENB_DMA_IF_M 0x00008000U
404 #define OSPI_CONFIG_ENB_DMA_IF_S 15U
405 #define OSPI_CONFIG_ENB_DMA_IF_DISABLE 0x00000000U
406 #define OSPI_CONFIG_ENB_DMA_IF_ENABLE 0x00008000U
407 /*
408 
409  Field: ENB_AHB_ADDR_REMAP
410  From..to bits: 16...16
411  DefaultValue: 0x0
412  Access type: read-write
413  Description: Enable AHB Address Re-mapping: (Direct Access Mode Only) When set to 1, the incoming AHB address will be adapted and sent to the FLASH device as (address + N), where N is the value stored in the remap address register.
414 
415  ENUMs:
416  DISABLE: Disable
417  ENABLE: Enable
418 */
419 #define OSPI_CONFIG_ENB_AHB_ADDR_REMAP 0x00010000U
420 #define OSPI_CONFIG_ENB_AHB_ADDR_REMAP_M 0x00010000U
421 #define OSPI_CONFIG_ENB_AHB_ADDR_REMAP_S 16U
422 #define OSPI_CONFIG_ENB_AHB_ADDR_REMAP_DISABLE 0x00000000U
423 #define OSPI_CONFIG_ENB_AHB_ADDR_REMAP_ENABLE 0x00010000U
424 /*
425 
426  Field: ENTER_XIP_MODE
427  From..to bits: 17...17
428  DefaultValue: 0x0
429  Access type: read-write
430  Description: Enter XIP Mode on next READ: Value=0 : If XIP is enabled, then setting to 0 will cause the controller to exit XIP mode on the next READ instruction. Value=1 : If XIP is disabled, then setting to ?1? will inform the controller that the device is ready to enter XIP on the next READ instruction. The controller will therefore send the appropriate command sequence, including mode bits to cause the device to enter XIP mode. Use this register after the controller has ensured the FLASH device has been configured to be ready to enter XIP mode. Note : To exit XIP mode, this bit should be set to 0. This will take effect in the attached device only AFTER the next READ instruction is executed. Software should therefore ensure that at least one READ instruction is requested after resetting this bit before it can be sure XIP mode in the device is exited.
431 
432  ENUMs:
433  DISABLE: Disable
434  ENABLE: Enable
435 */
436 #define OSPI_CONFIG_ENTER_XIP_MODE 0x00020000U
437 #define OSPI_CONFIG_ENTER_XIP_MODE_M 0x00020000U
438 #define OSPI_CONFIG_ENTER_XIP_MODE_S 17U
439 #define OSPI_CONFIG_ENTER_XIP_MODE_DISABLE 0x00000000U
440 #define OSPI_CONFIG_ENTER_XIP_MODE_ENABLE 0x00020000U
441 /*
442 
443  Field: ENTER_XIP_MODE_IMM
444  From..to bits: 18...18
445  DefaultValue: 0x0
446  Access type: read-write
447  Description: Enter XIP Mode immediately: Value=0 : If XIP is enabled, then setting to 0 will cause the controller to exit XIP mode on the next READ instruction. Value=1 : Operate the device in XIP mode immediately Use this register when the external device wakes up in XIP mode (as per the contents of its non- volatile configuration register). The controller will assume the next READ instruction will be passed to the device as an XIP instruction, and therefore will not require the READ opcode to be transferred. Note: To exit XIP mode, this bit should be set to 0. This will take effect in the attached device only after the next READ instruction is executed. Software therefore should ensure that at least one READ instruction is requested after resetting this bit in order to be sure that XIP mode is exited.
448 
449  ENUMs:
450  DISABLE: Disable
451  ENABLE: Enable
452 */
453 #define OSPI_CONFIG_ENTER_XIP_MODE_IMM 0x00040000U
454 #define OSPI_CONFIG_ENTER_XIP_MODE_IMM_M 0x00040000U
455 #define OSPI_CONFIG_ENTER_XIP_MODE_IMM_S 18U
456 #define OSPI_CONFIG_ENTER_XIP_MODE_IMM_DISABLE 0x00000000U
457 #define OSPI_CONFIG_ENTER_XIP_MODE_IMM_ENABLE 0x00040000U
458 /*
459 
460  Field: MSTR_BAUD_DIV
461  From..to bits: 19...22
462  DefaultValue: 0x1
463  Access type: read-write
464  Description: Master Mode Baud Rate Divisor: SPI baud rate = (master reference clock) baud_rate_divisor. The baud rate is the clock rate divided by 2 multiplied by (Divisor + 1). Meaning, when Divisor Value is set to 0,1,2,..15 it sets the baud rate is the clock rate divided by 2, 4, 6,..32 respectively
465 
466  ENUMs:
467  MINIMUM: Smallest value
468  MAXIMUM: Highest possible value
469 */
470 #define OSPI_CONFIG_MSTR_BAUD_DIV_W 4U
471 #define OSPI_CONFIG_MSTR_BAUD_DIV_M 0x00780000U
472 #define OSPI_CONFIG_MSTR_BAUD_DIV_S 19U
473 #define OSPI_CONFIG_MSTR_BAUD_DIV_MINIMUM 0x00000000U
474 #define OSPI_CONFIG_MSTR_BAUD_DIV_MAXIMUM 0x00780000U
475 /*
476 
477  Field: ENABLE_AHB_DECODER
478  From..to bits: 23...23
479  DefaultValue: 0x0
480  Access type: read-write
481  Description: Enable AHB Decoder: Value=0 : Active slave is selected based on Peripheral Chip Select Lines (bits [13:10]). Value=1 Active slave is selected based on actual AHB address (the partition for each device is calculated with respect to bits [28:21] of Device Size Configuration Register)
482 
483  ENUMs:
484  DISABLE: Disable
485  ENABLE: Enable
486 */
487 #define OSPI_CONFIG_ENABLE_AHB_DECODER 0x00800000U
488 #define OSPI_CONFIG_ENABLE_AHB_DECODER_M 0x00800000U
489 #define OSPI_CONFIG_ENABLE_AHB_DECODER_S 23U
490 #define OSPI_CONFIG_ENABLE_AHB_DECODER_DISABLE 0x00000000U
491 #define OSPI_CONFIG_ENABLE_AHB_DECODER_ENABLE 0x00800000U
492 /*
493 
494  Field: ENABLE_DTR_PROTOCOL
495  From..to bits: 24...24
496  DefaultValue: 0x0
497  Access type: read-write
498  Description: Enable DTR Protocol: This bit should be set if device is configured to work in DTR protocol.
499 
500  ENUMs:
501  DISABLE: Disable
502  ENABLE: Enable
503 */
504 #define OSPI_CONFIG_ENABLE_DTR_PROTOCOL 0x01000000U
505 #define OSPI_CONFIG_ENABLE_DTR_PROTOCOL_M 0x01000000U
506 #define OSPI_CONFIG_ENABLE_DTR_PROTOCOL_S 24U
507 #define OSPI_CONFIG_ENABLE_DTR_PROTOCOL_DISABLE 0x00000000U
508 #define OSPI_CONFIG_ENABLE_DTR_PROTOCOL_ENABLE 0x01000000U
509 /*
510 
511  Field: PIPELINE_PHY
512  From..to bits: 25...25
513  DefaultValue: 0x1
514  Access type: read-write
515  Description: Pipeline PHY Mode enable: This bit is relevant only for configuration with PHY Module. It should be asserted to '1' between consecutive PHY pipeline reads transfers and de-asserted to '0' otherwise.
516 
517  ENUMs:
518  DISABLE: Disable
519  ENABLE: Enable
520 */
521 #define OSPI_CONFIG_PIPELINE_PHY 0x02000000U
522 #define OSPI_CONFIG_PIPELINE_PHY_M 0x02000000U
523 #define OSPI_CONFIG_PIPELINE_PHY_S 25U
524 #define OSPI_CONFIG_PIPELINE_PHY_DISABLE 0x00000000U
525 #define OSPI_CONFIG_PIPELINE_PHY_ENABLE 0x02000000U
526 /*
527 
528  Field: CRC_ENABLE
529  From..to bits: 29...29
530  DefaultValue: 0x0
531  Access type: read-write
532  Description: CRC enable bit This bit is to be set in case the target Flash Device supports CRC (Macronix MX25). It is applicable for Octal DDR Protocol only so should be set back to low if the device is configured to work in another SPI Mode.
533 
534  ENUMs:
535  DISABLE: Disable
536  ENABLE: Enable
537 */
538 #define OSPI_CONFIG_CRC_ENABLE 0x20000000U
539 #define OSPI_CONFIG_CRC_ENABLE_M 0x20000000U
540 #define OSPI_CONFIG_CRC_ENABLE_S 29U
541 #define OSPI_CONFIG_CRC_ENABLE_DISABLE 0x00000000U
542 #define OSPI_CONFIG_CRC_ENABLE_ENABLE 0x20000000U
543 /*
544 
545  Field: DUAL_BYTE_OPCODE_EN
546  From..to bits: 30...30
547  DefaultValue: 0x0
548  Access type: read-write
549  Description: Dual-byte Opcode Mode enable bit This bit is to be set in case the target Flash Device supports dual byte opcode (i.e. Macronix MX25). It is applicable for Octal I/O Mode or Protocol only so should be set back to low if the device is configured to work in another SPI Mode. If enabled, the supplementing bytes are taken from Opcode Extension Register (Lower) and from Opcode Extension Register (Upper).
550 
551  ENUMs:
552  DISABLE: Disable
553  ENABLE: Enable
554 */
555 #define OSPI_CONFIG_DUAL_BYTE_OPCODE_EN 0x40000000U
556 #define OSPI_CONFIG_DUAL_BYTE_OPCODE_EN_M 0x40000000U
557 #define OSPI_CONFIG_DUAL_BYTE_OPCODE_EN_S 30U
558 #define OSPI_CONFIG_DUAL_BYTE_OPCODE_EN_DISABLE 0x00000000U
559 #define OSPI_CONFIG_DUAL_BYTE_OPCODE_EN_ENABLE 0x40000000U
560 /*
561 
562  Field: IDLE
563  From..to bits: 31...31
564  DefaultValue: 0x1
565  Access type: read-only
566  Description: Serial interface and low level SPI pipeline is IDLE: This is a STATUS read-only bit. Note this is a retimed signal, so there will be some inherent delay on the generation of this status signal.
567 
568  ENUMs:
569  DISABLE: Disable
570  ENABLE: Enable
571 */
572 #define OSPI_CONFIG_IDLE 0x80000000U
573 #define OSPI_CONFIG_IDLE_M 0x80000000U
574 #define OSPI_CONFIG_IDLE_S 31U
575 #define OSPI_CONFIG_IDLE_DISABLE 0x00000000U
576 #define OSPI_CONFIG_IDLE_ENABLE 0x80000000U
577 
578 
579 /*-----------------------------------REGISTER------------------------------------
580  Register name: DEV_INSTR_RD_CONFIG
581  Offset name: OSPI_O_DEV_INSTR_RD_CONFIG
582  Relative address: 0x4
583  Description: Device Read Instruction Configuration Register
584  Default Value: 0x00000003
585 
586  Field: RD_OPCODE_NON_XIP
587  From..to bits: 0...7
588  DefaultValue: 0x3
589  Access type: read-write
590  Description: Read Opcode in non-XIP mode: Read Opcode to use when not in XIP mode
591 
592  ENUMs:
593  MINIMUM: Smallest value
594  MAXIMUM: Highest possible value
595 */
596 #define OSPI_DEV_INSTR_RD_CONFIG_RD_OPCODE_NON_XIP_W 8U
597 #define OSPI_DEV_INSTR_RD_CONFIG_RD_OPCODE_NON_XIP_M 0x000000FFU
598 #define OSPI_DEV_INSTR_RD_CONFIG_RD_OPCODE_NON_XIP_S 0U
599 #define OSPI_DEV_INSTR_RD_CONFIG_RD_OPCODE_NON_XIP_MINIMUM 0x00000000U
600 #define OSPI_DEV_INSTR_RD_CONFIG_RD_OPCODE_NON_XIP_MAXIMUM 0x000000FFU
601 /*
602 
603  Field: INSTR_TYPE
604  From..to bits: 8...9
605  DefaultValue: 0x0
606  Access type: read-write
607  Description: Instruction Type:
608  0 : Use Standard SPI mode (instruction always shifted into the device on DQ0 only)
609  1 : Use DIO-SPI mode (Instructions always sent on DQ0 and DQ1)
610  2 : Use QIO-SPI mode (Instructions always sent on DQ0, DQ1, DQ2 and DQ3)
611  3 : Use Octal-IO-SPI mode (Instructions always sent on DQ[7:0])
612 
613  ENUMs:
614  MINIMUM: Smallest value
615  MAXIMUM: Highest possible value
616 */
617 #define OSPI_DEV_INSTR_RD_CONFIG_INSTR_TYPE_W 2U
618 #define OSPI_DEV_INSTR_RD_CONFIG_INSTR_TYPE_M 0x00000300U
619 #define OSPI_DEV_INSTR_RD_CONFIG_INSTR_TYPE_S 8U
620 #define OSPI_DEV_INSTR_RD_CONFIG_INSTR_TYPE_MINIMUM 0x00000000U
621 #define OSPI_DEV_INSTR_RD_CONFIG_INSTR_TYPE_MAXIMUM 0x00000300U
622 /*
623 
624  Field: DDR_EN
625  From..to bits: 10...10
626  DefaultValue: 0x0
627  Access type: read-write
628  Description: DDR Enable: This is to inform that opcode from rd_opcode_non_xip_fld is compliant with one of the DDR READ Commands
629 
630  ENUMs:
631  DISABLE: Disable
632  ENABLE: Enable
633 */
634 #define OSPI_DEV_INSTR_RD_CONFIG_DDR_EN 0x00000400U
635 #define OSPI_DEV_INSTR_RD_CONFIG_DDR_EN_M 0x00000400U
636 #define OSPI_DEV_INSTR_RD_CONFIG_DDR_EN_S 10U
637 #define OSPI_DEV_INSTR_RD_CONFIG_DDR_EN_DISABLE 0x00000000U
638 #define OSPI_DEV_INSTR_RD_CONFIG_DDR_EN_ENABLE 0x00000400U
639 /*
640 
641  Field: PRED_DIS
642  From..to bits: 11...11
643  DefaultValue: 0x0
644  Access type: read-write
645  Description: Predicted Read Disable Bit: Disable generation of predicted read when doing read accesses using Direct Mode
646 
647  ENUMs:
648  DISABLE: Disable
649  ENABLE: Enable
650 */
651 #define OSPI_DEV_INSTR_RD_CONFIG_PRED_DIS 0x00000800U
652 #define OSPI_DEV_INSTR_RD_CONFIG_PRED_DIS_M 0x00000800U
653 #define OSPI_DEV_INSTR_RD_CONFIG_PRED_DIS_S 11U
654 #define OSPI_DEV_INSTR_RD_CONFIG_PRED_DIS_DISABLE 0x00000000U
655 #define OSPI_DEV_INSTR_RD_CONFIG_PRED_DIS_ENABLE 0x00000800U
656 /*
657 
658  Field: ADDR_XFER_TYPE_STD_MODE
659  From..to bits: 12...13
660  DefaultValue: 0x0
661  Access type: read-write
662  Description: Address Transfer Type for Standard SPI modes: 0 : Addresses can be shifted to the device on DQ0 only 1 : Addresses can be shifted to the device on DQ0 and DQ1 only 2 : Addresses can be shifted to the device on DQ0, DQ1, DQ2 and DQ3 3 : Addresses can be shifted to the device on DQ[7:0]
663 
664  ENUMs:
665  MINIMUM: Smallest value
666  MAXIMUM: Highest possible value
667 */
668 #define OSPI_DEV_INSTR_RD_CONFIG_ADDR_XFER_TYPE_STD_MODE_W 2U
669 #define OSPI_DEV_INSTR_RD_CONFIG_ADDR_XFER_TYPE_STD_MODE_M 0x00003000U
670 #define OSPI_DEV_INSTR_RD_CONFIG_ADDR_XFER_TYPE_STD_MODE_S 12U
671 #define OSPI_DEV_INSTR_RD_CONFIG_ADDR_XFER_TYPE_STD_MODE_MINIMUM 0x00000000U
672 #define OSPI_DEV_INSTR_RD_CONFIG_ADDR_XFER_TYPE_STD_MODE_MAXIMUM 0x00003000U
673 /*
674 
675  Field: DATA_XFER_TYPE_EXT_MODE
676  From..to bits: 16...17
677  DefaultValue: 0x0
678  Access type: read-write
679  Description: Data Transfer Type for Standard SPI modes: 0 : SIO mode data is shifted to the device on DQ0 only and from the device on DQ1 only 1 : Used for Dual Input/Output instructions. For data transfers, DQ0 and DQ1 are used as both inputs and outputs. 2 : Used for Quad Input/Output instructions. For data transfers, DQ0,DQ1,DQ2 and DQ3 are used as both inputs and outputs. 3 : Used for Quad Input/Output instructions. For data transfers, DQ[7:0] are used as both inputs and outputs.
680 
681  ENUMs:
682  MINIMUM: Smallest value
683  MAXIMUM: Highest possible value
684 */
685 #define OSPI_DEV_INSTR_RD_CONFIG_DATA_XFER_TYPE_EXT_MODE_W 2U
686 #define OSPI_DEV_INSTR_RD_CONFIG_DATA_XFER_TYPE_EXT_MODE_M 0x00030000U
687 #define OSPI_DEV_INSTR_RD_CONFIG_DATA_XFER_TYPE_EXT_MODE_S 16U
688 #define OSPI_DEV_INSTR_RD_CONFIG_DATA_XFER_TYPE_EXT_MODE_MINIMUM 0x00000000U
689 #define OSPI_DEV_INSTR_RD_CONFIG_DATA_XFER_TYPE_EXT_MODE_MAXIMUM 0x00030000U
690 /*
691 
692  Field: MODE_BIT_ENABLE
693  From..to bits: 20...20
694  DefaultValue: 0x0
695  Access type: read-write
696  Description: Mode Bit Enable: Set this field to 1 to ensure that the mode bits as defined in the Mode Bit Configuration register are sent following the address bytes.
697 
698  ENUMs:
699  DISABLE: Disable
700  ENABLE: Enable
701 */
702 #define OSPI_DEV_INSTR_RD_CONFIG_MODE_BIT_ENABLE 0x00100000U
703 #define OSPI_DEV_INSTR_RD_CONFIG_MODE_BIT_ENABLE_M 0x00100000U
704 #define OSPI_DEV_INSTR_RD_CONFIG_MODE_BIT_ENABLE_S 20U
705 #define OSPI_DEV_INSTR_RD_CONFIG_MODE_BIT_ENABLE_DISABLE 0x00000000U
706 #define OSPI_DEV_INSTR_RD_CONFIG_MODE_BIT_ENABLE_ENABLE 0x00100000U
707 /*
708 
709  Field: DUMMY_RD_CLK_CYCLES
710  From..to bits: 24...28
711  DefaultValue: 0x0
712  Access type: read-write
713  Description: Dummy Read Clock Cycles: Number of dummy clock cycles required by device for read instruction.
714 
715  ENUMs:
716  MINIMUM: Smallest value
717  MAXIMUM: Highest possible value
718 */
719 #define OSPI_DEV_INSTR_RD_CONFIG_DUMMY_RD_CLK_CYCLES_W 5U
720 #define OSPI_DEV_INSTR_RD_CONFIG_DUMMY_RD_CLK_CYCLES_M 0x1F000000U
721 #define OSPI_DEV_INSTR_RD_CONFIG_DUMMY_RD_CLK_CYCLES_S 24U
722 #define OSPI_DEV_INSTR_RD_CONFIG_DUMMY_RD_CLK_CYCLES_MINIMUM 0x00000000U
723 #define OSPI_DEV_INSTR_RD_CONFIG_DUMMY_RD_CLK_CYCLES_MAXIMUM 0x1F000000U
724 
725 
726 /*-----------------------------------REGISTER------------------------------------
727  Register name: DEV_INSTR_WR_CONFIG
728  Offset name: OSPI_O_DEV_INSTR_WR_CONFIG
729  Relative address: 0x8
730  Description: Device Write Instruction Configuration Register
731  Default Value: 0x00000002
732 
733  Field: WR_OPCODE
734  From..to bits: 0...7
735  DefaultValue: 0x2
736  Access type: read-write
737  Description: Write Opcode
738 
739  ENUMs:
740  MINIMUM: Smallest value
741  MAXIMUM: Highest possible value
742 */
743 #define OSPI_DEV_INSTR_WR_CONFIG_WR_OPCODE_W 8U
744 #define OSPI_DEV_INSTR_WR_CONFIG_WR_OPCODE_M 0x000000FFU
745 #define OSPI_DEV_INSTR_WR_CONFIG_WR_OPCODE_S 0U
746 #define OSPI_DEV_INSTR_WR_CONFIG_WR_OPCODE_MINIMUM 0x00000000U
747 #define OSPI_DEV_INSTR_WR_CONFIG_WR_OPCODE_MAXIMUM 0x000000FFU
748 /*
749 
750  Field: WEL_DIS
751  From..to bits: 8...8
752  DefaultValue: 0x0
753  Access type: read-write
754  Description: WEL Disable: This is to turn off automatic issuing of WEL Command before write operation for DAC or INDAC
755 
756  ENUMs:
757  DISABLE: Disable
758  ENABLE: Enable
759 */
760 #define OSPI_DEV_INSTR_WR_CONFIG_WEL_DIS 0x00000100U
761 #define OSPI_DEV_INSTR_WR_CONFIG_WEL_DIS_M 0x00000100U
762 #define OSPI_DEV_INSTR_WR_CONFIG_WEL_DIS_S 8U
763 #define OSPI_DEV_INSTR_WR_CONFIG_WEL_DIS_DISABLE 0x00000000U
764 #define OSPI_DEV_INSTR_WR_CONFIG_WEL_DIS_ENABLE 0x00000100U
765 /*
766 
767  Field: ADDR_XFER_TYPE_STD_MODE
768  From..to bits: 12...13
769  DefaultValue: 0x0
770  Access type: read-write
771  Description: Address Transfer Type for Standard SPI modes: 0 : Addresses can be shifted to the device on DQ0 only 1 : Addresses can be shifted to the device on DQ0 and DQ1 only 2 : Addresses can be shifted to the device on DQ0, DQ1, DQ2 and DQ3 3 : Addresses can be shifted to the device on DQ[7:0]
772 
773  ENUMs:
774  MINIMUM: Smallest value
775  MAXIMUM: Highest possible value
776 */
777 #define OSPI_DEV_INSTR_WR_CONFIG_ADDR_XFER_TYPE_STD_MODE_W 2U
778 #define OSPI_DEV_INSTR_WR_CONFIG_ADDR_XFER_TYPE_STD_MODE_M 0x00003000U
779 #define OSPI_DEV_INSTR_WR_CONFIG_ADDR_XFER_TYPE_STD_MODE_S 12U
780 #define OSPI_DEV_INSTR_WR_CONFIG_ADDR_XFER_TYPE_STD_MODE_MINIMUM 0x00000000U
781 #define OSPI_DEV_INSTR_WR_CONFIG_ADDR_XFER_TYPE_STD_MODE_MAXIMUM 0x00003000U
782 /*
783 
784  Field: DATA_XFER_TYPE_EXT_MODE
785  From..to bits: 16...17
786  DefaultValue: 0x0
787  Access type: read-write
788  Description: Data Transfer Type for Standard SPI modes: 0 : SIO mode data is shifted to the device on DQ0 only and from the device on DQ1 only 1 : Used for Dual Input/Output instructions. For data transfers, DQ0 and DQ1 are used as both inputs and outputs. 2 : Used for Quad Input/Output instructions. For data transfers, DQ0,DQ1,DQ2 and DQ3 are used as both inputs and outputs. 3 : Used for Quad Input/Output instructions. For data transfers, DQ[7:0] are used as both inputs and outputs.
789 
790  ENUMs:
791  MINIMUM: Smallest value
792  MAXIMUM: Highest possible value
793 */
794 #define OSPI_DEV_INSTR_WR_CONFIG_DATA_XFER_TYPE_EXT_MODE_W 2U
795 #define OSPI_DEV_INSTR_WR_CONFIG_DATA_XFER_TYPE_EXT_MODE_M 0x00030000U
796 #define OSPI_DEV_INSTR_WR_CONFIG_DATA_XFER_TYPE_EXT_MODE_S 16U
797 #define OSPI_DEV_INSTR_WR_CONFIG_DATA_XFER_TYPE_EXT_MODE_MINIMUM 0x00000000U
798 #define OSPI_DEV_INSTR_WR_CONFIG_DATA_XFER_TYPE_EXT_MODE_MAXIMUM 0x00030000U
799 /*
800 
801  Field: DUMMY_WR_CLK_CYCLES
802  From..to bits: 24...28
803  DefaultValue: 0x0
804  Access type: read-write
805  Description: Dummy Write Clock Cycles: Number of dummy clock cycles required by device for write instruction.
806 
807  ENUMs:
808  MINIMUM: Smallest value
809  MAXIMUM: Highest possible value
810 */
811 #define OSPI_DEV_INSTR_WR_CONFIG_DUMMY_WR_CLK_CYCLES_W 5U
812 #define OSPI_DEV_INSTR_WR_CONFIG_DUMMY_WR_CLK_CYCLES_M 0x1F000000U
813 #define OSPI_DEV_INSTR_WR_CONFIG_DUMMY_WR_CLK_CYCLES_S 24U
814 #define OSPI_DEV_INSTR_WR_CONFIG_DUMMY_WR_CLK_CYCLES_MINIMUM 0x00000000U
815 #define OSPI_DEV_INSTR_WR_CONFIG_DUMMY_WR_CLK_CYCLES_MAXIMUM 0x1F000000U
816 
817 
818 /*-----------------------------------REGISTER------------------------------------
819  Register name: DEV_DELAY
820  Offset name: OSPI_O_DEV_DELAY
821  Relative address: 0xC
822  Description: Octal-SPI Device Delay Register: This register is used to introduce relative delays into the generation of the master output signals. All timings are defined in cycles of the SPI REFERENCE CLOCK/ext_clk, defined in this table as SPI master ref clock.
823  Default Value: 0x00000000
824 
825  Field: D_INIT
826  From..to bits: 0...7
827  DefaultValue: 0x0
828  Access type: read-write
829  Description: Clock Delay with n_ss_out: Delay in master reference clocks between setting n_ss_out low and first bit transfer.
830 
831  ENUMs:
832  MINIMUM: Smallest value
833  MAXIMUM: Highest possible value
834 */
835 #define OSPI_DEV_DELAY_D_INIT_W 8U
836 #define OSPI_DEV_DELAY_D_INIT_M 0x000000FFU
837 #define OSPI_DEV_DELAY_D_INIT_S 0U
838 #define OSPI_DEV_DELAY_D_INIT_MINIMUM 0x00000000U
839 #define OSPI_DEV_DELAY_D_INIT_MAXIMUM 0x000000FFU
840 /*
841 
842  Field: D_AFTER
843  From..to bits: 8...15
844  DefaultValue: 0x0
845  Access type: read-write
846  Description: Clock Delay for Last Transaction Bit: Delay in master reference clocks between last bit of current transaction and deasserting the device chip select (n_ss_out). By default, the chip select will be deasserted on the cycle following the completion of the current transaction.
847 
848  ENUMs:
849  MINIMUM: Smallest value
850  MAXIMUM: Highest possible value
851 */
852 #define OSPI_DEV_DELAY_D_AFTER_W 8U
853 #define OSPI_DEV_DELAY_D_AFTER_M 0x0000FF00U
854 #define OSPI_DEV_DELAY_D_AFTER_S 8U
855 #define OSPI_DEV_DELAY_D_AFTER_MINIMUM 0x00000000U
856 #define OSPI_DEV_DELAY_D_AFTER_MAXIMUM 0x0000FF00U
857 /*
858 
859  Field: D_BTWN
860  From..to bits: 16...23
861  DefaultValue: 0x0
862  Access type: read-write
863  Description: Clock Delay for Chip Select Deactivation: Delay in master reference clocks between one chip select being de-activated and the activation of another. This is used to ensure a quiet period between the selection of two different slaves and requires the transmit FIFO to be empty.
864 
865  ENUMs:
866  MINIMUM: Smallest value
867  MAXIMUM: Highest possible value
868 */
869 #define OSPI_DEV_DELAY_D_BTWN_W 8U
870 #define OSPI_DEV_DELAY_D_BTWN_M 0x00FF0000U
871 #define OSPI_DEV_DELAY_D_BTWN_S 16U
872 #define OSPI_DEV_DELAY_D_BTWN_MINIMUM 0x00000000U
873 #define OSPI_DEV_DELAY_D_BTWN_MAXIMUM 0x00FF0000U
874 /*
875 
876  Field: D_NSS
877  From..to bits: 24...31
878  DefaultValue: 0x0
879  Access type: read-write
880  Description: Clock Delay for Chip Select Deassert: Delay in master reference clocks for the length that the master mode chip select outputs are de-asserted between transactions. The minimum delay is always SCLK period to ensure the chip select is never re-asserted within an SCLK period.
881 
882  ENUMs:
883  MINIMUM: Smallest value
884  MAXIMUM: Highest possible value
885 */
886 #define OSPI_DEV_DELAY_D_NSS_W 8U
887 #define OSPI_DEV_DELAY_D_NSS_M 0xFF000000U
888 #define OSPI_DEV_DELAY_D_NSS_S 24U
889 #define OSPI_DEV_DELAY_D_NSS_MINIMUM 0x00000000U
890 #define OSPI_DEV_DELAY_D_NSS_MAXIMUM 0xFF000000U
891 
892 
893 /*-----------------------------------REGISTER------------------------------------
894  Register name: RD_DATA_CAPTURE
895  Offset name: OSPI_O_RD_DATA_CAPTURE
896  Relative address: 0x10
897  Description: Read Data Capture Register
898  Default Value: 0x00000001
899 
900  Field: BYPASS
901  From..to bits: 0...0
902  DefaultValue: 0x1
903  Access type: read-write
904  Description: Bypass the adapted loopback clock circuit
905 
906  ENUMs:
907  DISABLE: Disable
908  ENABLE: Enable
909 */
910 #define OSPI_RD_DATA_CAPTURE_BYPASS 0x00000001U
911 #define OSPI_RD_DATA_CAPTURE_BYPASS_M 0x00000001U
912 #define OSPI_RD_DATA_CAPTURE_BYPASS_S 0U
913 #define OSPI_RD_DATA_CAPTURE_BYPASS_DISABLE 0x00000000U
914 #define OSPI_RD_DATA_CAPTURE_BYPASS_ENABLE 0x00000001U
915 /*
916 
917  Field: DELAY
918  From..to bits: 1...4
919  DefaultValue: 0x0
920  Access type: read-write
921  Description: Read Delay: Delay the read data capturing logic by the programmed number of ref_clk cycles
922 
923  ENUMs:
924  MINIMUM: Smallest value
925  MAXIMUM: Highest possible value
926 */
927 #define OSPI_RD_DATA_CAPTURE_DELAY_W 4U
928 #define OSPI_RD_DATA_CAPTURE_DELAY_M 0x0000001EU
929 #define OSPI_RD_DATA_CAPTURE_DELAY_S 1U
930 #define OSPI_RD_DATA_CAPTURE_DELAY_MINIMUM 0x00000000U
931 #define OSPI_RD_DATA_CAPTURE_DELAY_MAXIMUM 0x0000001EU
932 /*
933 
934  Field: SAMPLE_EDGE_SEL
935  From..to bits: 5...5
936  DefaultValue: 0x0
937  Access type: read-write
938  Description: Sample edge selection: Choose edge on which data outputs from flash memory will be sampled
939 
940  ENUMs:
941  DISABLE: Disable
942  ENABLE: Enable
943 */
944 #define OSPI_RD_DATA_CAPTURE_SAMPLE_EDGE_SEL 0x00000020U
945 #define OSPI_RD_DATA_CAPTURE_SAMPLE_EDGE_SEL_M 0x00000020U
946 #define OSPI_RD_DATA_CAPTURE_SAMPLE_EDGE_SEL_S 5U
947 #define OSPI_RD_DATA_CAPTURE_SAMPLE_EDGE_SEL_DISABLE 0x00000000U
948 #define OSPI_RD_DATA_CAPTURE_SAMPLE_EDGE_SEL_ENABLE 0x00000020U
949 /*
950 
951  Field: DQS_ENABLE
952  From..to bits: 8...8
953  DefaultValue: 0x0
954  Access type: read-write
955  Description: DQS enable bit: If enabled, signal from DQS input is driven into RX DLL and is used for data capturing in PHY Mode rather than internally generated gated ref_clk..
956 
957  ENUMs:
958  DISABLE: Disable
959  ENABLE: Enable
960 */
961 #define OSPI_RD_DATA_CAPTURE_DQS_ENABLE 0x00000100U
962 #define OSPI_RD_DATA_CAPTURE_DQS_ENABLE_M 0x00000100U
963 #define OSPI_RD_DATA_CAPTURE_DQS_ENABLE_S 8U
964 #define OSPI_RD_DATA_CAPTURE_DQS_ENABLE_DISABLE 0x00000000U
965 #define OSPI_RD_DATA_CAPTURE_DQS_ENABLE_ENABLE 0x00000100U
966 /*
967 
968  Field: DDR_READ_DELAY
969  From..to bits: 16...19
970  DefaultValue: 0x0
971  Access type: read-write
972  Description: DDR read delay: Delay the transmitted data by the programmed number of ref_clk cycles.This field is only relevant when DDR Read Command is executed. Otherwise can be ignored.
973 
974  ENUMs:
975  MINIMUM: Smallest value
976  MAXIMUM: Highest possible value
977 */
978 #define OSPI_RD_DATA_CAPTURE_DDR_READ_DELAY_W 4U
979 #define OSPI_RD_DATA_CAPTURE_DDR_READ_DELAY_M 0x000F0000U
980 #define OSPI_RD_DATA_CAPTURE_DDR_READ_DELAY_S 16U
981 #define OSPI_RD_DATA_CAPTURE_DDR_READ_DELAY_MINIMUM 0x00000000U
982 #define OSPI_RD_DATA_CAPTURE_DDR_READ_DELAY_MAXIMUM 0x000F0000U
983 
984 
985 /*-----------------------------------REGISTER------------------------------------
986  Register name: DEV_SIZE_CONFIG
987  Offset name: OSPI_O_DEV_SIZE_CONFIG
988  Relative address: 0x14
989  Description: Device Size Configuration Register
990  Default Value: 0x00101002
991 
992  Field: NUM_ADDR_BYTES
993  From..to bits: 0...3
994  DefaultValue: 0x2
995  Access type: read-write
996  Description: Number of address bytes. A value of 0 indicates 1 byte.
997 
998  ENUMs:
999  MINIMUM: Smallest value
1000  MAXIMUM: Highest possible value
1001 */
1002 #define OSPI_DEV_SIZE_CONFIG_NUM_ADDR_BYTES_W 4U
1003 #define OSPI_DEV_SIZE_CONFIG_NUM_ADDR_BYTES_M 0x0000000FU
1004 #define OSPI_DEV_SIZE_CONFIG_NUM_ADDR_BYTES_S 0U
1005 #define OSPI_DEV_SIZE_CONFIG_NUM_ADDR_BYTES_MINIMUM 0x00000000U
1006 #define OSPI_DEV_SIZE_CONFIG_NUM_ADDR_BYTES_MAXIMUM 0x0000000FU
1007 /*
1008 
1009  Field: BYTES_PER_DEVICE_PAGE
1010  From..to bits: 4...15
1011  DefaultValue: 0x100
1012  Access type: read-write
1013  Description: Number of bytes per device page. This is required by the controller for performing FLASH writes up to and across page boundaries.
1014 
1015  ENUMs:
1016  MINIMUM: Smallest value
1017  MAXIMUM: Highest possible value
1018 */
1019 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_DEVICE_PAGE_W 12U
1020 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_DEVICE_PAGE_M 0x0000FFF0U
1021 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_DEVICE_PAGE_S 4U
1022 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_DEVICE_PAGE_MINIMUM 0x00000000U
1023 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_DEVICE_PAGE_MAXIMUM 0x0000FFF0U
1024 /*
1025 
1026  Field: BYTES_PER_SUBSECTOR
1027  From..to bits: 16...20
1028  DefaultValue: 0x10
1029  Access type: read-write
1030  Description: Number of bytes per Block. This is required by the controller for performing the write protection logic. The number of bytes per block must be a power of 2 number.
1031 
1032  ENUMs:
1033  MINIMUM: Smallest value
1034  MAXIMUM: Highest possible value
1035 */
1036 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_SUBSECTOR_W 5U
1037 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_SUBSECTOR_M 0x001F0000U
1038 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_SUBSECTOR_S 16U
1039 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_SUBSECTOR_MINIMUM 0x00000000U
1040 #define OSPI_DEV_SIZE_CONFIG_BYTES_PER_SUBSECTOR_MAXIMUM 0x001F0000U
1041 /*
1042 
1043  Field: MEM_SIZE_ON_CS0
1044  From..to bits: 21...22
1045  DefaultValue: 0x0
1046  Access type: read-write
1047  Description: Size of Flash Device connected to CS[0] pin: Value=00 : size of 512Mb. Value=01 : size of 1Gb. Value=10 : size of 2Gb. Value=11 : size of 4Gb.
1048 
1049  ENUMs:
1050  MINIMUM: Smallest value
1051  MAXIMUM: Highest possible value
1052 */
1053 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS0_W 2U
1054 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS0_M 0x00600000U
1055 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS0_S 21U
1056 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS0_MINIMUM 0x00000000U
1057 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS0_MAXIMUM 0x00600000U
1058 /*
1059 
1060  Field: MEM_SIZE_ON_CS1
1061  From..to bits: 23...24
1062  DefaultValue: 0x0
1063  Access type: read-write
1064  Description: Size of Flash Device connected to CS[1] pin: Value=00 : size of 512Mb. Value=01 : size of 1Gb. Value=10 : size of 2Gb. Value=11 : size of 4Gb.
1065 
1066  ENUMs:
1067  MINIMUM: Smallest value
1068  MAXIMUM: Highest possible value
1069 */
1070 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS1_W 2U
1071 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS1_M 0x01800000U
1072 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS1_S 23U
1073 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS1_MINIMUM 0x00000000U
1074 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS1_MAXIMUM 0x01800000U
1075 /*
1076 
1077  Field: MEM_SIZE_ON_CS2
1078  From..to bits: 25...26
1079  DefaultValue: 0x0
1080  Access type: read-write
1081  Description: Size of Flash Device connected to CS[2] pin: Value=00 : size of 512Mb. Value=01 : size of 1Gb. Value=10 : size of 2Gb. Value=11 : size of 4Gb.
1082 
1083  ENUMs:
1084  MINIMUM: Smallest value
1085  MAXIMUM: Highest possible value
1086 */
1087 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS2_W 2U
1088 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS2_M 0x06000000U
1089 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS2_S 25U
1090 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS2_MINIMUM 0x00000000U
1091 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS2_MAXIMUM 0x06000000U
1092 /*
1093 
1094  Field: MEM_SIZE_ON_CS3
1095  From..to bits: 27...28
1096  DefaultValue: 0x0
1097  Access type: read-write
1098  Description: Size of Flash Device connected to CS[3] pin: Value=00 : size of 512Mb. Value=01 : size of 1Gb. Value=10 : size of 2Gb. Value=11 : size of 4Gb.
1099 
1100  ENUMs:
1101  MINIMUM: Smallest value
1102  MAXIMUM: Highest possible value
1103 */
1104 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS3_W 2U
1105 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS3_M 0x18000000U
1106 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS3_S 27U
1107 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS3_MINIMUM 0x00000000U
1108 #define OSPI_DEV_SIZE_CONFIG_MEM_SIZE_ON_CS3_MAXIMUM 0x18000000U
1109 
1110 
1111 /*-----------------------------------REGISTER------------------------------------
1112  Register name: SRAM_PARTITION_CFG
1113  Offset name: OSPI_O_SRAM_PARTITION_CFG
1114  Relative address: 0x18
1115  Description: SRAM Partition Configuration Register
1116  Default Value: 0x00000080
1117 
1118  Field: THRESHOLD
1119  From..to bits: 0...7
1120  DefaultValue: 0x80
1121  Access type: read-write
1122  Description: Defines the size of the indirect read partition in the SRAM,
1123  in units of SRAM locations. By default, half of the SRAM is
1124  reserved for indirect read operation, and half for indirect write.
1125  The size of this register will scale with the depth of the SRAM.
1126 
1127 */
1128 #define OSPI_SRAM_PARTITION_CFG_THRESHOLD_W 8U
1129 #define OSPI_SRAM_PARTITION_CFG_THRESHOLD_M 0x000000FFU
1130 #define OSPI_SRAM_PARTITION_CFG_THRESHOLD_S 0U
1131 
1132 
1133 /*-----------------------------------REGISTER------------------------------------
1134  Register name: IND_AHB_ADDR_TRIGGER
1135  Offset name: OSPI_O_IND_AHB_ADDR_TRIGGER
1136  Relative address: 0x1C
1137  Description: Indirect AHB Address Trigger Register
1138  Default Value: 0x00000000
1139 
1140  Field: ADDR
1141  From..to bits: 0...31
1142  DefaultValue: 0x0
1143  Access type: read-write
1144  Description: This is the base address that will be used by the AHB controller. When the incoming AHB read access address matches a range of addresses from this trigger address to the trigger address + 15, then the AHB request will be completed by fetching data from the Indirect Controllers SRAM.
1145 
1146  ENUMs:
1147  MINIMUM: Smallest value
1148  MAXIMUM: Highest possible value
1149 */
1150 #define OSPI_IND_AHB_ADDR_TRIGGER_ADDR_W 32U
1151 #define OSPI_IND_AHB_ADDR_TRIGGER_ADDR_M 0xFFFFFFFFU
1152 #define OSPI_IND_AHB_ADDR_TRIGGER_ADDR_S 0U
1153 #define OSPI_IND_AHB_ADDR_TRIGGER_ADDR_MINIMUM 0x00000000U
1154 #define OSPI_IND_AHB_ADDR_TRIGGER_ADDR_MAXIMUM 0xFFFFFFFFU
1155 
1156 
1157 /*-----------------------------------REGISTER------------------------------------
1158  Register name: DMA_PERIPH_CONFIG
1159  Offset name: OSPI_O_DMA_PERIPH_CONFIG
1160  Relative address: 0x20
1161  Description: DMA Peripheral Configuration Register
1162  Default Value: 0x00000000
1163 
1164  Field: NUM_SINGLE_REQ_BYTES
1165  From..to bits: 0...3
1166  DefaultValue: 0x0
1167  Access type: read-write
1168  Description: Number of Single Bytes: Number of bytes in a single type request on the DMA peripheral request. A programmed value of 0 represents a single byte. This should be setup before starting the indirect read or write operation. The actual number of bytes used is 2**(value in this register) which will simplify implementation.
1169 
1170  ENUMs:
1171  MINIMUM: Smallest value
1172  MAXIMUM: Highest possible value
1173 */
1174 #define OSPI_DMA_PERIPH_CONFIG_NUM_SINGLE_REQ_BYTES_W 4U
1175 #define OSPI_DMA_PERIPH_CONFIG_NUM_SINGLE_REQ_BYTES_M 0x0000000FU
1176 #define OSPI_DMA_PERIPH_CONFIG_NUM_SINGLE_REQ_BYTES_S 0U
1177 #define OSPI_DMA_PERIPH_CONFIG_NUM_SINGLE_REQ_BYTES_MINIMUM 0x00000000U
1178 #define OSPI_DMA_PERIPH_CONFIG_NUM_SINGLE_REQ_BYTES_MAXIMUM 0x0000000FU
1179 /*
1180 
1181  Field: NUM_BURST_REQ_BYTES
1182  From..to bits: 8...11
1183  DefaultValue: 0x0
1184  Access type: read-write
1185  Description: Number of Burst Bytes: Number of bytes in a burst type request on the DMA peripheral request. A programmed value of 0 represents a single byte. This should be setup before starting the indirect read or write operation. The actual number of bytes used is 2**(value in this register) which will simplify implementation.
1186 
1187  ENUMs:
1188  MINIMUM: Smallest value
1189  MAXIMUM: Highest possible value
1190 */
1191 #define OSPI_DMA_PERIPH_CONFIG_NUM_BURST_REQ_BYTES_W 4U
1192 #define OSPI_DMA_PERIPH_CONFIG_NUM_BURST_REQ_BYTES_M 0x00000F00U
1193 #define OSPI_DMA_PERIPH_CONFIG_NUM_BURST_REQ_BYTES_S 8U
1194 #define OSPI_DMA_PERIPH_CONFIG_NUM_BURST_REQ_BYTES_MINIMUM 0x00000000U
1195 #define OSPI_DMA_PERIPH_CONFIG_NUM_BURST_REQ_BYTES_MAXIMUM 0x00000F00U
1196 
1197 
1198 /*-----------------------------------REGISTER------------------------------------
1199  Register name: REMAP_ADDR
1200  Offset name: OSPI_O_REMAP_ADDR
1201  Relative address: 0x24
1202  Description: Remap Address Register
1203  Default Value: 0x00000000
1204 
1205  Field: VALUE
1206  From..to bits: 0...31
1207  DefaultValue: 0x0
1208  Access type: read-write
1209  Description: This register is used to remap an incoming AHB address to a different address used by the FLASH device.
1210 
1211  ENUMs:
1212  MINIMUM: Smallest value
1213  MAXIMUM: Highest possible value
1214 */
1215 #define OSPI_REMAP_ADDR_VALUE_W 32U
1216 #define OSPI_REMAP_ADDR_VALUE_M 0xFFFFFFFFU
1217 #define OSPI_REMAP_ADDR_VALUE_S 0U
1218 #define OSPI_REMAP_ADDR_VALUE_MINIMUM 0x00000000U
1219 #define OSPI_REMAP_ADDR_VALUE_MAXIMUM 0xFFFFFFFFU
1220 
1221 
1222 /*-----------------------------------REGISTER------------------------------------
1223  Register name: MODE_BIT_CONFIG
1224  Offset name: OSPI_O_MODE_BIT_CONFIG
1225  Relative address: 0x28
1226  Description: Mode Bit Configuration Register
1227  Default Value: 0x00000200
1228 
1229  Field: MODE
1230  From..to bits: 0...7
1231  DefaultValue: 0x0
1232  Access type: read-write
1233  Description: These are the 8 mode bits that are sent to the device following the address bytes if mode bit transmission has been enabled.
1234 
1235  ENUMs:
1236  MINIMUM: Smallest value
1237  MAXIMUM: Highest possible value
1238 */
1239 #define OSPI_MODE_BIT_CONFIG_MODE_W 8U
1240 #define OSPI_MODE_BIT_CONFIG_MODE_M 0x000000FFU
1241 #define OSPI_MODE_BIT_CONFIG_MODE_S 0U
1242 #define OSPI_MODE_BIT_CONFIG_MODE_MINIMUM 0x00000000U
1243 #define OSPI_MODE_BIT_CONFIG_MODE_MAXIMUM 0x000000FFU
1244 /*
1245 
1246  Field: CHUNK_SIZE
1247  From..to bits: 8...10
1248  DefaultValue: 0x2
1249  Access type: read-write
1250  Description: It defines size of chunk after which CRC data is expected to show up on the SPI interface for write and read data transfers.
1251 
1252  ENUMs:
1253  MINIMUM: Smallest value
1254  MAXIMUM: Highest possible value
1255 */
1256 #define OSPI_MODE_BIT_CONFIG_CHUNK_SIZE_W 3U
1257 #define OSPI_MODE_BIT_CONFIG_CHUNK_SIZE_M 0x00000700U
1258 #define OSPI_MODE_BIT_CONFIG_CHUNK_SIZE_S 8U
1259 #define OSPI_MODE_BIT_CONFIG_CHUNK_SIZE_MINIMUM 0x00000000U
1260 #define OSPI_MODE_BIT_CONFIG_CHUNK_SIZE_MAXIMUM 0x00000700U
1261 /*
1262 
1263  Field: CRC_OUT_ENABLE
1264  From..to bits: 15...15
1265  DefaultValue: 0x0
1266  Access type: read-write
1267  Description: CRC# output enable bit When enabled, the controller expects the Flash Device to toggle CRC data on both SPI clock edges in CRC->CRC# sequence and calculates CRC compliance accordingly.
1268 
1269  ENUMs:
1270  DISABLE: Disable
1271  ENABLE: Enable
1272 */
1273 #define OSPI_MODE_BIT_CONFIG_CRC_OUT_ENABLE 0x00008000U
1274 #define OSPI_MODE_BIT_CONFIG_CRC_OUT_ENABLE_M 0x00008000U
1275 #define OSPI_MODE_BIT_CONFIG_CRC_OUT_ENABLE_S 15U
1276 #define OSPI_MODE_BIT_CONFIG_CRC_OUT_ENABLE_DISABLE 0x00000000U
1277 #define OSPI_MODE_BIT_CONFIG_CRC_OUT_ENABLE_ENABLE 0x00008000U
1278 /*
1279 
1280  Field: RX_CRC_DATA_UP
1281  From..to bits: 16...23
1282  DefaultValue: 0x0
1283  Access type: read-only
1284  Description: RX CRC data (upper) The second CRC byte returned after RX data chunk.
1285 
1286  ENUMs:
1287  MINIMUM: Smallest value
1288  MAXIMUM: Highest possible value
1289 */
1290 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_UP_W 8U
1291 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_UP_M 0x00FF0000U
1292 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_UP_S 16U
1293 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_UP_MINIMUM 0x00000000U
1294 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_UP_MAXIMUM 0x00FF0000U
1295 /*
1296 
1297  Field: RX_CRC_DATA_LOW
1298  From..to bits: 24...31
1299  DefaultValue: 0x0
1300  Access type: read-only
1301  Description: RX CRC data (lower) The first CRC byte returned after RX data chunk.
1302 
1303  ENUMs:
1304  MINIMUM: Smallest value
1305  MAXIMUM: Highest possible value
1306 */
1307 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_LOW_W 8U
1308 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_LOW_M 0xFF000000U
1309 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_LOW_S 24U
1310 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_LOW_MINIMUM 0x00000000U
1311 #define OSPI_MODE_BIT_CONFIG_RX_CRC_DATA_LOW_MAXIMUM 0xFF000000U
1312 
1313 
1314 /*-----------------------------------REGISTER------------------------------------
1315  Register name: SRAM_FILL
1316  Offset name: OSPI_O_SRAM_FILL
1317  Relative address: 0x2C
1318  Description: SRAM Fill Register
1319  Default Value: 0x00000000
1320 
1321  Field: SRAM_FILL_INDAC_READ
1322  From..to bits: 0...15
1323  DefaultValue: 0x0
1324  Access type: read-only
1325  Description: SRAM Fill Level (Indirect Read Partition): Identifies the current fill level of the SRAM Indirect Read partition
1326 
1327  ENUMs:
1328  MINIMUM: Smallest value
1329  MAXIMUM: Highest possible value
1330 */
1331 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_READ_W 16U
1332 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_READ_M 0x0000FFFFU
1333 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_READ_S 0U
1334 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_READ_MINIMUM 0x00000000U
1335 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_READ_MAXIMUM 0x0000FFFFU
1336 /*
1337 
1338  Field: SRAM_FILL_INDAC_WRITE
1339  From..to bits: 16...31
1340  DefaultValue: 0x0
1341  Access type: read-only
1342  Description: SRAM Fill Level (Indirect Write Partition): Identifies the current fill level of the SRAM Indirect Write partition
1343 
1344  ENUMs:
1345  MINIMUM: Smallest value
1346  MAXIMUM: Highest possible value
1347 */
1348 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_WRITE_W 16U
1349 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_WRITE_M 0xFFFF0000U
1350 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_WRITE_S 16U
1351 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_WRITE_MINIMUM 0x00000000U
1352 #define OSPI_SRAM_FILL_SRAM_FILL_INDAC_WRITE_MAXIMUM 0xFFFF0000U
1353 
1354 
1355 /*-----------------------------------REGISTER------------------------------------
1356  Register name: TX_THRESH
1357  Offset name: OSPI_O_TX_THRESH
1358  Relative address: 0x30
1359  Description: TX Threshold Register
1360  Default Value: 0x00000001
1361 
1362  Field: LEVEL
1363  From..to bits: 0...4
1364  DefaultValue: 0x1
1365  Access type: read-write
1366  Description: Defines the level at which the small TX FIFO not full interrupt is generated
1367 
1368  ENUMs:
1369  MINIMUM: Smallest value
1370  MAXIMUM: Highest possible value
1371 */
1372 #define OSPI_TX_THRESH_LEVEL_W 5U
1373 #define OSPI_TX_THRESH_LEVEL_M 0x0000001FU
1374 #define OSPI_TX_THRESH_LEVEL_S 0U
1375 #define OSPI_TX_THRESH_LEVEL_MINIMUM 0x00000000U
1376 #define OSPI_TX_THRESH_LEVEL_MAXIMUM 0x0000001FU
1377 
1378 
1379 /*-----------------------------------REGISTER------------------------------------
1380  Register name: RX_THRESH
1381  Offset name: OSPI_O_RX_THRESH
1382  Relative address: 0x34
1383  Description: RX Threshold Register
1384  Default Value: 0x00000001
1385 
1386  Field: LEVEL
1387  From..to bits: 0...4
1388  DefaultValue: 0x1
1389  Access type: read-write
1390  Description: Defines the level at which the small RX FIFO not empty interrupt is generated
1391 
1392  ENUMs:
1393  MINIMUM: Smallest value
1394  MAXIMUM: Highest possible value
1395 */
1396 #define OSPI_RX_THRESH_LEVEL_W 5U
1397 #define OSPI_RX_THRESH_LEVEL_M 0x0000001FU
1398 #define OSPI_RX_THRESH_LEVEL_S 0U
1399 #define OSPI_RX_THRESH_LEVEL_MINIMUM 0x00000000U
1400 #define OSPI_RX_THRESH_LEVEL_MAXIMUM 0x0000001FU
1401 
1402 
1403 /*-----------------------------------REGISTER------------------------------------
1404  Register name: WRITE_COMPLETION_CTRL
1405  Offset name: OSPI_O_WRITE_COMPLETION_CTRL
1406  Relative address: 0x38
1407  Description: Write Completion Control Register: This register defines how the controller will poll the device following a write transfer
1408  Default Value: 0x00040005
1409 
1410  Field: OPCODE
1411  From..to bits: 0...7
1412  DefaultValue: 0x5
1413  Access type: read-write
1414  Description: Defines the opcode that should be issued by the controller when it is automatically polling for device program completion. This command is issued followed all device write operations. By default, this will poll the standard device STATUS register using opcode 0x05
1415 
1416  ENUMs:
1417  MINIMUM: Smallest value
1418  MAXIMUM: Highest possible value
1419 */
1420 #define OSPI_WRITE_COMPLETION_CTRL_OPCODE_W 8U
1421 #define OSPI_WRITE_COMPLETION_CTRL_OPCODE_M 0x000000FFU
1422 #define OSPI_WRITE_COMPLETION_CTRL_OPCODE_S 0U
1423 #define OSPI_WRITE_COMPLETION_CTRL_OPCODE_MINIMUM 0x00000000U
1424 #define OSPI_WRITE_COMPLETION_CTRL_OPCODE_MAXIMUM 0x000000FFU
1425 /*
1426 
1427  Field: POLLING_BIT_INDEX
1428  From..to bits: 8...10
1429  DefaultValue: 0x0
1430  Access type: read-write
1431  Description: Defines the bit index that should be polled. A value of 010 means that bit 2 of the returned data will be polled for.A value of 111 means that bit 7 of the returned data will be polled for.
1432 
1433  ENUMs:
1434  MINIMUM: Smallest value
1435  MAXIMUM: Highest possible value
1436 */
1437 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_BIT_INDEX_W 3U
1438 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_BIT_INDEX_M 0x00000700U
1439 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_BIT_INDEX_S 8U
1440 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_BIT_INDEX_MINIMUM 0x00000000U
1441 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_BIT_INDEX_MAXIMUM 0x00000700U
1442 /*
1443 
1444  Field: POLLING_ADDR_EN
1445  From..to bits: 11...11
1446  DefaultValue: 0x0
1447  Access type: read-write
1448  Description: Enables address phase of auto-polling (Read Status) command.
1449 
1450  ENUMs:
1451  DISABLE: Disable
1452  ENABLE: Enable
1453 */
1454 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_ADDR_EN 0x00000800U
1455 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_ADDR_EN_M 0x00000800U
1456 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_ADDR_EN_S 11U
1457 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_ADDR_EN_DISABLE 0x00000000U
1458 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_ADDR_EN_ENABLE 0x00000800U
1459 /*
1460 
1461  Field: POLLING_POLARITY
1462  From..to bits: 13...13
1463  DefaultValue: 0x0
1464  Access type: read-write
1465  Description: Defines the polling polarity. If '1', then the write transfer to the device will be complete if the polled bit is equal to '1'. If '0', then the write transfer to the device will be complete if the polled bit is equal to '0'.
1466 
1467  ENUMs:
1468  DISABLE: Disable
1469  ENABLE: Enable
1470 */
1471 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_POLARITY 0x00002000U
1472 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_POLARITY_M 0x00002000U
1473 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_POLARITY_S 13U
1474 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_POLARITY_DISABLE 0x00000000U
1475 #define OSPI_WRITE_COMPLETION_CTRL_POLLING_POLARITY_ENABLE 0x00002000U
1476 /*
1477 
1478  Field: DISABLE_POLLING
1479  From..to bits: 14...14
1480  DefaultValue: 0x0
1481  Access type: read-write
1482  Description: This switches off the automatic polling function
1483 
1484  ENUMs:
1485  DISABLE: Disable
1486  ENABLE: Enable
1487 */
1488 #define OSPI_WRITE_COMPLETION_CTRL_DISABLE_POLLING 0x00004000U
1489 #define OSPI_WRITE_COMPLETION_CTRL_DISABLE_POLLING_M 0x00004000U
1490 #define OSPI_WRITE_COMPLETION_CTRL_DISABLE_POLLING_S 14U
1491 #define OSPI_WRITE_COMPLETION_CTRL_DISABLE_POLLING_DISABLE 0x00000000U
1492 #define OSPI_WRITE_COMPLETION_CTRL_DISABLE_POLLING_ENABLE 0x00004000U
1493 /*
1494 
1495  Field: ENABLE_POLLING_EXP
1496  From..to bits: 15...15
1497  DefaultValue: 0x0
1498  Access type: read-write
1499  Description: Set to '1' for enabling auto-polling expiration.
1500 
1501  ENUMs:
1502  DISABLE: Disable
1503  ENABLE: Enable
1504 */
1505 #define OSPI_WRITE_COMPLETION_CTRL_ENABLE_POLLING_EXP 0x00008000U
1506 #define OSPI_WRITE_COMPLETION_CTRL_ENABLE_POLLING_EXP_M 0x00008000U
1507 #define OSPI_WRITE_COMPLETION_CTRL_ENABLE_POLLING_EXP_S 15U
1508 #define OSPI_WRITE_COMPLETION_CTRL_ENABLE_POLLING_EXP_DISABLE 0x00000000U
1509 #define OSPI_WRITE_COMPLETION_CTRL_ENABLE_POLLING_EXP_ENABLE 0x00008000U
1510 /*
1511 
1512  Field: POLL_COUNT
1513  From..to bits: 16...23
1514  DefaultValue: 0x4
1515  Access type: read-write
1516  Description: Defines the number of times the controller should expect to see a true result from the polling in successive reads of the device register.
1517 
1518  ENUMs:
1519  MINIMUM: Smallest value
1520  MAXIMUM: Highest possible value
1521 */
1522 #define OSPI_WRITE_COMPLETION_CTRL_POLL_COUNT_W 8U
1523 #define OSPI_WRITE_COMPLETION_CTRL_POLL_COUNT_M 0x00FF0000U
1524 #define OSPI_WRITE_COMPLETION_CTRL_POLL_COUNT_S 16U
1525 #define OSPI_WRITE_COMPLETION_CTRL_POLL_COUNT_MINIMUM 0x00000000U
1526 #define OSPI_WRITE_COMPLETION_CTRL_POLL_COUNT_MAXIMUM 0x00FF0000U
1527 /*
1528 
1529  Field: POLL_REP_DELAY
1530  From..to bits: 24...31
1531  DefaultValue: 0x0
1532  Access type: read-write
1533  Description: Defines additional delay for maintain Chip Select de-asserted during auto-polling phase
1534 
1535  ENUMs:
1536  MINIMUM: Smallest value
1537  MAXIMUM: Highest possible value
1538 */
1539 #define OSPI_WRITE_COMPLETION_CTRL_POLL_REP_DELAY_W 8U
1540 #define OSPI_WRITE_COMPLETION_CTRL_POLL_REP_DELAY_M 0xFF000000U
1541 #define OSPI_WRITE_COMPLETION_CTRL_POLL_REP_DELAY_S 24U
1542 #define OSPI_WRITE_COMPLETION_CTRL_POLL_REP_DELAY_MINIMUM 0x00000000U
1543 #define OSPI_WRITE_COMPLETION_CTRL_POLL_REP_DELAY_MAXIMUM 0xFF000000U
1544 
1545 
1546 /*-----------------------------------REGISTER------------------------------------
1547  Register name: NO_OF_POLLS_BEF_EXP
1548  Offset name: OSPI_O_NO_OF_POLLS_BEF_EXP
1549  Relative address: 0x3C
1550  Description: Polling Expiration Register
1551  Default Value: 0xFFFFFFFF
1552 
1553  Field: NO_OF_POLLS_BEF_EXP
1554  From..to bits: 0...31
1555  DefaultValue: 0xFFFFFFFF
1556  Access type: read-write
1557  Description: Number of polls cycles before expiration
1558 
1559  ENUMs:
1560  MINIMUM: Smallest value
1561  MAXIMUM: Highest possible value
1562 */
1563 #define OSPI_NO_OF_POLLS_BEF_EXP_NO_OF_POLLS_BEF_EXP_W 32U
1564 #define OSPI_NO_OF_POLLS_BEF_EXP_NO_OF_POLLS_BEF_EXP_M 0xFFFFFFFFU
1565 #define OSPI_NO_OF_POLLS_BEF_EXP_NO_OF_POLLS_BEF_EXP_S 0U
1566 #define OSPI_NO_OF_POLLS_BEF_EXP_NO_OF_POLLS_BEF_EXP_MINIMUM 0x00000000U
1567 #define OSPI_NO_OF_POLLS_BEF_EXP_NO_OF_POLLS_BEF_EXP_MAXIMUM 0xFFFFFFFFU
1568 
1569 
1570 /*-----------------------------------REGISTER------------------------------------
1571  Register name: IRQ_STATUS
1572  Offset name: OSPI_O_IRQ_STATUS
1573  Relative address: 0x40
1574  Description: Interrupt Status Register: The status fields in this register are set when the described event occurs and the interrupt is enabled in the mask register. When any of these bit fields are set, the interrupt output is asserted high. The fields are each cleared by writing a 1 to the field. Note that bit fields 6 thru 10 are only valid when legacy SPI mode is active.
1575  Default Value: 0x00000000
1576 
1577  Field: MODE_M_FAIL
1578  From..to bits: 0...0
1579  DefaultValue: 0x0
1580  Access type: read-write
1581  Description: Mode M Failure: Mode M failure indicates the voltage on pin n_ss_in is inconsistent with the SPI mode. Set =1 if n_ss_in is low in master mode (multi-master contention). These conditions will clear the spi_enable bit and disable the SPI. This bit is reset only by a system reset and cleared only when this register is read.
1582 
1583  ENUMs:
1584  DISABLE: no mode fault has been detected 1 : a mode fault has occurred
1585  ENABLE: a mode fault has occurred
1586 */
1587 #define OSPI_IRQ_STATUS_MODE_M_FAIL 0x00000001U
1588 #define OSPI_IRQ_STATUS_MODE_M_FAIL_M 0x00000001U
1589 #define OSPI_IRQ_STATUS_MODE_M_FAIL_S 0U
1590 #define OSPI_IRQ_STATUS_MODE_M_FAIL_DISABLE 0x00000000U
1591 #define OSPI_IRQ_STATUS_MODE_M_FAIL_ENABLE 0x00000001U
1592 /*
1593 
1594  Field: UNDERFLOW_DET
1595  From..to bits: 1...1
1596  DefaultValue: 0x0
1597  Access type: read-write
1598  Description: Underflow Detected:
1599 
1600  ENUMs:
1601  DISABLE: no underflow has been detected 1 : underflow is detected and an attempt to transfer data is made when the small TX FIFO is empty. This may occur when AHB write data is being supplied too slowly to keep up with the requested write operation This bit is reset only by a system reset and cleared only when the register is read.
1602  ENABLE: underflow is detected and an attempt to transfer data is made when the small TX FIFO is empty. This may occur when AHB write data is being supplied too slowly to keep up with the requested write operation This bit is reset only by a system reset and cleared only when the register is read.
1603 */
1604 #define OSPI_IRQ_STATUS_UNDERFLOW_DET 0x00000002U
1605 #define OSPI_IRQ_STATUS_UNDERFLOW_DET_M 0x00000002U
1606 #define OSPI_IRQ_STATUS_UNDERFLOW_DET_S 1U
1607 #define OSPI_IRQ_STATUS_UNDERFLOW_DET_DISABLE 0x00000000U
1608 #define OSPI_IRQ_STATUS_UNDERFLOW_DET_ENABLE 0x00000002U
1609 /*
1610 
1611  Field: INDIRECT_OP_DONE
1612  From..to bits: 2...2
1613  DefaultValue: 0x0
1614  Access type: read-write
1615  Description: Indirect Operation Complete: Controller has completed last triggered indirect operation
1616 
1617  ENUMs:
1618  DISABLE: Disable
1619  ENABLE: Enable
1620 */
1621 #define OSPI_IRQ_STATUS_INDIRECT_OP_DONE 0x00000004U
1622 #define OSPI_IRQ_STATUS_INDIRECT_OP_DONE_M 0x00000004U
1623 #define OSPI_IRQ_STATUS_INDIRECT_OP_DONE_S 2U
1624 #define OSPI_IRQ_STATUS_INDIRECT_OP_DONE_DISABLE 0x00000000U
1625 #define OSPI_IRQ_STATUS_INDIRECT_OP_DONE_ENABLE 0x00000004U
1626 /*
1627 
1628  Field: INDIRECT_TRANSFER_REJECT
1629  From..to bits: 3...3
1630  DefaultValue: 0x0
1631  Access type: read-write
1632  Description: Indirect operation was requested but could not be accepted. Two indirect operations already in storage.
1633 
1634  ENUMs:
1635  DISABLE: Disable
1636  ENABLE: Enable
1637 */
1638 #define OSPI_IRQ_STATUS_INDIRECT_TRANSFER_REJECT 0x00000008U
1639 #define OSPI_IRQ_STATUS_INDIRECT_TRANSFER_REJECT_M 0x00000008U
1640 #define OSPI_IRQ_STATUS_INDIRECT_TRANSFER_REJECT_S 3U
1641 #define OSPI_IRQ_STATUS_INDIRECT_TRANSFER_REJECT_DISABLE 0x00000000U
1642 #define OSPI_IRQ_STATUS_INDIRECT_TRANSFER_REJECT_ENABLE 0x00000008U
1643 /*
1644 
1645  Field: PROT_WR_ATTEMPT
1646  From..to bits: 4...4
1647  DefaultValue: 0x0
1648  Access type: read-write
1649  Description: Write to protected area was attempted and rejected.
1650 
1651  ENUMs:
1652  DISABLE: Disable
1653  ENABLE: Enable
1654 */
1655 #define OSPI_IRQ_STATUS_PROT_WR_ATTEMPT 0x00000010U
1656 #define OSPI_IRQ_STATUS_PROT_WR_ATTEMPT_M 0x00000010U
1657 #define OSPI_IRQ_STATUS_PROT_WR_ATTEMPT_S 4U
1658 #define OSPI_IRQ_STATUS_PROT_WR_ATTEMPT_DISABLE 0x00000000U
1659 #define OSPI_IRQ_STATUS_PROT_WR_ATTEMPT_ENABLE 0x00000010U
1660 /*
1661 
1662  Field: ILLEGAL_ACCESS_DET
1663  From..to bits: 5...5
1664  DefaultValue: 0x0
1665  Access type: read-write
1666  Description: Illegal AHB access has been detected. AHB wrapping bursts and the use of SPLIT/RETRY accesses will cause this error interrupt to trigger.
1667 
1668  ENUMs:
1669  DISABLE: Disable
1670  ENABLE: Enable
1671 */
1672 #define OSPI_IRQ_STATUS_ILLEGAL_ACCESS_DET 0x00000020U
1673 #define OSPI_IRQ_STATUS_ILLEGAL_ACCESS_DET_M 0x00000020U
1674 #define OSPI_IRQ_STATUS_ILLEGAL_ACCESS_DET_S 5U
1675 #define OSPI_IRQ_STATUS_ILLEGAL_ACCESS_DET_DISABLE 0x00000000U
1676 #define OSPI_IRQ_STATUS_ILLEGAL_ACCESS_DET_ENABLE 0x00000020U
1677 /*
1678 
1679  Field: INDIRECT_XFER_LEVEL_BREACH
1680  From..to bits: 6...6
1681  DefaultValue: 0x0
1682  Access type: read-write
1683  Description: Indirect Transfer Watermark Level Breached
1684 
1685  ENUMs:
1686  DISABLE: Disable
1687  ENABLE: Enable
1688 */
1689 #define OSPI_IRQ_STATUS_INDIRECT_XFER_LEVEL_BREACH 0x00000040U
1690 #define OSPI_IRQ_STATUS_INDIRECT_XFER_LEVEL_BREACH_M 0x00000040U
1691 #define OSPI_IRQ_STATUS_INDIRECT_XFER_LEVEL_BREACH_S 6U
1692 #define OSPI_IRQ_STATUS_INDIRECT_XFER_LEVEL_BREACH_DISABLE 0x00000000U
1693 #define OSPI_IRQ_STATUS_INDIRECT_XFER_LEVEL_BREACH_ENABLE 0x00000040U
1694 /*
1695 
1696  Field: RECV_OVERFLOW
1697  From..to bits: 7...7
1698  DefaultValue: 0x0
1699  Access type: read-write
1700  Description: Receive Overflow: This should only occur in Legacy SPI mode. Set if an attempt is made to push the RX FIFO when it is full. This bit is reset only by a system reset and cleared only when this register is read. If a new push to the RX FIFO occurs coincident with a register read this flag will remain set.
1701 
1702  ENUMs:
1703  DISABLE: no overflow has been detected. 1 : an overflow has occurred.
1704  ENABLE: an overflow has occurred.
1705 */
1706 #define OSPI_IRQ_STATUS_RECV_OVERFLOW 0x00000080U
1707 #define OSPI_IRQ_STATUS_RECV_OVERFLOW_M 0x00000080U
1708 #define OSPI_IRQ_STATUS_RECV_OVERFLOW_S 7U
1709 #define OSPI_IRQ_STATUS_RECV_OVERFLOW_DISABLE 0x00000000U
1710 #define OSPI_IRQ_STATUS_RECV_OVERFLOW_ENABLE 0x00000080U
1711 /*
1712 
1713  Field: TX_FIFO_NOT_FULL
1714  From..to bits: 8...8
1715  DefaultValue: 0x0
1716  Access type: read-write
1717  Description: Small TX FIFO not full: Current FIFO status can be ignored in non-SPI legacy mode
1718 
1719  ENUMs:
1720  DISABLE: FIFO has >= THRESHOLD entries, 1 : FIFO has less than THRESHOLD entries
1721  ENABLE: FIFO has less than THRESHOLD entries
1722 */
1723 #define OSPI_IRQ_STATUS_TX_FIFO_NOT_FULL 0x00000100U
1724 #define OSPI_IRQ_STATUS_TX_FIFO_NOT_FULL_M 0x00000100U
1725 #define OSPI_IRQ_STATUS_TX_FIFO_NOT_FULL_S 8U
1726 #define OSPI_IRQ_STATUS_TX_FIFO_NOT_FULL_DISABLE 0x00000000U
1727 #define OSPI_IRQ_STATUS_TX_FIFO_NOT_FULL_ENABLE 0x00000100U
1728 /*
1729 
1730  Field: TX_FIFO_FULL
1731  From..to bits: 9...9
1732  DefaultValue: 0x0
1733  Access type: read-write
1734  Description: Small TX FIFO full: Current FIFO status can be ignored in non-SPI legacy mode
1735 
1736  ENUMs:
1737  DISABLE: FIFO is not full, 1 : FIFO is full
1738  ENABLE: FIFO is full
1739 */
1740 #define OSPI_IRQ_STATUS_TX_FIFO_FULL 0x00000200U
1741 #define OSPI_IRQ_STATUS_TX_FIFO_FULL_M 0x00000200U
1742 #define OSPI_IRQ_STATUS_TX_FIFO_FULL_S 9U
1743 #define OSPI_IRQ_STATUS_TX_FIFO_FULL_DISABLE 0x00000000U
1744 #define OSPI_IRQ_STATUS_TX_FIFO_FULL_ENABLE 0x00000200U
1745 /*
1746 
1747  Field: RX_FIFO_NOT_EMPTY
1748  From..to bits: 10...10
1749  DefaultValue: 0x0
1750  Access type: read-write
1751  Description: Small RX FIFO not empty: Current FIFO status can be ignored in non-SPI legacy mode
1752 
1753  ENUMs:
1754  DISABLE: FIFO has less than RX THRESHOLD entries, 1 : FIFO has >= THRESHOLD entries
1755  ENABLE: FIFO has >= THRESHOLD entries
1756 */
1757 #define OSPI_IRQ_STATUS_RX_FIFO_NOT_EMPTY 0x00000400U
1758 #define OSPI_IRQ_STATUS_RX_FIFO_NOT_EMPTY_M 0x00000400U
1759 #define OSPI_IRQ_STATUS_RX_FIFO_NOT_EMPTY_S 10U
1760 #define OSPI_IRQ_STATUS_RX_FIFO_NOT_EMPTY_DISABLE 0x00000000U
1761 #define OSPI_IRQ_STATUS_RX_FIFO_NOT_EMPTY_ENABLE 0x00000400U
1762 /*
1763 
1764  Field: RX_FIFO_FULL
1765  From..to bits: 11...11
1766  DefaultValue: 0x0
1767  Access type: read-write
1768  Description: Small RX FIFO full: Current FIFO status can be ignored in non-SPI legacy mode
1769 
1770  ENUMs:
1771  DISABLE: FIFO is not full 1 : FIFO is full
1772  ENABLE: FIFO is full
1773 */
1774 #define OSPI_IRQ_STATUS_RX_FIFO_FULL 0x00000800U
1775 #define OSPI_IRQ_STATUS_RX_FIFO_FULL_M 0x00000800U
1776 #define OSPI_IRQ_STATUS_RX_FIFO_FULL_S 11U
1777 #define OSPI_IRQ_STATUS_RX_FIFO_FULL_DISABLE 0x00000000U
1778 #define OSPI_IRQ_STATUS_RX_FIFO_FULL_ENABLE 0x00000800U
1779 /*
1780 
1781  Field: INDRD_SRAM_FULL
1782  From..to bits: 12...12
1783  DefaultValue: 0x0
1784  Access type: read-write
1785  Description: Indirect Read Partition overflow: Indirect Read Partition of SRAM is full and unable to immediately complete indirect operation
1786 
1787  ENUMs:
1788  DISABLE: Disable
1789  ENABLE: Enable
1790 */
1791 #define OSPI_IRQ_STATUS_INDRD_SRAM_FULL 0x00001000U
1792 #define OSPI_IRQ_STATUS_INDRD_SRAM_FULL_M 0x00001000U
1793 #define OSPI_IRQ_STATUS_INDRD_SRAM_FULL_S 12U
1794 #define OSPI_IRQ_STATUS_INDRD_SRAM_FULL_DISABLE 0x00000000U
1795 #define OSPI_IRQ_STATUS_INDRD_SRAM_FULL_ENABLE 0x00001000U
1796 /*
1797 
1798  Field: POLL_EXP_INT
1799  From..to bits: 13...13
1800  DefaultValue: 0x0
1801  Access type: read-write
1802  Description: The maximum number of programmed polls cycles is expired
1803 
1804  ENUMs:
1805  DISABLE: Disable
1806  ENABLE: Enable
1807 */
1808 #define OSPI_IRQ_STATUS_POLL_EXP_INT 0x00002000U
1809 #define OSPI_IRQ_STATUS_POLL_EXP_INT_M 0x00002000U
1810 #define OSPI_IRQ_STATUS_POLL_EXP_INT_S 13U
1811 #define OSPI_IRQ_STATUS_POLL_EXP_INT_DISABLE 0x00000000U
1812 #define OSPI_IRQ_STATUS_POLL_EXP_INT_ENABLE 0x00002000U
1813 /*
1814 
1815  Field: STIG_REQ_INT
1816  From..to bits: 14...14
1817  DefaultValue: 0x0
1818  Access type: read-write
1819  Description: The controller is ready for getting another STIG request.
1820 
1821  ENUMs:
1822  DISABLE: Disable
1823  ENABLE: Enable
1824 */
1825 #define OSPI_IRQ_STATUS_STIG_REQ_INT 0x00004000U
1826 #define OSPI_IRQ_STATUS_STIG_REQ_INT_M 0x00004000U
1827 #define OSPI_IRQ_STATUS_STIG_REQ_INT_S 14U
1828 #define OSPI_IRQ_STATUS_STIG_REQ_INT_DISABLE 0x00000000U
1829 #define OSPI_IRQ_STATUS_STIG_REQ_INT_ENABLE 0x00004000U
1830 /*
1831 
1832  Field: RX_CRC_DATA_ERR
1833  From..to bits: 16...16
1834  DefaultValue: 0x0
1835  Access type: read-write
1836  Description: RX CRC data error CRC data from Flash Device does not correspond to the one dynamically calculated by the controller.
1837 
1838  ENUMs:
1839  DISABLE: Disable
1840  ENABLE: Enable
1841 */
1842 #define OSPI_IRQ_STATUS_RX_CRC_DATA_ERR 0x00010000U
1843 #define OSPI_IRQ_STATUS_RX_CRC_DATA_ERR_M 0x00010000U
1844 #define OSPI_IRQ_STATUS_RX_CRC_DATA_ERR_S 16U
1845 #define OSPI_IRQ_STATUS_RX_CRC_DATA_ERR_DISABLE 0x00000000U
1846 #define OSPI_IRQ_STATUS_RX_CRC_DATA_ERR_ENABLE 0x00010000U
1847 /*
1848 
1849  Field: RX_CRC_DATA_VAL
1850  From..to bits: 17...17
1851  DefaultValue: 0x0
1852  Access type: read-write
1853  Description: RX CRC data valid New RX CRC data was captured from Flash Device
1854 
1855  ENUMs:
1856  DISABLE: Disable
1857  ENABLE: Enable
1858 */
1859 #define OSPI_IRQ_STATUS_RX_CRC_DATA_VAL 0x00020000U
1860 #define OSPI_IRQ_STATUS_RX_CRC_DATA_VAL_M 0x00020000U
1861 #define OSPI_IRQ_STATUS_RX_CRC_DATA_VAL_S 17U
1862 #define OSPI_IRQ_STATUS_RX_CRC_DATA_VAL_DISABLE 0x00000000U
1863 #define OSPI_IRQ_STATUS_RX_CRC_DATA_VAL_ENABLE 0x00020000U
1864 /*
1865 
1866  Field: TX_CRC_CHUNK_BRK
1867  From..to bits: 18...18
1868  DefaultValue: 0x0
1869  Access type: read-write
1870  Description: TX CRC chunk was broken This interrupt informs the system that program page SPI transfer was discontinued somewhere inside the chunk.
1871 
1872  ENUMs:
1873  DISABLE: Disable
1874  ENABLE: Enable
1875 */
1876 #define OSPI_IRQ_STATUS_TX_CRC_CHUNK_BRK 0x00040000U
1877 #define OSPI_IRQ_STATUS_TX_CRC_CHUNK_BRK_M 0x00040000U
1878 #define OSPI_IRQ_STATUS_TX_CRC_CHUNK_BRK_S 18U
1879 #define OSPI_IRQ_STATUS_TX_CRC_CHUNK_BRK_DISABLE 0x00000000U
1880 #define OSPI_IRQ_STATUS_TX_CRC_CHUNK_BRK_ENABLE 0x00040000U
1881 /*
1882 
1883  Field: ECC_FAIL
1884  From..to bits: 19...19
1885  DefaultValue: 0x0
1886  Access type: read-write
1887  Description: ECC failure This interrupt informs the system that Flash Device reported ECC error.
1888 
1889  ENUMs:
1890  DISABLE: Disable
1891  ENABLE: Enable
1892 */
1893 #define OSPI_IRQ_STATUS_ECC_FAIL 0x00080000U
1894 #define OSPI_IRQ_STATUS_ECC_FAIL_M 0x00080000U
1895 #define OSPI_IRQ_STATUS_ECC_FAIL_S 19U
1896 #define OSPI_IRQ_STATUS_ECC_FAIL_DISABLE 0x00000000U
1897 #define OSPI_IRQ_STATUS_ECC_FAIL_ENABLE 0x00080000U
1898 
1899 
1900 /*-----------------------------------REGISTER------------------------------------
1901  Register name: IRQ_MASK
1902  Offset name: OSPI_O_IRQ_MASK
1903  Relative address: 0x44
1904  Description: Interrupt Mask: 0 : the interrupt for the corresponding interrupt status register bit is disabled.
1905  1 : the interrupt for the corresponding interrupt status register bit is enabled.
1906  Default Value: 0x00000000
1907 
1908  Field: MODE_M_FAIL_MASK
1909  From..to bits: 0...0
1910  DefaultValue: 0x0
1911  Access type: read-write
1912  Description: Mode M Failure Mask
1913 
1914  ENUMs:
1915  DISABLE: Disable
1916  ENABLE: Enable
1917 */
1918 #define OSPI_IRQ_MASK_MODE_M_FAIL_MASK 0x00000001U
1919 #define OSPI_IRQ_MASK_MODE_M_FAIL_MASK_M 0x00000001U
1920 #define OSPI_IRQ_MASK_MODE_M_FAIL_MASK_S 0U
1921 #define OSPI_IRQ_MASK_MODE_M_FAIL_MASK_DISABLE 0x00000000U
1922 #define OSPI_IRQ_MASK_MODE_M_FAIL_MASK_ENABLE 0x00000001U
1923 /*
1924 
1925  Field: UNDERFLOW_DET_MASK
1926  From..to bits: 1...1
1927  DefaultValue: 0x0
1928  Access type: read-write
1929  Description: Underflow Detected Mask
1930 
1931  ENUMs:
1932  DISABLE: Disable
1933  ENABLE: Enable
1934 */
1935 #define OSPI_IRQ_MASK_UNDERFLOW_DET_MASK 0x00000002U
1936 #define OSPI_IRQ_MASK_UNDERFLOW_DET_MASK_M 0x00000002U
1937 #define OSPI_IRQ_MASK_UNDERFLOW_DET_MASK_S 1U
1938 #define OSPI_IRQ_MASK_UNDERFLOW_DET_MASK_DISABLE 0x00000000U
1939 #define OSPI_IRQ_MASK_UNDERFLOW_DET_MASK_ENABLE 0x00000002U
1940 /*
1941 
1942  Field: INDIRECT_OP_DONE_MASK
1943  From..to bits: 2...2
1944  DefaultValue: 0x0
1945  Access type: read-write
1946  Description: Indirect Complete Mask
1947 
1948  ENUMs:
1949  DISABLE: Disable
1950  ENABLE: Enable
1951 */
1952 #define OSPI_IRQ_MASK_INDIRECT_OP_DONE_MASK 0x00000004U
1953 #define OSPI_IRQ_MASK_INDIRECT_OP_DONE_MASK_M 0x00000004U
1954 #define OSPI_IRQ_MASK_INDIRECT_OP_DONE_MASK_S 2U
1955 #define OSPI_IRQ_MASK_INDIRECT_OP_DONE_MASK_DISABLE 0x00000000U
1956 #define OSPI_IRQ_MASK_INDIRECT_OP_DONE_MASK_ENABLE 0x00000004U
1957 /*
1958 
1959  Field: INDIRECT_TRANSFER_REJECT_MASK
1960  From..to bits: 3...3
1961  DefaultValue: 0x0
1962  Access type: read-write
1963  Description: Indirect Read Reject Mask
1964 
1965  ENUMs:
1966  DISABLE: Disable
1967  ENABLE: Enable
1968 */
1969 #define OSPI_IRQ_MASK_INDIRECT_TRANSFER_REJECT_MASK 0x00000008U
1970 #define OSPI_IRQ_MASK_INDIRECT_TRANSFER_REJECT_MASK_M 0x00000008U
1971 #define OSPI_IRQ_MASK_INDIRECT_TRANSFER_REJECT_MASK_S 3U
1972 #define OSPI_IRQ_MASK_INDIRECT_TRANSFER_REJECT_MASK_DISABLE 0x00000000U
1973 #define OSPI_IRQ_MASK_INDIRECT_TRANSFER_REJECT_MASK_ENABLE 0x00000008U
1974 /*
1975 
1976  Field: PROT_WR_ATTEMPT_MASK
1977  From..to bits: 4...4
1978  DefaultValue: 0x0
1979  Access type: read-write
1980  Description: Protected Area Write Attempt Mask
1981 
1982  ENUMs:
1983  DISABLE: Disable
1984  ENABLE: Enable
1985 */
1986 #define OSPI_IRQ_MASK_PROT_WR_ATTEMPT_MASK 0x00000010U
1987 #define OSPI_IRQ_MASK_PROT_WR_ATTEMPT_MASK_M 0x00000010U
1988 #define OSPI_IRQ_MASK_PROT_WR_ATTEMPT_MASK_S 4U
1989 #define OSPI_IRQ_MASK_PROT_WR_ATTEMPT_MASK_DISABLE 0x00000000U
1990 #define OSPI_IRQ_MASK_PROT_WR_ATTEMPT_MASK_ENABLE 0x00000010U
1991 /*
1992 
1993  Field: ILLEGAL_ACCESS_DET_MASK
1994  From..to bits: 5...5
1995  DefaultValue: 0x0
1996  Access type: read-write
1997  Description: Illegal Access Detected Mask
1998 
1999  ENUMs:
2000  DISABLE: Disable
2001  ENABLE: Enable
2002 */
2003 #define OSPI_IRQ_MASK_ILLEGAL_ACCESS_DET_MASK 0x00000020U
2004 #define OSPI_IRQ_MASK_ILLEGAL_ACCESS_DET_MASK_M 0x00000020U
2005 #define OSPI_IRQ_MASK_ILLEGAL_ACCESS_DET_MASK_S 5U
2006 #define OSPI_IRQ_MASK_ILLEGAL_ACCESS_DET_MASK_DISABLE 0x00000000U
2007 #define OSPI_IRQ_MASK_ILLEGAL_ACCESS_DET_MASK_ENABLE 0x00000020U
2008 /*
2009 
2010  Field: INDIRECT_XFER_LEVEL_BREACH_MASK
2011  From..to bits: 6...6
2012  DefaultValue: 0x0
2013  Access type: read-write
2014  Description: Transfer Watermark Breach Mask
2015 
2016  ENUMs:
2017  DISABLE: Disable
2018  ENABLE: Enable
2019 */
2020 #define OSPI_IRQ_MASK_INDIRECT_XFER_LEVEL_BREACH_MASK 0x00000040U
2021 #define OSPI_IRQ_MASK_INDIRECT_XFER_LEVEL_BREACH_MASK_M 0x00000040U
2022 #define OSPI_IRQ_MASK_INDIRECT_XFER_LEVEL_BREACH_MASK_S 6U
2023 #define OSPI_IRQ_MASK_INDIRECT_XFER_LEVEL_BREACH_MASK_DISABLE 0x00000000U
2024 #define OSPI_IRQ_MASK_INDIRECT_XFER_LEVEL_BREACH_MASK_ENABLE 0x00000040U
2025 /*
2026 
2027  Field: RECV_OVERFLOW_MASK
2028  From..to bits: 7...7
2029  DefaultValue: 0x0
2030  Access type: read-write
2031  Description: Receive Overflow Mask
2032 
2033  ENUMs:
2034  DISABLE: Disable
2035  ENABLE: Enable
2036 */
2037 #define OSPI_IRQ_MASK_RECV_OVERFLOW_MASK 0x00000080U
2038 #define OSPI_IRQ_MASK_RECV_OVERFLOW_MASK_M 0x00000080U
2039 #define OSPI_IRQ_MASK_RECV_OVERFLOW_MASK_S 7U
2040 #define OSPI_IRQ_MASK_RECV_OVERFLOW_MASK_DISABLE 0x00000000U
2041 #define OSPI_IRQ_MASK_RECV_OVERFLOW_MASK_ENABLE 0x00000080U
2042 /*
2043 
2044  Field: TX_FIFO_NOT_FULL_MASK
2045  From..to bits: 8...8
2046  DefaultValue: 0x0
2047  Access type: read-write
2048  Description: Small TX FIFO not full Mask
2049 
2050  ENUMs:
2051  DISABLE: Disable
2052  ENABLE: Enable
2053 */
2054 #define OSPI_IRQ_MASK_TX_FIFO_NOT_FULL_MASK 0x00000100U
2055 #define OSPI_IRQ_MASK_TX_FIFO_NOT_FULL_MASK_M 0x00000100U
2056 #define OSPI_IRQ_MASK_TX_FIFO_NOT_FULL_MASK_S 8U
2057 #define OSPI_IRQ_MASK_TX_FIFO_NOT_FULL_MASK_DISABLE 0x00000000U
2058 #define OSPI_IRQ_MASK_TX_FIFO_NOT_FULL_MASK_ENABLE 0x00000100U
2059 /*
2060 
2061  Field: TX_FIFO_FULL_MASK
2062  From..to bits: 9...9
2063  DefaultValue: 0x0
2064  Access type: read-write
2065  Description: Small TX FIFO full Mask
2066 
2067  ENUMs:
2068  DISABLE: Disable
2069  ENABLE: Enable
2070 */
2071 #define OSPI_IRQ_MASK_TX_FIFO_FULL_MASK 0x00000200U
2072 #define OSPI_IRQ_MASK_TX_FIFO_FULL_MASK_M 0x00000200U
2073 #define OSPI_IRQ_MASK_TX_FIFO_FULL_MASK_S 9U
2074 #define OSPI_IRQ_MASK_TX_FIFO_FULL_MASK_DISABLE 0x00000000U
2075 #define OSPI_IRQ_MASK_TX_FIFO_FULL_MASK_ENABLE 0x00000200U
2076 /*
2077 
2078  Field: RX_FIFO_NOT_EMPTY_MASK
2079  From..to bits: 10...10
2080  DefaultValue: 0x0
2081  Access type: read-write
2082  Description: Small RX FIFO not empty Mask
2083 
2084  ENUMs:
2085  DISABLE: Disable
2086  ENABLE: Enable
2087 */
2088 #define OSPI_IRQ_MASK_RX_FIFO_NOT_EMPTY_MASK 0x00000400U
2089 #define OSPI_IRQ_MASK_RX_FIFO_NOT_EMPTY_MASK_M 0x00000400U
2090 #define OSPI_IRQ_MASK_RX_FIFO_NOT_EMPTY_MASK_S 10U
2091 #define OSPI_IRQ_MASK_RX_FIFO_NOT_EMPTY_MASK_DISABLE 0x00000000U
2092 #define OSPI_IRQ_MASK_RX_FIFO_NOT_EMPTY_MASK_ENABLE 0x00000400U
2093 /*
2094 
2095  Field: RX_FIFO_FULL_MASK
2096  From..to bits: 11...11
2097  DefaultValue: 0x0
2098  Access type: read-write
2099  Description: Small RX FIFO full Mask
2100 
2101  ENUMs:
2102  DISABLE: Disable
2103  ENABLE: Enable
2104 */
2105 #define OSPI_IRQ_MASK_RX_FIFO_FULL_MASK 0x00000800U
2106 #define OSPI_IRQ_MASK_RX_FIFO_FULL_MASK_M 0x00000800U
2107 #define OSPI_IRQ_MASK_RX_FIFO_FULL_MASK_S 11U
2108 #define OSPI_IRQ_MASK_RX_FIFO_FULL_MASK_DISABLE 0x00000000U
2109 #define OSPI_IRQ_MASK_RX_FIFO_FULL_MASK_ENABLE 0x00000800U
2110 /*
2111 
2112  Field: INDRD_SRAM_FULL_MASK
2113  From..to bits: 12...12
2114  DefaultValue: 0x0
2115  Access type: read-write
2116  Description: Indirect Read Partition overflow mask
2117 
2118  ENUMs:
2119  DISABLE: Disable
2120  ENABLE: Enable
2121 */
2122 #define OSPI_IRQ_MASK_INDRD_SRAM_FULL_MASK 0x00001000U
2123 #define OSPI_IRQ_MASK_INDRD_SRAM_FULL_MASK_M 0x00001000U
2124 #define OSPI_IRQ_MASK_INDRD_SRAM_FULL_MASK_S 12U
2125 #define OSPI_IRQ_MASK_INDRD_SRAM_FULL_MASK_DISABLE 0x00000000U
2126 #define OSPI_IRQ_MASK_INDRD_SRAM_FULL_MASK_ENABLE 0x00001000U
2127 /*
2128 
2129  Field: POLL_EXP_INT_MASK
2130  From..to bits: 13...13
2131  DefaultValue: 0x0
2132  Access type: read-write
2133  Description: Polling expiration detected Mask
2134 
2135  ENUMs:
2136  DISABLE: Disable
2137  ENABLE: Enable
2138 */
2139 #define OSPI_IRQ_MASK_POLL_EXP_INT_MASK 0x00002000U
2140 #define OSPI_IRQ_MASK_POLL_EXP_INT_MASK_M 0x00002000U
2141 #define OSPI_IRQ_MASK_POLL_EXP_INT_MASK_S 13U
2142 #define OSPI_IRQ_MASK_POLL_EXP_INT_MASK_DISABLE 0x00000000U
2143 #define OSPI_IRQ_MASK_POLL_EXP_INT_MASK_ENABLE 0x00002000U
2144 /*
2145 
2146  Field: STIG_REQ_MASK
2147  From..to bits: 14...14
2148  DefaultValue: 0x0
2149  Access type: read-write
2150  Description: STIG request completion Mask
2151 
2152  ENUMs:
2153  DISABLE: Disable
2154  ENABLE: Enable
2155 */
2156 #define OSPI_IRQ_MASK_STIG_REQ_MASK 0x00004000U
2157 #define OSPI_IRQ_MASK_STIG_REQ_MASK_M 0x00004000U
2158 #define OSPI_IRQ_MASK_STIG_REQ_MASK_S 14U
2159 #define OSPI_IRQ_MASK_STIG_REQ_MASK_DISABLE 0x00000000U
2160 #define OSPI_IRQ_MASK_STIG_REQ_MASK_ENABLE 0x00004000U
2161 /*
2162 
2163  Field: RX_CRC_DATA_ERR_MASK
2164  From..to bits: 16...16
2165  DefaultValue: 0x0
2166  Access type: read-write
2167  Description: RX CRC data error Mask
2168 
2169  ENUMs:
2170  DISABLE: Disable
2171  ENABLE: Enable
2172 */
2173 #define OSPI_IRQ_MASK_RX_CRC_DATA_ERR_MASK 0x00010000U
2174 #define OSPI_IRQ_MASK_RX_CRC_DATA_ERR_MASK_M 0x00010000U
2175 #define OSPI_IRQ_MASK_RX_CRC_DATA_ERR_MASK_S 16U
2176 #define OSPI_IRQ_MASK_RX_CRC_DATA_ERR_MASK_DISABLE 0x00000000U
2177 #define OSPI_IRQ_MASK_RX_CRC_DATA_ERR_MASK_ENABLE 0x00010000U
2178 /*
2179 
2180  Field: RX_CRC_DATA_VAL_MASK
2181  From..to bits: 17...17
2182  DefaultValue: 0x0
2183  Access type: read-write
2184  Description: RX CRC data valid Mask
2185 
2186  ENUMs:
2187  DISABLE: Disable
2188  ENABLE: Enable
2189 */
2190 #define OSPI_IRQ_MASK_RX_CRC_DATA_VAL_MASK 0x00020000U
2191 #define OSPI_IRQ_MASK_RX_CRC_DATA_VAL_MASK_M 0x00020000U
2192 #define OSPI_IRQ_MASK_RX_CRC_DATA_VAL_MASK_S 17U
2193 #define OSPI_IRQ_MASK_RX_CRC_DATA_VAL_MASK_DISABLE 0x00000000U
2194 #define OSPI_IRQ_MASK_RX_CRC_DATA_VAL_MASK_ENABLE 0x00020000U
2195 /*
2196 
2197  Field: TX_CRC_CHUNK_BRK_MASK
2198  From..to bits: 18...18
2199  DefaultValue: 0x0
2200  Access type: read-write
2201  Description: TX CRC chunk was broken Mask
2202 
2203  ENUMs:
2204  DISABLE: Disable
2205  ENABLE: Enable
2206 */
2207 #define OSPI_IRQ_MASK_TX_CRC_CHUNK_BRK_MASK 0x00040000U
2208 #define OSPI_IRQ_MASK_TX_CRC_CHUNK_BRK_MASK_M 0x00040000U
2209 #define OSPI_IRQ_MASK_TX_CRC_CHUNK_BRK_MASK_S 18U
2210 #define OSPI_IRQ_MASK_TX_CRC_CHUNK_BRK_MASK_DISABLE 0x00000000U
2211 #define OSPI_IRQ_MASK_TX_CRC_CHUNK_BRK_MASK_ENABLE 0x00040000U
2212 /*
2213 
2214  Field: ECC_FAIL_MASK
2215  From..to bits: 19...19
2216  DefaultValue: 0x0
2217  Access type: read-write
2218  Description: ECC failure Mask
2219 
2220  ENUMs:
2221  DISABLE: Disable
2222  ENABLE: Enable
2223 */
2224 #define OSPI_IRQ_MASK_ECC_FAIL_MASK 0x00080000U
2225 #define OSPI_IRQ_MASK_ECC_FAIL_MASK_M 0x00080000U
2226 #define OSPI_IRQ_MASK_ECC_FAIL_MASK_S 19U
2227 #define OSPI_IRQ_MASK_ECC_FAIL_MASK_DISABLE 0x00000000U
2228 #define OSPI_IRQ_MASK_ECC_FAIL_MASK_ENABLE 0x00080000U
2229 
2230 
2231 /*-----------------------------------REGISTER------------------------------------
2232  Register name: LOWER_WR_PROT
2233  Offset name: OSPI_O_LOWER_WR_PROT
2234  Relative address: 0x50
2235  Description: Lower Write Protection Register
2236  Default Value: 0x00000000
2237 
2238  Field: SUBSECTOR
2239  From..to bits: 0...31
2240  DefaultValue: 0x0
2241  Access type: read-write
2242  Description: The block number that defines the lower block in the range of blocks that is to be locked from writing. The definition of a block in terms of number of bytes is programmable via the Device Size Configuration register.
2243 
2244  ENUMs:
2245  MINIMUM: Smallest value
2246  MAXIMUM: Highest possible value
2247 */
2248 #define OSPI_LOWER_WR_PROT_SUBSECTOR_W 32U
2249 #define OSPI_LOWER_WR_PROT_SUBSECTOR_M 0xFFFFFFFFU
2250 #define OSPI_LOWER_WR_PROT_SUBSECTOR_S 0U
2251 #define OSPI_LOWER_WR_PROT_SUBSECTOR_MINIMUM 0x00000000U
2252 #define OSPI_LOWER_WR_PROT_SUBSECTOR_MAXIMUM 0xFFFFFFFFU
2253 
2254 
2255 /*-----------------------------------REGISTER------------------------------------
2256  Register name: UPPER_WR_PROT
2257  Offset name: OSPI_O_UPPER_WR_PROT
2258  Relative address: 0x54
2259  Description: Upper Write Protection Register
2260  Default Value: 0x00000000
2261 
2262  Field: SUBSECTOR
2263  From..to bits: 0...31
2264  DefaultValue: 0x0
2265  Access type: read-write
2266  Description: The block number that defines the upper block in the range of blocks that is to be locked from writing. The definition of a block in terms of number of bytes is programmable via the Device Size Configuration register.
2267 
2268  ENUMs:
2269  MINIMUM: Smallest value
2270  MAXIMUM: Highest possible value
2271 */
2272 #define OSPI_UPPER_WR_PROT_SUBSECTOR_W 32U
2273 #define OSPI_UPPER_WR_PROT_SUBSECTOR_M 0xFFFFFFFFU
2274 #define OSPI_UPPER_WR_PROT_SUBSECTOR_S 0U
2275 #define OSPI_UPPER_WR_PROT_SUBSECTOR_MINIMUM 0x00000000U
2276 #define OSPI_UPPER_WR_PROT_SUBSECTOR_MAXIMUM 0xFFFFFFFFU
2277 
2278 
2279 /*-----------------------------------REGISTER------------------------------------
2280  Register name: WR_PROT_CTRL
2281  Offset name: OSPI_O_WR_PROT_CTRL
2282  Relative address: 0x58
2283  Description: Write Protection Control Register
2284  Default Value: 0x00000000
2285 
2286  Field: INV
2287  From..to bits: 0...0
2288  DefaultValue: 0x0
2289  Access type: read-write
2290  Description: Write Protection Inversion Bit: When set to 1, the protection region defined in the lower and upper write protection registers is inverted meaning it is the region that the system is permitted to write to. When set to 0, the protection region defined in the lower and upper write protection registers is the region that the system is not permitted to write to.
2291 
2292  ENUMs:
2293  DISABLE: Disable
2294  ENABLE: Enable
2295 */
2296 #define OSPI_WR_PROT_CTRL_INV 0x00000001U
2297 #define OSPI_WR_PROT_CTRL_INV_M 0x00000001U
2298 #define OSPI_WR_PROT_CTRL_INV_S 0U
2299 #define OSPI_WR_PROT_CTRL_INV_DISABLE 0x00000000U
2300 #define OSPI_WR_PROT_CTRL_INV_ENABLE 0x00000001U
2301 /*
2302 
2303  Field: ENB
2304  From..to bits: 1...1
2305  DefaultValue: 0x0
2306  Access type: read-write
2307  Description: Write Protection Enable Bit: When set to 1, any AHB write access with an address within the protection region defined in the lower and upper write protection registers is rejected. An AHB error response is generated and an interrupt source triggered. When set to 0, the protection region is disabled.
2308 
2309  ENUMs:
2310  DISABLE: Disable
2311  ENABLE: Enable
2312 */
2313 #define OSPI_WR_PROT_CTRL_ENB 0x00000002U
2314 #define OSPI_WR_PROT_CTRL_ENB_M 0x00000002U
2315 #define OSPI_WR_PROT_CTRL_ENB_S 1U
2316 #define OSPI_WR_PROT_CTRL_ENB_DISABLE 0x00000000U
2317 #define OSPI_WR_PROT_CTRL_ENB_ENABLE 0x00000002U
2318 
2319 
2320 /*-----------------------------------REGISTER------------------------------------
2321  Register name: INDIRECT_READ_XFER_CTRL
2322  Offset name: OSPI_O_INDIRECT_READ_XFER_CTRL
2323  Relative address: 0x60
2324  Description: Indirect Read Transfer Control Register
2325  Default Value: 0x00000000
2326 
2327  Field: START
2328  From..to bits: 0...0
2329  DefaultValue: 0x0
2330  Access type: write-only
2331  Description: Start Indirect Read: Writing a 1 to this bit will trigger an indirect read operation. The assumption is that the indirect start address and the indirect number of bytes register is setup before triggering the indirect read operation.
2332 
2333  ENUMs:
2334  DISABLE: Disable
2335  ENABLE: Enable
2336 */
2337 #define OSPI_INDIRECT_READ_XFER_CTRL_START 0x00000001U
2338 #define OSPI_INDIRECT_READ_XFER_CTRL_START_M 0x00000001U
2339 #define OSPI_INDIRECT_READ_XFER_CTRL_START_S 0U
2340 #define OSPI_INDIRECT_READ_XFER_CTRL_START_DISABLE 0x00000000U
2341 #define OSPI_INDIRECT_READ_XFER_CTRL_START_ENABLE 0x00000001U
2342 /*
2343 
2344  Field: CANCEL
2345  From..to bits: 1...1
2346  DefaultValue: 0x0
2347  Access type: write-only
2348  Description: Cancel Indirect Read: Writing a 1 to this bit will cancel all ongoing indirect read operations.
2349 
2350  ENUMs:
2351  DISABLE: Disable
2352  ENABLE: Enable
2353 */
2354 #define OSPI_INDIRECT_READ_XFER_CTRL_CANCEL 0x00000002U
2355 #define OSPI_INDIRECT_READ_XFER_CTRL_CANCEL_M 0x00000002U
2356 #define OSPI_INDIRECT_READ_XFER_CTRL_CANCEL_S 1U
2357 #define OSPI_INDIRECT_READ_XFER_CTRL_CANCEL_DISABLE 0x00000000U
2358 #define OSPI_INDIRECT_READ_XFER_CTRL_CANCEL_ENABLE 0x00000002U
2359 /*
2360 
2361  Field: RD_STATUS
2362  From..to bits: 2...2
2363  DefaultValue: 0x0
2364  Access type: read-only
2365  Description: Indirect Read Status: Indirect read operation in progress (status)
2366 
2367  ENUMs:
2368  DISABLE: Disable
2369  ENABLE: Enable
2370 */
2371 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_STATUS 0x00000004U
2372 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_STATUS_M 0x00000004U
2373 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_STATUS_S 2U
2374 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_STATUS_DISABLE 0x00000000U
2375 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_STATUS_ENABLE 0x00000004U
2376 /*
2377 
2378  Field: SRAM_FULL
2379  From..to bits: 3...3
2380  DefaultValue: 0x0
2381  Access type: read-write
2382  Description: SRAM Full: SRAM full and unable to immediately complete an indirect operation. Write a 1 to this field to clear it.\"; indirect operation (status)
2383 
2384  ENUMs:
2385  DISABLE: Disable
2386  ENABLE: Enable
2387 */
2388 #define OSPI_INDIRECT_READ_XFER_CTRL_SRAM_FULL 0x00000008U
2389 #define OSPI_INDIRECT_READ_XFER_CTRL_SRAM_FULL_M 0x00000008U
2390 #define OSPI_INDIRECT_READ_XFER_CTRL_SRAM_FULL_S 3U
2391 #define OSPI_INDIRECT_READ_XFER_CTRL_SRAM_FULL_DISABLE 0x00000000U
2392 #define OSPI_INDIRECT_READ_XFER_CTRL_SRAM_FULL_ENABLE 0x00000008U
2393 /*
2394 
2395  Field: RD_QUEUED
2396  From..to bits: 4...4
2397  DefaultValue: 0x0
2398  Access type: read-only
2399  Description: Two indirect read operations have been queued
2400 
2401  ENUMs:
2402  DISABLE: Disable
2403  ENABLE: Enable
2404 */
2405 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_QUEUED 0x00000010U
2406 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_QUEUED_M 0x00000010U
2407 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_QUEUED_S 4U
2408 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_QUEUED_DISABLE 0x00000000U
2409 #define OSPI_INDIRECT_READ_XFER_CTRL_RD_QUEUED_ENABLE 0x00000010U
2410 /*
2411 
2412  Field: IND_OPS_DONE_STATUS
2413  From..to bits: 5...5
2414  DefaultValue: 0x0
2415  Access type: read-write
2416  Description: Indirect Completion Status: This field is set to 1 when an indirect operation has completed. Write a 1 to this field to clear it.
2417 
2418  ENUMs:
2419  DISABLE: Disable
2420  ENABLE: Enable
2421 */
2422 #define OSPI_INDIRECT_READ_XFER_CTRL_IND_OPS_DONE_STATUS 0x00000020U
2423 #define OSPI_INDIRECT_READ_XFER_CTRL_IND_OPS_DONE_STATUS_M 0x00000020U
2424 #define OSPI_INDIRECT_READ_XFER_CTRL_IND_OPS_DONE_STATUS_S 5U
2425 #define OSPI_INDIRECT_READ_XFER_CTRL_IND_OPS_DONE_STATUS_DISABLE 0x00000000U
2426 #define OSPI_INDIRECT_READ_XFER_CTRL_IND_OPS_DONE_STATUS_ENABLE 0x00000020U
2427 /*
2428 
2429  Field: NUM_IND_OPS_DONE
2430  From..to bits: 6...7
2431  DefaultValue: 0x0
2432  Access type: read-only
2433  Description: This field contains the number of indirect operations which have been completed. This is used in conjunction with the indirect completion status field (bit 5). It is incremented by hardware when an indirect operation has completed. Write a 1 to bit 5 of this register to decrement it.
2434 
2435  ENUMs:
2436  MINIMUM: Smallest value
2437  MAXIMUM: Highest possible value
2438 */
2439 #define OSPI_INDIRECT_READ_XFER_CTRL_NUM_IND_OPS_DONE_W 2U
2440 #define OSPI_INDIRECT_READ_XFER_CTRL_NUM_IND_OPS_DONE_M 0x000000C0U
2441 #define OSPI_INDIRECT_READ_XFER_CTRL_NUM_IND_OPS_DONE_S 6U
2442 #define OSPI_INDIRECT_READ_XFER_CTRL_NUM_IND_OPS_DONE_MINIMUM 0x00000000U
2443 #define OSPI_INDIRECT_READ_XFER_CTRL_NUM_IND_OPS_DONE_MAXIMUM 0x000000C0U
2444 
2445 
2446 /*-----------------------------------REGISTER------------------------------------
2447  Register name: INDIRECT_READ_XFER_WATERMARK
2448  Offset name: OSPI_O_INDIRECT_READ_XFER_WATERMARK
2449  Relative address: 0x64
2450  Description: Indirect Read Transfer Watermark Register
2451  Default Value: 0x00000000
2452 
2453  Field: LEVEL
2454  From..to bits: 0...31
2455  DefaultValue: 0x0
2456  Access type: read-write
2457  Description: Watermark Value: This represents the minimum fill level of the SRAM before a DMA peripheral access is permitted. When the SRAM fill level passes the watermark, an interrupt is also generated. This field can be disabled by writing a value of all zeroes.
2458 
2459  ENUMs:
2460  MINIMUM: Smallest value
2461  MAXIMUM: Highest possible value
2462 */
2463 #define OSPI_INDIRECT_READ_XFER_WATERMARK_LEVEL_W 32U
2464 #define OSPI_INDIRECT_READ_XFER_WATERMARK_LEVEL_M 0xFFFFFFFFU
2465 #define OSPI_INDIRECT_READ_XFER_WATERMARK_LEVEL_S 0U
2466 #define OSPI_INDIRECT_READ_XFER_WATERMARK_LEVEL_MINIMUM 0x00000000U
2467 #define OSPI_INDIRECT_READ_XFER_WATERMARK_LEVEL_MAXIMUM 0xFFFFFFFFU
2468 
2469 
2470 /*-----------------------------------REGISTER------------------------------------
2471  Register name: INDIRECT_READ_XFER_START
2472  Offset name: OSPI_O_INDIRECT_READ_XFER_START
2473  Relative address: 0x68
2474  Description: Indirect Read Transfer Start Address Register
2475  Default Value: 0x00000000
2476 
2477  Field: ADDR
2478  From..to bits: 0...31
2479  DefaultValue: 0x0
2480  Access type: read-write
2481  Description: This is the start address from which the indirect access will commence its READ operation.
2482 
2483  ENUMs:
2484  MINIMUM: Smallest value
2485  MAXIMUM: Highest possible value
2486 */
2487 #define OSPI_INDIRECT_READ_XFER_START_ADDR_W 32U
2488 #define OSPI_INDIRECT_READ_XFER_START_ADDR_M 0xFFFFFFFFU
2489 #define OSPI_INDIRECT_READ_XFER_START_ADDR_S 0U
2490 #define OSPI_INDIRECT_READ_XFER_START_ADDR_MINIMUM 0x00000000U
2491 #define OSPI_INDIRECT_READ_XFER_START_ADDR_MAXIMUM 0xFFFFFFFFU
2492 
2493 
2494 /*-----------------------------------REGISTER------------------------------------
2495  Register name: INDIRECT_READ_XFER_NUM_BYTES
2496  Offset name: OSPI_O_INDIRECT_READ_XFER_NUM_BYTES
2497  Relative address: 0x6C
2498  Description: Indirect Read Transfer Number Bytes Register
2499  Default Value: 0x00000000
2500 
2501  Field: VALUE
2502  From..to bits: 0...31
2503  DefaultValue: 0x0
2504  Access type: read-write
2505  Description: This is the number of bytes that the indirect access will consume. This can be bigger than the configured size of SRAM.
2506 
2507  ENUMs:
2508  MINIMUM: Smallest value
2509  MAXIMUM: Highest possible value
2510 */
2511 #define OSPI_INDIRECT_READ_XFER_NUM_BYTES_VALUE_W 32U
2512 #define OSPI_INDIRECT_READ_XFER_NUM_BYTES_VALUE_M 0xFFFFFFFFU
2513 #define OSPI_INDIRECT_READ_XFER_NUM_BYTES_VALUE_S 0U
2514 #define OSPI_INDIRECT_READ_XFER_NUM_BYTES_VALUE_MINIMUM 0x00000000U
2515 #define OSPI_INDIRECT_READ_XFER_NUM_BYTES_VALUE_MAXIMUM 0xFFFFFFFFU
2516 
2517 
2518 /*-----------------------------------REGISTER------------------------------------
2519  Register name: INDIRECT_WRITE_XFER_CTRL
2520  Offset name: OSPI_O_INDIRECT_WRITE_XFER_CTRL
2521  Relative address: 0x70
2522  Description: Indirect Write Transfer Control Register
2523  Default Value: 0x00000000
2524 
2525  Field: START
2526  From..to bits: 0...0
2527  DefaultValue: 0x0
2528  Access type: write-only
2529  Description: Start Indirect Write: Writing a 1 to this bit will trigger an indirect write operation. The assumption is that the indirect start address and the indirect number of bytes register is setup before triggering the indirect write operation.
2530 
2531  ENUMs:
2532  DISABLE: Disable
2533  ENABLE: Enable
2534 */
2535 #define OSPI_INDIRECT_WRITE_XFER_CTRL_START 0x00000001U
2536 #define OSPI_INDIRECT_WRITE_XFER_CTRL_START_M 0x00000001U
2537 #define OSPI_INDIRECT_WRITE_XFER_CTRL_START_S 0U
2538 #define OSPI_INDIRECT_WRITE_XFER_CTRL_START_DISABLE 0x00000000U
2539 #define OSPI_INDIRECT_WRITE_XFER_CTRL_START_ENABLE 0x00000001U
2540 /*
2541 
2542  Field: CANCEL
2543  From..to bits: 1...1
2544  DefaultValue: 0x0
2545  Access type: write-only
2546  Description: Cancel Indirect Write: Writing a 1 to this bit will cancel all ongoing indirect write operations.
2547 
2548  ENUMs:
2549  DISABLE: Disable
2550  ENABLE: Enable
2551 */
2552 #define OSPI_INDIRECT_WRITE_XFER_CTRL_CANCEL 0x00000002U
2553 #define OSPI_INDIRECT_WRITE_XFER_CTRL_CANCEL_M 0x00000002U
2554 #define OSPI_INDIRECT_WRITE_XFER_CTRL_CANCEL_S 1U
2555 #define OSPI_INDIRECT_WRITE_XFER_CTRL_CANCEL_DISABLE 0x00000000U
2556 #define OSPI_INDIRECT_WRITE_XFER_CTRL_CANCEL_ENABLE 0x00000002U
2557 /*
2558 
2559  Field: WR_STATUS
2560  From..to bits: 2...2
2561  DefaultValue: 0x0
2562  Access type: read-only
2563  Description: Indirect Write Status: Indirect write operation in progress (status)
2564 
2565  ENUMs:
2566  DISABLE: Disable
2567  ENABLE: Enable
2568 */
2569 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_STATUS 0x00000004U
2570 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_STATUS_M 0x00000004U
2571 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_STATUS_S 2U
2572 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_STATUS_DISABLE 0x00000000U
2573 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_STATUS_ENABLE 0x00000004U
2574 /*
2575 
2576  Field: WR_QUEUED
2577  From..to bits: 4...4
2578  DefaultValue: 0x0
2579  Access type: read-only
2580  Description: Two indirect write operations have been queued
2581 
2582  ENUMs:
2583  DISABLE: Disable
2584  ENABLE: Enable
2585 */
2586 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_QUEUED 0x00000010U
2587 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_QUEUED_M 0x00000010U
2588 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_QUEUED_S 4U
2589 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_QUEUED_DISABLE 0x00000000U
2590 #define OSPI_INDIRECT_WRITE_XFER_CTRL_WR_QUEUED_ENABLE 0x00000010U
2591 /*
2592 
2593  Field: IND_OPS_DONE_STATUS
2594  From..to bits: 5...5
2595  DefaultValue: 0x0
2596  Access type: read-write
2597  Description: Indirect Completion Status: This field is set to 1 when an indirect operation has completed. Write a 1 to this field to clear it.
2598 
2599  ENUMs:
2600  DISABLE: Disable
2601  ENABLE: Enable
2602 */
2603 #define OSPI_INDIRECT_WRITE_XFER_CTRL_IND_OPS_DONE_STATUS 0x00000020U
2604 #define OSPI_INDIRECT_WRITE_XFER_CTRL_IND_OPS_DONE_STATUS_M 0x00000020U
2605 #define OSPI_INDIRECT_WRITE_XFER_CTRL_IND_OPS_DONE_STATUS_S 5U
2606 #define OSPI_INDIRECT_WRITE_XFER_CTRL_IND_OPS_DONE_STATUS_DISABLE 0x00000000U
2607 #define OSPI_INDIRECT_WRITE_XFER_CTRL_IND_OPS_DONE_STATUS_ENABLE 0x00000020U
2608 /*
2609 
2610  Field: NUM_IND_OPS_DONE
2611  From..to bits: 6...7
2612  DefaultValue: 0x0
2613  Access type: read-only
2614  Description: This field contains the number of indirect operations which have been completed. This is used in conjunction with the indirect completion status field (bit 5). It is incremented by hardware when an indirect operation has completed. Write a 1 to bit 5 of this register to decrement it.
2615 
2616  ENUMs:
2617  MINIMUM: Smallest value
2618  MAXIMUM: Highest possible value
2619 */
2620 #define OSPI_INDIRECT_WRITE_XFER_CTRL_NUM_IND_OPS_DONE_W 2U
2621 #define OSPI_INDIRECT_WRITE_XFER_CTRL_NUM_IND_OPS_DONE_M 0x000000C0U
2622 #define OSPI_INDIRECT_WRITE_XFER_CTRL_NUM_IND_OPS_DONE_S 6U
2623 #define OSPI_INDIRECT_WRITE_XFER_CTRL_NUM_IND_OPS_DONE_MINIMUM 0x00000000U
2624 #define OSPI_INDIRECT_WRITE_XFER_CTRL_NUM_IND_OPS_DONE_MAXIMUM 0x000000C0U
2625 
2626 
2627 /*-----------------------------------REGISTER------------------------------------
2628  Register name: INDIRECT_WRITE_XFER_WATERMARK
2629  Offset name: OSPI_O_INDIRECT_WRITE_XFER_WATERMARK
2630  Relative address: 0x74
2631  Description: Indirect Write Transfer Watermark Register
2632  Default Value: 0xFFFFFFFF
2633 
2634  Field: LEVEL
2635  From..to bits: 0...31
2636  DefaultValue: 0xFFFFFFFF
2637  Access type: read-write
2638  Description: Watermark Value: This represents the maximum fill level of the SRAM before a DMA peripheral access is permitted. When the SRAM fill level falls below the watermark, an interrupt is also generated. This field can be disabled by writing a value of all ones.
2639 
2640  ENUMs:
2641  MINIMUM: Smallest value
2642  MAXIMUM: Highest possible value
2643 */
2644 #define OSPI_INDIRECT_WRITE_XFER_WATERMARK_LEVEL_W 32U
2645 #define OSPI_INDIRECT_WRITE_XFER_WATERMARK_LEVEL_M 0xFFFFFFFFU
2646 #define OSPI_INDIRECT_WRITE_XFER_WATERMARK_LEVEL_S 0U
2647 #define OSPI_INDIRECT_WRITE_XFER_WATERMARK_LEVEL_MINIMUM 0x00000000U
2648 #define OSPI_INDIRECT_WRITE_XFER_WATERMARK_LEVEL_MAXIMUM 0xFFFFFFFFU
2649 
2650 
2651 /*-----------------------------------REGISTER------------------------------------
2652  Register name: INDIRECT_WRITE_XFER_START
2653  Offset name: OSPI_O_INDIRECT_WRITE_XFER_START
2654  Relative address: 0x78
2655  Description: Indirect Write Transfer Start Address Register
2656  Default Value: 0x00000000
2657 
2658  Field: ADDR
2659  From..to bits: 0...31
2660  DefaultValue: 0x0
2661  Access type: read-write
2662  Description: Start of Indirect Access: This is the start address from which the indirect access will commence its READ operation.
2663 
2664  ENUMs:
2665  MINIMUM: Smallest value
2666  MAXIMUM: Highest possible value
2667 */
2668 #define OSPI_INDIRECT_WRITE_XFER_START_ADDR_W 32U
2669 #define OSPI_INDIRECT_WRITE_XFER_START_ADDR_M 0xFFFFFFFFU
2670 #define OSPI_INDIRECT_WRITE_XFER_START_ADDR_S 0U
2671 #define OSPI_INDIRECT_WRITE_XFER_START_ADDR_MINIMUM 0x00000000U
2672 #define OSPI_INDIRECT_WRITE_XFER_START_ADDR_MAXIMUM 0xFFFFFFFFU
2673 
2674 
2675 /*-----------------------------------REGISTER------------------------------------
2676  Register name: INDIRECT_WRITE_XFER_NUM_BYTES
2677  Offset name: OSPI_O_INDIRECT_WRITE_XFER_NUM_BYTES
2678  Relative address: 0x7C
2679  Description: Indirect Write Transfer Number Bytes Register
2680  Default Value: 0x00000000
2681 
2682  Field: VALUE
2683  From..to bits: 0...31
2684  DefaultValue: 0x0
2685  Access type: read-write
2686  Description: Indirect Number of Bytes: This is the number of bytes that the indirect access will consume. This can be bigger than the configured size of SRAM.
2687 
2688  ENUMs:
2689  MINIMUM: Smallest value
2690  MAXIMUM: Highest possible value
2691 */
2692 #define OSPI_INDIRECT_WRITE_XFER_NUM_BYTES_VALUE_W 32U
2693 #define OSPI_INDIRECT_WRITE_XFER_NUM_BYTES_VALUE_M 0xFFFFFFFFU
2694 #define OSPI_INDIRECT_WRITE_XFER_NUM_BYTES_VALUE_S 0U
2695 #define OSPI_INDIRECT_WRITE_XFER_NUM_BYTES_VALUE_MINIMUM 0x00000000U
2696 #define OSPI_INDIRECT_WRITE_XFER_NUM_BYTES_VALUE_MAXIMUM 0xFFFFFFFFU
2697 
2698 
2699 /*-----------------------------------REGISTER------------------------------------
2700  Register name: INDIRECT_TRIGGER_ADDR_RANGE
2701  Offset name: OSPI_O_INDIRECT_TRIGGER_ADDR_RANGE
2702  Relative address: 0x80
2703  Description: Indirect Trigger Address Range Register
2704  Default Value: 0x00000004
2705 
2706  Field: IND_RANGE_WIDTH
2707  From..to bits: 0...3
2708  DefaultValue: 0x4
2709  Access type: read-write
2710  Description: This is the address offset of Indirect Trigger Address Register.
2711 
2712  ENUMs:
2713  MINIMUM: Smallest value
2714  MAXIMUM: Highest possible value
2715 */
2716 #define OSPI_INDIRECT_TRIGGER_ADDR_RANGE_IND_RANGE_WIDTH_W 4U
2717 #define OSPI_INDIRECT_TRIGGER_ADDR_RANGE_IND_RANGE_WIDTH_M 0x0000000FU
2718 #define OSPI_INDIRECT_TRIGGER_ADDR_RANGE_IND_RANGE_WIDTH_S 0U
2719 #define OSPI_INDIRECT_TRIGGER_ADDR_RANGE_IND_RANGE_WIDTH_MINIMUM 0x00000000U
2720 #define OSPI_INDIRECT_TRIGGER_ADDR_RANGE_IND_RANGE_WIDTH_MAXIMUM 0x0000000FU
2721 
2722 
2723 /*-----------------------------------REGISTER------------------------------------
2724  Register name: FLASH_COMMAND_CTRL_MEM
2725  Offset name: OSPI_O_FLASH_COMMAND_CTRL_MEM
2726  Relative address: 0x8C
2727  Description: Flash Command Control Memory Register
2728  Default Value: 0x00000000
2729 
2730  Field: TRIGGER_MEM_BANK_REQ
2731  From..to bits: 0...0
2732  DefaultValue: 0x0
2733  Access type: write-only
2734  Description: Trigger the Memory Bank data request.
2735 
2736  ENUMs:
2737  DISABLE: Disable
2738  ENABLE: Enable
2739 */
2740 #define OSPI_FLASH_COMMAND_CTRL_MEM_TRIGGER_MEM_BANK_REQ 0x00000001U
2741 #define OSPI_FLASH_COMMAND_CTRL_MEM_TRIGGER_MEM_BANK_REQ_M 0x00000001U
2742 #define OSPI_FLASH_COMMAND_CTRL_MEM_TRIGGER_MEM_BANK_REQ_S 0U
2743 #define OSPI_FLASH_COMMAND_CTRL_MEM_TRIGGER_MEM_BANK_REQ_DISABLE 0x00000000U
2744 #define OSPI_FLASH_COMMAND_CTRL_MEM_TRIGGER_MEM_BANK_REQ_ENABLE 0x00000001U
2745 /*
2746 
2747  Field: MEM_BANK_REQ_IN_PROGRESS
2748  From..to bits: 1...1
2749  DefaultValue: 0x0
2750  Access type: read-only
2751  Description: Memory Bank data request in progress.
2752 
2753  ENUMs:
2754  DISABLE: Disable
2755  ENABLE: Enable
2756 */
2757 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_REQ_IN_PROGRESS 0x00000002U
2758 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_REQ_IN_PROGRESS_M 0x00000002U
2759 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_REQ_IN_PROGRESS_S 1U
2760 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_REQ_IN_PROGRESS_DISABLE 0x00000000U
2761 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_REQ_IN_PROGRESS_ENABLE 0x00000002U
2762 /*
2763 
2764  Field: MEM_BANK_READ_DATA
2765  From..to bits: 8...15
2766  DefaultValue: 0x0
2767  Access type: read-only
2768  Description: Last requested data from the STIG Memory Bank.
2769 
2770  ENUMs:
2771  MINIMUM: Smallest value
2772  MAXIMUM: Highest possible value
2773 */
2774 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_READ_DATA_W 8U
2775 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_READ_DATA_M 0x0000FF00U
2776 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_READ_DATA_S 8U
2777 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_READ_DATA_MINIMUM 0x00000000U
2778 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_READ_DATA_MAXIMUM 0x0000FF00U
2779 /*
2780 
2781  Field: NB_OF_STIG_READ_BYTES
2782  From..to bits: 16...18
2783  DefaultValue: 0x0
2784  Access type: read-write
2785  Description: It defines the number of read bytes for the extended STIG.
2786 
2787  ENUMs:
2788  MINIMUM: Smallest value
2789  MAXIMUM: Highest possible value
2790 */
2791 #define OSPI_FLASH_COMMAND_CTRL_MEM_NB_OF_STIG_READ_BYTES_W 3U
2792 #define OSPI_FLASH_COMMAND_CTRL_MEM_NB_OF_STIG_READ_BYTES_M 0x00070000U
2793 #define OSPI_FLASH_COMMAND_CTRL_MEM_NB_OF_STIG_READ_BYTES_S 16U
2794 #define OSPI_FLASH_COMMAND_CTRL_MEM_NB_OF_STIG_READ_BYTES_MINIMUM 0x00000000U
2795 #define OSPI_FLASH_COMMAND_CTRL_MEM_NB_OF_STIG_READ_BYTES_MAXIMUM 0x00070000U
2796 /*
2797 
2798  Field: MEM_BANK_ADDR
2799  From..to bits: 20...28
2800  DefaultValue: 0x0
2801  Access type: read-write
2802  Description: The address of the Memory Bank which data will be read from.
2803 
2804  ENUMs:
2805  MINIMUM: Smallest value
2806  MAXIMUM: Highest possible value
2807 */
2808 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_ADDR_W 9U
2809 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_ADDR_M 0x1FF00000U
2810 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_ADDR_S 20U
2811 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_ADDR_MINIMUM 0x00000000U
2812 #define OSPI_FLASH_COMMAND_CTRL_MEM_MEM_BANK_ADDR_MAXIMUM 0x1FF00000U
2813 
2814 
2815 /*-----------------------------------REGISTER------------------------------------
2816  Register name: FLASH_CMD_CTRL
2817  Offset name: OSPI_O_FLASH_CMD_CTRL
2818  Relative address: 0x90
2819  Description: Flash Command Control Register
2820  Default Value: 0x00000000
2821 
2822  Field: CMD_EXEC
2823  From..to bits: 0...0
2824  DefaultValue: 0x0
2825  Access type: write-only
2826  Description: Execute the command.
2827 
2828  ENUMs:
2829  DISABLE: Disable
2830  ENABLE: Enable
2831 */
2832 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC 0x00000001U
2833 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_M 0x00000001U
2834 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_S 0U
2835 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_DISABLE 0x00000000U
2836 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_ENABLE 0x00000001U
2837 /*
2838 
2839  Field: CMD_EXEC_STATUS
2840  From..to bits: 1...1
2841  DefaultValue: 0x0
2842  Access type: read-only
2843  Description: Command execution in progress.
2844 
2845  ENUMs:
2846  DISABLE: Disable
2847  ENABLE: Enable
2848 */
2849 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_STATUS 0x00000002U
2850 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_STATUS_M 0x00000002U
2851 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_STATUS_S 1U
2852 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_STATUS_DISABLE 0x00000000U
2853 #define OSPI_FLASH_CMD_CTRL_CMD_EXEC_STATUS_ENABLE 0x00000002U
2854 /*
2855 
2856  Field: STIG_MEM_BANK_EN
2857  From..to bits: 2...2
2858  DefaultValue: 0x0
2859  Access type: read-write
2860  Description: STIG Memory Bank enable bit.
2861 
2862  ENUMs:
2863  DISABLE: Disable
2864  ENABLE: Enable
2865 */
2866 #define OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN 0x00000004U
2867 #define OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN_M 0x00000004U
2868 #define OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN_S 2U
2869 #define OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN_DISABLE 0x00000000U
2870 #define OSPI_FLASH_CMD_CTRL_STIG_MEM_BANK_EN_ENABLE 0x00000004U
2871 /*
2872 
2873  Field: CMD_GEN_FSM_STATE
2874  From..to bits: 3...6
2875  DefaultValue: 0x0
2876  Access type: read-only
2877  Description: CMD_GEN_FSM_STATE is used to define the "Polling flag":
2878 
2879  If (CMD_GEN_FSM_STATE[6:3] = 0x7 or 0x8 or 0xa or 0xb ) then "Polling_flag"=1
2880 
2881  Usage: In order to make sure a write to external device was done and ended successfully, following condition should be met:
2882 
2883  "Command execution in progress" (FLASH_CMD_CTRL.CMD_EXEC_STATUS) = 0 AND "Polling flag" is '0'.
2884 
2885  Design NOTE: Command gen FSM polling states are:
2886 
2887  CMD_GEN_FSM_STATE == POLL_STATUS_AFTER_WRITE (0x7)
2888 
2889  CMD_GEN_FSM_STATE == POLL_STATUS_AFTER_WRITE2 (0x8)
2890 
2891  CMD_GEN_FSM_STATE == POLL_STATUS_WAIT (0xb)
2892 
2893  CMD_GEN_FSM_STATE == LET_TXFIFO_EMPTY (0xa)
2894 
2895  ENUMs:
2896  IDLE:
2897  SEND_ADDR_BYTES:
2898  STIG_MODE_BYTE:
2899  STIG_DUMMY_BYTES:
2900  SEND_DATA:
2901  SEND_STIG_DATA_LOWER:
2902  SEND_STIG_DATA_UPPER:
2903  POLL_STATUS_AFTER_WRITE:
2904  POLL_STATUS_AFTER_WRITE2:
2905  LET_TXFIFO_EMPTY:
2906  POLL_STATUS_WAIT:
2907  SEND_DATA_PIPE:
2908 */
2909 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_W 4U
2910 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_M 0x00000078U
2911 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_S 3U
2912 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_IDLE 0x00000000U
2913 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_SEND_ADDR_BYTES 0x00000008U
2914 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_STIG_MODE_BYTE 0x00000010U
2915 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_STIG_DUMMY_BYTES 0x00000018U
2916 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_SEND_DATA 0x00000020U
2917 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_SEND_STIG_DATA_LOWER 0x00000028U
2918 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_SEND_STIG_DATA_UPPER 0x00000030U
2919 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_POLL_STATUS_AFTER_WRITE 0x00000038U
2920 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_POLL_STATUS_AFTER_WRITE2 0x00000040U
2921 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_LET_TXFIFO_EMPTY 0x00000050U
2922 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_POLL_STATUS_WAIT 0x00000058U
2923 #define OSPI_FLASH_CMD_CTRL_CMD_GEN_FSM_STATE_SEND_DATA_PIPE 0x00000060U
2924 /*
2925 
2926  Field: NUM_DUMMY_CYCLES
2927  From..to bits: 7...11
2928  DefaultValue: 0x0
2929  Access type: read-write
2930  Description: Number of Dummy cycles: Set to the number of dummy cycles required. This should be setup before triggering the command via the execute field of this register.
2931 
2932  ENUMs:
2933  MINIMUM: Smallest value
2934  MAXIMUM: Highest possible value
2935 */
2936 #define OSPI_FLASH_CMD_CTRL_NUM_DUMMY_CYCLES_W 5U
2937 #define OSPI_FLASH_CMD_CTRL_NUM_DUMMY_CYCLES_M 0x00000F80U
2938 #define OSPI_FLASH_CMD_CTRL_NUM_DUMMY_CYCLES_S 7U
2939 #define OSPI_FLASH_CMD_CTRL_NUM_DUMMY_CYCLES_MINIMUM 0x00000000U
2940 #define OSPI_FLASH_CMD_CTRL_NUM_DUMMY_CYCLES_MAXIMUM 0x00000F80U
2941 /*
2942 
2943  Field: NUM_WR_DATA_BYTES
2944  From..to bits: 12...14
2945  DefaultValue: 0x0
2946  Access type: read-write
2947  Description: Number of Write Data Bytes: Up to 8 Data bytes may be written using this command Set to 0 for 1 byte, 7 for 8 bytes.
2948 
2949  ENUMs:
2950  MINIMUM: Smallest value
2951  MAXIMUM: Highest possible value
2952 */
2953 #define OSPI_FLASH_CMD_CTRL_NUM_WR_DATA_BYTES_W 3U
2954 #define OSPI_FLASH_CMD_CTRL_NUM_WR_DATA_BYTES_M 0x00007000U
2955 #define OSPI_FLASH_CMD_CTRL_NUM_WR_DATA_BYTES_S 12U
2956 #define OSPI_FLASH_CMD_CTRL_NUM_WR_DATA_BYTES_MINIMUM 0x00000000U
2957 #define OSPI_FLASH_CMD_CTRL_NUM_WR_DATA_BYTES_MAXIMUM 0x00007000U
2958 /*
2959 
2960  Field: ENB_WRITE_DATA
2961  From..to bits: 15...15
2962  DefaultValue: 0x0
2963  Access type: read-write
2964  Description: Write Data Enable: Set to 1 if the command specified in the command opcode field requires write data bytes to be sent to the device.
2965 
2966  ENUMs:
2967  DISABLE: Disable
2968  ENABLE: Enable
2969 */
2970 #define OSPI_FLASH_CMD_CTRL_ENB_WRITE_DATA 0x00008000U
2971 #define OSPI_FLASH_CMD_CTRL_ENB_WRITE_DATA_M 0x00008000U
2972 #define OSPI_FLASH_CMD_CTRL_ENB_WRITE_DATA_S 15U
2973 #define OSPI_FLASH_CMD_CTRL_ENB_WRITE_DATA_DISABLE 0x00000000U
2974 #define OSPI_FLASH_CMD_CTRL_ENB_WRITE_DATA_ENABLE 0x00008000U
2975 /*
2976 
2977  Field: NUM_ADDR_BYTES
2978  From..to bits: 16...17
2979  DefaultValue: 0x0
2980  Access type: read-write
2981  Description: Number of Address Bytes: Set to the number of address bytes required (the address itself is programmed in the FLASH COMMAND ADDRESS REGISTERS). This should be setup before triggering the command via bit 0 of this register. 2'b00 : 1 address byte 2'b01 : 2 address bytes 2'b10 : 3 address bytes 2'b11 : 4 address bytes
2982 
2983  ENUMs:
2984  MINIMUM: Smallest value
2985  MAXIMUM: Highest possible value
2986 */
2987 #define OSPI_FLASH_CMD_CTRL_NUM_ADDR_BYTES_W 2U
2988 #define OSPI_FLASH_CMD_CTRL_NUM_ADDR_BYTES_M 0x00030000U
2989 #define OSPI_FLASH_CMD_CTRL_NUM_ADDR_BYTES_S 16U
2990 #define OSPI_FLASH_CMD_CTRL_NUM_ADDR_BYTES_MINIMUM 0x00000000U
2991 #define OSPI_FLASH_CMD_CTRL_NUM_ADDR_BYTES_MAXIMUM 0x00030000U
2992 /*
2993 
2994  Field: ENB_MODE_BIT
2995  From..to bits: 18...18
2996  DefaultValue: 0x0
2997  Access type: read-write
2998  Description: Mode Bit Enable: Set to 1 to ensure the mode bits as defined in the Mode Bit Configuration register are sent following the address bytes.
2999 
3000  ENUMs:
3001  DISABLE: Disable
3002  ENABLE: Enable
3003 */
3004 #define OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT 0x00040000U
3005 #define OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_M 0x00040000U
3006 #define OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_S 18U
3007 #define OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_DISABLE 0x00000000U
3008 #define OSPI_FLASH_CMD_CTRL_ENB_MODE_BIT_ENABLE 0x00040000U
3009 /*
3010 
3011  Field: ENB_COMD_ADDR
3012  From..to bits: 19...19
3013  DefaultValue: 0x0
3014  Access type: read-write
3015  Description: Command Address Enable: Set to 1 if the command specified in bits 31:24 requires an address. This should be setup before triggering the command via writing a 1 to the execute field.
3016 
3017  ENUMs:
3018  DISABLE: Disable
3019  ENABLE: Enable
3020 */
3021 #define OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR 0x00080000U
3022 #define OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR_M 0x00080000U
3023 #define OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR_S 19U
3024 #define OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR_DISABLE 0x00000000U
3025 #define OSPI_FLASH_CMD_CTRL_ENB_COMD_ADDR_ENABLE 0x00080000U
3026 /*
3027 
3028  Field: NUM_RD_DATA_BYTES
3029  From..to bits: 20...22
3030  DefaultValue: 0x0
3031  Access type: read-write
3032  Description: Number of Read Data Bytes: Up to 8 data bytes may be read using this command. Set to 0 for 1 byte and 7 for 8 bytes.
3033 
3034  ENUMs:
3035  MINIMUM: Smallest value
3036  MAXIMUM: Highest possible value
3037 */
3038 #define OSPI_FLASH_CMD_CTRL_NUM_RD_DATA_BYTES_W 3U
3039 #define OSPI_FLASH_CMD_CTRL_NUM_RD_DATA_BYTES_M 0x00700000U
3040 #define OSPI_FLASH_CMD_CTRL_NUM_RD_DATA_BYTES_S 20U
3041 #define OSPI_FLASH_CMD_CTRL_NUM_RD_DATA_BYTES_MINIMUM 0x00000000U
3042 #define OSPI_FLASH_CMD_CTRL_NUM_RD_DATA_BYTES_MAXIMUM 0x00700000U
3043 /*
3044 
3045  Field: ENB_READ_DATA
3046  From..to bits: 23...23
3047  DefaultValue: 0x0
3048  Access type: read-write
3049  Description: Read Data Enable: Set to 1 if the command specified in the command opcode field (bits 31:24) requires read data bytes to be received from the device.
3050 
3051  ENUMs:
3052  DISABLE: Disable
3053  ENABLE: Enable
3054 */
3055 #define OSPI_FLASH_CMD_CTRL_ENB_READ_DATA 0x00800000U
3056 #define OSPI_FLASH_CMD_CTRL_ENB_READ_DATA_M 0x00800000U
3057 #define OSPI_FLASH_CMD_CTRL_ENB_READ_DATA_S 23U
3058 #define OSPI_FLASH_CMD_CTRL_ENB_READ_DATA_DISABLE 0x00000000U
3059 #define OSPI_FLASH_CMD_CTRL_ENB_READ_DATA_ENABLE 0x00800000U
3060 /*
3061 
3062  Field: CMD_OPCODE
3063  From..to bits: 24...31
3064  DefaultValue: 0x0
3065  Access type: read-write
3066  Description: Command Opcode: The command opcode field should be setup before triggering the command. For example, 0x20 maps to SubSector Erase. Writing to the execute field (bit 0) of this register launches the command. NOTE : Using this approach to issue commands to the device will make use of the instruction type of the device instruction configuration register. If this field is set to 2'b00, then the command opcode, command address, command dummy bytes and command data will all be transferred in a serial fashion. If this field is set to 2'b01, then the command opcode, command address, command dummy bytes and command data will all be transferred in parallel using DQ0 and DQ1 pins. If this field is set to 2'b10, then the command opcode, command address, command dummy bytes and command data will all be transferred in parallel using DQ0, DQ1, DQ2 and DQ3 pins.
3067 
3068  ENUMs:
3069  MINIMUM: Smallest value
3070  MAXIMUM: Highest possible value
3071 */
3072 #define OSPI_FLASH_CMD_CTRL_CMD_OPCODE_W 8U
3073 #define OSPI_FLASH_CMD_CTRL_CMD_OPCODE_M 0xFF000000U
3074 #define OSPI_FLASH_CMD_CTRL_CMD_OPCODE_S 24U
3075 #define OSPI_FLASH_CMD_CTRL_CMD_OPCODE_MINIMUM 0x00000000U
3076 #define OSPI_FLASH_CMD_CTRL_CMD_OPCODE_MAXIMUM 0xFF000000U
3077 
3078 
3079 /*-----------------------------------REGISTER------------------------------------
3080  Register name: FLASH_CMD_ADDR
3081  Offset name: OSPI_O_FLASH_CMD_ADDR
3082  Relative address: 0x94
3083  Description: Flash Command Address Register
3084  Default Value: 0x00000000
3085 
3086  Field: ADDR
3087  From..to bits: 0...31
3088  DefaultValue: 0x0
3089  Access type: read-write
3090  Description: Command Address: This should be setup before triggering the command with execute field (bit 0) of the Flash Command Control register. It is the address used by the command specified in the opcode field (bits 31:24) of the Flash Command Control register.
3091 
3092  ENUMs:
3093  MINIMUM: Smallest value
3094  MAXIMUM: Highest possible value
3095 */
3096 #define OSPI_FLASH_CMD_ADDR_ADDR_W 32U
3097 #define OSPI_FLASH_CMD_ADDR_ADDR_M 0xFFFFFFFFU
3098 #define OSPI_FLASH_CMD_ADDR_ADDR_S 0U
3099 #define OSPI_FLASH_CMD_ADDR_ADDR_MINIMUM 0x00000000U
3100 #define OSPI_FLASH_CMD_ADDR_ADDR_MAXIMUM 0xFFFFFFFFU
3101 
3102 
3103 /*-----------------------------------REGISTER------------------------------------
3104  Register name: FLASH_RD_DATA_LOWER
3105  Offset name: OSPI_O_FLASH_RD_DATA_LOWER
3106  Relative address: 0xA0
3107  Description: Flash Command Read Data Register (Lower)
3108  Default Value: 0x00000000
3109 
3110  Field: DATA
3111  From..to bits: 0...31
3112  DefaultValue: 0x0
3113  Access type: read-only
3114  Description: This is the data that is returned by the flash device for any status or configuration read operation carried out by triggering the event in the control register. The register will be valid when the polling bit in the control register is low.
3115 
3116  ENUMs:
3117  MINIMUM: Smallest value
3118  MAXIMUM: Highest possible value
3119 */
3120 #define OSPI_FLASH_RD_DATA_LOWER_DATA_W 32U
3121 #define OSPI_FLASH_RD_DATA_LOWER_DATA_M 0xFFFFFFFFU
3122 #define OSPI_FLASH_RD_DATA_LOWER_DATA_S 0U
3123 #define OSPI_FLASH_RD_DATA_LOWER_DATA_MINIMUM 0x00000000U
3124 #define OSPI_FLASH_RD_DATA_LOWER_DATA_MAXIMUM 0xFFFFFFFFU
3125 
3126 
3127 /*-----------------------------------REGISTER------------------------------------
3128  Register name: FLASH_RD_DATA_UPPER
3129  Offset name: OSPI_O_FLASH_RD_DATA_UPPER
3130  Relative address: 0xA4
3131  Description: Flash Command Read Data Register (Upper)
3132  Default Value: 0x00000000
3133 
3134  Field: DATA
3135  From..to bits: 0...31
3136  DefaultValue: 0x0
3137  Access type: read-only
3138  Description: This is the data that is returned by the FLASH device for any status or configuration read operation carried out by triggering the event in the control register. The register will be valid when the polling bit in the control register is low.
3139 
3140  ENUMs:
3141  MINIMUM: Smallest value
3142  MAXIMUM: Highest possible value
3143 */
3144 #define OSPI_FLASH_RD_DATA_UPPER_DATA_W 32U
3145 #define OSPI_FLASH_RD_DATA_UPPER_DATA_M 0xFFFFFFFFU
3146 #define OSPI_FLASH_RD_DATA_UPPER_DATA_S 0U
3147 #define OSPI_FLASH_RD_DATA_UPPER_DATA_MINIMUM 0x00000000U
3148 #define OSPI_FLASH_RD_DATA_UPPER_DATA_MAXIMUM 0xFFFFFFFFU
3149 
3150 
3151 /*-----------------------------------REGISTER------------------------------------
3152  Register name: FLASH_WR_DATA_LOWER
3153  Offset name: OSPI_O_FLASH_WR_DATA_LOWER
3154  Relative address: 0xA8
3155  Description: Flash Command Write Data Register (Lower)
3156  Default Value: 0x00000000
3157 
3158  Field: DATA
3159  From..to bits: 0...31
3160  DefaultValue: 0x0
3161  Access type: read-write
3162  Description: Command Write Data Lower Byte: This is the command write data lower byte. This should be setup before triggering the command with execute field (bit 0) of the Flash Command Control register. It is the data that is to be written to the flash for any status or configuration write operation carried out by triggering the event in the Flash Command Control register.
3163 
3164  ENUMs:
3165  MINIMUM: Smallest value
3166  MAXIMUM: Highest possible value
3167 */
3168 #define OSPI_FLASH_WR_DATA_LOWER_DATA_W 32U
3169 #define OSPI_FLASH_WR_DATA_LOWER_DATA_M 0xFFFFFFFFU
3170 #define OSPI_FLASH_WR_DATA_LOWER_DATA_S 0U
3171 #define OSPI_FLASH_WR_DATA_LOWER_DATA_MINIMUM 0x00000000U
3172 #define OSPI_FLASH_WR_DATA_LOWER_DATA_MAXIMUM 0xFFFFFFFFU
3173 
3174 
3175 /*-----------------------------------REGISTER------------------------------------
3176  Register name: FLASH_WR_DATA_UPPER
3177  Offset name: OSPI_O_FLASH_WR_DATA_UPPER
3178  Relative address: 0xAC
3179  Description: Flash Command Write Data Register (Upper)
3180  Default Value: 0x00000000
3181 
3182  Field: DATA
3183  From..to bits: 0...31
3184  DefaultValue: 0x0
3185  Access type: read-write
3186  Description: Command Write Data Upper Byte: This is the command write data upper byte. This should be setup before triggering the command with execute field (bit 0) of the Flash Command Control register. It is the data that is to be written to the flash for any status or configuration write operation carried out by triggering the event in the Flash Command Control register.
3187 
3188  ENUMs:
3189  MINIMUM: Smallest value
3190  MAXIMUM: Highest possible value
3191 */
3192 #define OSPI_FLASH_WR_DATA_UPPER_DATA_W 32U
3193 #define OSPI_FLASH_WR_DATA_UPPER_DATA_M 0xFFFFFFFFU
3194 #define OSPI_FLASH_WR_DATA_UPPER_DATA_S 0U
3195 #define OSPI_FLASH_WR_DATA_UPPER_DATA_MINIMUM 0x00000000U
3196 #define OSPI_FLASH_WR_DATA_UPPER_DATA_MAXIMUM 0xFFFFFFFFU
3197 
3198 
3199 /*-----------------------------------REGISTER------------------------------------
3200  Register name: POLLING_FLASH_STATUS
3201  Offset name: OSPI_O_POLLING_FLASH_STATUS
3202  Relative address: 0xB0
3203  Description: Polling Flash Status Register
3204  Default Value: 0x00000000
3205 
3206  Field: DEVICE_STATUS
3207  From..to bits: 0...7
3208  DefaultValue: 0x0
3209  Access type: read-only
3210  Description: Defines actual Status Register of Device
3211 
3212  ENUMs:
3213  MINIMUM: Smallest value
3214  MAXIMUM: Highest possible value
3215 */
3216 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_W 8U
3217 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_M 0x000000FFU
3218 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_S 0U
3219 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_MINIMUM 0x00000000U
3220 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_MAXIMUM 0x000000FFU
3221 /*
3222 
3223  Field: DEVICE_STATUS_VALID
3224  From..to bits: 8...8
3225  DefaultValue: 0x0
3226  Access type: read-only
3227  Description: Device Status Valid: This should be set when value in bits from 7 to 0 is valid.
3228 
3229  ENUMs:
3230  DISABLE: Disable
3231  ENABLE: Enable
3232 */
3233 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_VALID 0x00000100U
3234 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_VALID_M 0x00000100U
3235 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_VALID_S 8U
3236 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_VALID_DISABLE 0x00000000U
3237 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_VALID_ENABLE 0x00000100U
3238 /*
3239 
3240  Field: DEVICE_STATUS_NB_DUMMY
3241  From..to bits: 16...20
3242  DefaultValue: 0x0
3243  Access type: read-write
3244  Description: Number of dummy cycles for auto-polling
3245 
3246  ENUMs:
3247  MINIMUM: Smallest value
3248  MAXIMUM: Highest possible value
3249 */
3250 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_NB_DUMMY_W 5U
3251 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_NB_DUMMY_M 0x001F0000U
3252 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_NB_DUMMY_S 16U
3253 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_NB_DUMMY_MINIMUM 0x00000000U
3254 #define OSPI_POLLING_FLASH_STATUS_DEVICE_STATUS_NB_DUMMY_MAXIMUM 0x001F0000U
3255 
3256 
3257 /*-----------------------------------REGISTER------------------------------------
3258  Register name: PHY_CONFIGURATION
3259  Offset name: OSPI_O_PHY_CONFIGURATION
3260  Relative address: 0xB4
3261  Description: PHY Configuration Register
3262  Default Value: 0x40000000
3263 
3264  Field: PHY_CONFIG_RX_DLL_DELAY
3265  From..to bits: 0...6
3266  DefaultValue: 0x0
3267  Access type: read-write
3268  Description: RX DLL Delay: This field determines the number of delay elements to insert on data path between ref_clk and rx_dll_clk.
3269 
3270  ENUMs:
3271  MINIMUM: Smallest value
3272  MAXIMUM: Highest possible value
3273 */
3274 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_DELAY_W 7U
3275 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_DELAY_M 0x0000007FU
3276 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_DELAY_S 0U
3277 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_DELAY_MINIMUM 0x00000000U
3278 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_DELAY_MAXIMUM 0x0000007FU
3279 /*
3280 
3281  Field: PHY_CONFIG_TX_DLL_DELAY
3282  From..to bits: 16...22
3283  DefaultValue: 0x0
3284  Access type: read-write
3285  Description: TX DLL Delay: This field determines the number of delay elements to insert on data path between ref_clk and spi_clk.
3286 
3287  ENUMs:
3288  MINIMUM: Smallest value
3289  MAXIMUM: Highest possible value
3290 */
3291 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_TX_DLL_DELAY_W 7U
3292 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_TX_DLL_DELAY_M 0x007F0000U
3293 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_TX_DLL_DELAY_S 16U
3294 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_TX_DLL_DELAY_MINIMUM 0x00000000U
3295 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_TX_DLL_DELAY_MAXIMUM 0x007F0000U
3296 /*
3297 
3298  Field: PHY_CONFIG_RX_DLL_BYPASS
3299  From..to bits: 29...29
3300  DefaultValue: 0x0
3301  Access type: read-write
3302  Description: RX DLL Bypass: This field determines id RX DLL is bypassed.
3303 
3304  ENUMs:
3305  DISABLE: Disable
3306  ENABLE: Enable
3307 */
3308 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_BYPASS 0x20000000U
3309 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_BYPASS_M 0x20000000U
3310 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_BYPASS_S 29U
3311 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_BYPASS_DISABLE 0x00000000U
3312 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RX_DLL_BYPASS_ENABLE 0x20000000U
3313 /*
3314 
3315  Field: PHY_CONFIG_RESET
3316  From..to bits: 30...30
3317  DefaultValue: 0x1
3318  Access type: write-only
3319  Description: DLL Reset bit: This bit is used for reset of Delay Lines by software.
3320 
3321  ENUMs:
3322  DISABLE: Disable
3323  ENABLE: Enable
3324 */
3325 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESET 0x40000000U
3326 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESET_M 0x40000000U
3327 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESET_S 30U
3328 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESET_DISABLE 0x00000000U
3329 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESET_ENABLE 0x40000000U
3330 /*
3331 
3332  Field: PHY_CONFIG_RESYNC
3333  From..to bits: 31...31
3334  DefaultValue: 0x0
3335  Access type: write-only
3336  Description: This bit is used for re-synchronisation delay lines to update them with values from TX DLL Delay and RX DLL Delay fields.
3337 
3338  ENUMs:
3339  DISABLE: Disable
3340  ENABLE: Enable
3341 */
3342 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESYNC 0x80000000U
3343 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESYNC_M 0x80000000U
3344 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESYNC_S 31U
3345 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESYNC_DISABLE 0x00000000U
3346 #define OSPI_PHY_CONFIGURATION_PHY_CONFIG_RESYNC_ENABLE 0x80000000U
3347 
3348 
3349 /*-----------------------------------REGISTER------------------------------------
3350  Register name: PHY_MASTER_CONTROL
3351  Offset name: OSPI_O_PHY_MASTER_CONTROL
3352  Relative address: 0xB8
3353  Description: PHY DLL Master Control Register
3354  Default Value: 0x00800000
3355 
3356  Field: PHY_MASTER_INITIAL_DELAY
3357  From..to bits: 0...6
3358  DefaultValue: 0x0
3359  Access type: read-write
3360  Description: This value is the initial delay value for the DLL.
3361 
3362  ENUMs:
3363  MINIMUM: Smallest value
3364  MAXIMUM: Highest possible value
3365 */
3366 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_INITIAL_DELAY_W 7U
3367 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_INITIAL_DELAY_M 0x0000007FU
3368 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_INITIAL_DELAY_S 0U
3369 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_INITIAL_DELAY_MINIMUM 0x00000000U
3370 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_INITIAL_DELAY_MAXIMUM 0x0000007FU
3371 /*
3372 
3373  Field: PHY_MASTER_NB_INDICATIONS
3374  From..to bits: 16...18
3375  DefaultValue: 0x0
3376  Access type: read-write
3377  Description: Holds the number of consecutive increment or decrement indications.
3378 
3379  ENUMs:
3380  MINIMUM: Smallest value
3381  MAXIMUM: Highest possible value
3382 */
3383 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_NB_INDICATIONS_W 3U
3384 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_NB_INDICATIONS_M 0x00070000U
3385 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_NB_INDICATIONS_S 16U
3386 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_NB_INDICATIONS_MINIMUM 0x00000000U
3387 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_NB_INDICATIONS_MAXIMUM 0x00070000U
3388 /*
3389 
3390  Field: PHY_MASTER_PHASE_DETECT_SELECTOR
3391  From..to bits: 20...22
3392  DefaultValue: 0x0
3393  Access type: read-write
3394  Description: Selects the number of delay elements to be inserted between the phase detect flip-flops.
3395 
3396  ENUMs:
3397  MINIMUM: Smallest value
3398  MAXIMUM: Highest possible value
3399 */
3400 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_PHASE_DETECT_SELECTOR_W 3U
3401 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_PHASE_DETECT_SELECTOR_M 0x00700000U
3402 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_PHASE_DETECT_SELECTOR_S 20U
3403 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_PHASE_DETECT_SELECTOR_MINIMUM 0x00000000U
3404 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_PHASE_DETECT_SELECTOR_MAXIMUM 0x00700000U
3405 /*
3406 
3407  Field: PHY_MASTER_BYPASS_MODE
3408  From..to bits: 23...23
3409  DefaultValue: 0x1
3410  Access type: read-write
3411  Description: Controls the bypass mode of the master and slave DLLs.
3412 
3413  ENUMs:
3414  DISABLE: Disable
3415  ENABLE: Enable
3416 */
3417 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_BYPASS_MODE 0x00800000U
3418 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_BYPASS_MODE_M 0x00800000U
3419 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_BYPASS_MODE_S 23U
3420 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_BYPASS_MODE_DISABLE 0x00000000U
3421 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_BYPASS_MODE_ENABLE 0x00800000U
3422 /*
3423 
3424  Field: PHY_MASTER_LOCK_MODE
3425  From..to bits: 24...24
3426  DefaultValue: 0x0
3427  Access type: read-write
3428  Description: Determines if the master delay line locks on a full cycle or half cycle of delay.
3429 
3430  ENUMs:
3431  DISABLE: Disable
3432  ENABLE: Enable
3433 */
3434 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_LOCK_MODE 0x01000000U
3435 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_LOCK_MODE_M 0x01000000U
3436 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_LOCK_MODE_S 24U
3437 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_LOCK_MODE_DISABLE 0x00000000U
3438 #define OSPI_PHY_MASTER_CONTROL_PHY_MASTER_LOCK_MODE_ENABLE 0x01000000U
3439 
3440 
3441 /*-----------------------------------REGISTER------------------------------------
3442  Register name: DLL_OBSERVABLE_LOWER
3443  Offset name: OSPI_O_DLL_OBSERVABLE_LOWER
3444  Relative address: 0xBC
3445  Description: DLL Observable Register Lower
3446  Default Value: 0x00000000
3447 
3448  Field: DLL_OBSERVABLE_LOWER_DLL_LOCK
3449  From..to bits: 0...0
3450  DefaultValue: 0x0
3451  Access type: read-only
3452  Description: Indicates status of DLL.
3453 
3454  ENUMs:
3455  DISABLE: Disable
3456  ENABLE: Enable
3457 */
3458 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK 0x00000001U
3459 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_M 0x00000001U
3460 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_S 0U
3461 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_DISABLE 0x00000000U
3462 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_ENABLE 0x00000001U
3463 /*
3464 
3465  Field: DLL_OBSERVABLE_LOWER_LOCK_MODE
3466  From..to bits: 1...2
3467  DefaultValue: 0x0
3468  Access type: read-only
3469  Description: Defines the mode in which the DLL has achieved the lock.
3470 
3471  ENUMs:
3472  MINIMUM: Smallest value
3473  MAXIMUM: Highest possible value
3474 */
3475 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_MODE_W 2U
3476 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_MODE_M 0x00000006U
3477 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_MODE_S 1U
3478 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_MODE_MINIMUM 0x00000000U
3479 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_MODE_MAXIMUM 0x00000006U
3480 /*
3481 
3482  Field: DLL_OBSERVABLE_LOWER_UNLOCK_COUNTER
3483  From..to bits: 3...7
3484  DefaultValue: 0x0
3485  Access type: read-only
3486  Description: Reports the number of increments or decrements required for the master DLL to complete the locking process.
3487 
3488  ENUMs:
3489  MINIMUM: Smallest value
3490  MAXIMUM: Highest possible value
3491 */
3492 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_UNLOCK_COUNTER_W 5U
3493 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_UNLOCK_COUNTER_M 0x000000F8U
3494 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_UNLOCK_COUNTER_S 3U
3495 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_UNLOCK_COUNTER_MINIMUM 0x00000000U
3496 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_UNLOCK_COUNTER_MAXIMUM 0x000000F8U
3497 /*
3498 
3499  Field: DLL_OBSERVABLE_LOWER_LOCK_VALUE
3500  From..to bits: 8...14
3501  DefaultValue: 0x0
3502  Access type: read-only
3503  Description: Reports the DLL encoder value from the master DLL to the slave DLLs.
3504 
3505  ENUMs:
3506  MINIMUM: Smallest value
3507  MAXIMUM: Highest possible value
3508 */
3509 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_VALUE_W 7U
3510 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_VALUE_M 0x00007F00U
3511 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_VALUE_S 8U
3512 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_VALUE_MINIMUM 0x00000000U
3513 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOCK_VALUE_MAXIMUM 0x00007F00U
3514 /*
3515 
3516  Field: DLL_OBSERVABLE_LOWER_LOOPBACK_LOCK
3517  From..to bits: 15...15
3518  DefaultValue: 0x0
3519  Access type: read-only
3520  Description: This bit indicates that lock of loopback is done.
3521 
3522  ENUMs:
3523  DISABLE: Disable
3524  ENABLE: Enable
3525 */
3526 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOOPBACK_LOCK 0x00008000U
3527 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOOPBACK_LOCK_M 0x00008000U
3528 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOOPBACK_LOCK_S 15U
3529 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOOPBACK_LOCK_DISABLE 0x00000000U
3530 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_LOOPBACK_LOCK_ENABLE 0x00008000U
3531 /*
3532 
3533  Field: DLL_OBSERVABLE_LOWER_DLL_LOCK_DEC
3534  From..to bits: 16...23
3535  DefaultValue: 0x0
3536  Access type: read-only
3537  Description: Holds the state of the cumulative dll_lock_dec register.
3538 
3539  ENUMs:
3540  MINIMUM: Smallest value
3541  MAXIMUM: Highest possible value
3542 */
3543 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_DEC_W 8U
3544 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_DEC_M 0x00FF0000U
3545 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_DEC_S 16U
3546 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_DEC_MINIMUM 0x00000000U
3547 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_DEC_MAXIMUM 0x00FF0000U
3548 /*
3549 
3550  Field: DLL_OBSERVABLE_LOWER_DLL_LOCK_INC
3551  From..to bits: 24...31
3552  DefaultValue: 0x0
3553  Access type: read-only
3554  Description: Holds the state of the cumulative dll_lock_inc register.
3555 
3556  ENUMs:
3557  MINIMUM: Smallest value
3558  MAXIMUM: Highest possible value
3559 */
3560 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_INC_W 8U
3561 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_INC_M 0xFF000000U
3562 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_INC_S 24U
3563 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_INC_MINIMUM 0x00000000U
3564 #define OSPI_DLL_OBSERVABLE_LOWER_DLL_OBSERVABLE_LOWER_DLL_LOCK_INC_MAXIMUM 0xFF000000U
3565 
3566 
3567 /*-----------------------------------REGISTER------------------------------------
3568  Register name: DLL_OBSERVABLE_UPPER
3569  Offset name: OSPI_O_DLL_OBSERVABLE_UPPER
3570  Relative address: 0xC0
3571  Description: DLL Observable Register Upper
3572  Default Value: 0x00000000
3573 
3574  Field: DLL_OBSERVABLE__UPPER_RX_DECODER_OUTPUT
3575  From..to bits: 0...6
3576  DefaultValue: 0x0
3577  Access type: read-only
3578  Description: Holds the encoded value for the RX delay line for this slice.
3579 
3580  ENUMs:
3581  MINIMUM: Smallest value
3582  MAXIMUM: Highest possible value
3583 */
3584 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE__UPPER_RX_DECODER_OUTPUT_W 7U
3585 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE__UPPER_RX_DECODER_OUTPUT_M 0x0000007FU
3586 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE__UPPER_RX_DECODER_OUTPUT_S 0U
3587 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE__UPPER_RX_DECODER_OUTPUT_MINIMUM 0x00000000U
3588 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE__UPPER_RX_DECODER_OUTPUT_MAXIMUM 0x0000007FU
3589 /*
3590 
3591  Field: DLL_OBSERVABLE_UPPER_TX_DECODER_OUTPUT
3592  From..to bits: 16...22
3593  DefaultValue: 0x0
3594  Access type: read-only
3595  Description: Holds the encoded value for the TX delay line for this slice.
3596 
3597  ENUMs:
3598  MINIMUM: Smallest value
3599  MAXIMUM: Highest possible value
3600 */
3601 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE_UPPER_TX_DECODER_OUTPUT_W 7U
3602 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE_UPPER_TX_DECODER_OUTPUT_M 0x007F0000U
3603 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE_UPPER_TX_DECODER_OUTPUT_S 16U
3604 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE_UPPER_TX_DECODER_OUTPUT_MINIMUM 0x00000000U
3605 #define OSPI_DLL_OBSERVABLE_UPPER_DLL_OBSERVABLE_UPPER_TX_DECODER_OUTPUT_MAXIMUM 0x007F0000U
3606 
3607 
3608 /*-----------------------------------REGISTER------------------------------------
3609  Register name: OPCODE_EXT_LOWER
3610  Offset name: OSPI_O_OPCODE_EXT_LOWER
3611  Relative address: 0xE0
3612  Description: Opcode Extension Register (Lower)
3613  Default Value: 0x13EDFA00
3614 
3615  Field: EXT_STIG_OPCODE
3616  From..to bits: 0...7
3617  DefaultValue: 0x0
3618  Access type: read-write
3619  Description: Supplement byte of any STIG Opcode
3620 
3621  ENUMs:
3622  MINIMUM: Smallest value
3623  MAXIMUM: Highest possible value
3624 */
3625 #define OSPI_OPCODE_EXT_LOWER_EXT_STIG_OPCODE_W 8U
3626 #define OSPI_OPCODE_EXT_LOWER_EXT_STIG_OPCODE_M 0x000000FFU
3627 #define OSPI_OPCODE_EXT_LOWER_EXT_STIG_OPCODE_S 0U
3628 #define OSPI_OPCODE_EXT_LOWER_EXT_STIG_OPCODE_MINIMUM 0x00000000U
3629 #define OSPI_OPCODE_EXT_LOWER_EXT_STIG_OPCODE_MAXIMUM 0x000000FFU
3630 /*
3631 
3632  Field: EXT_POLL_OPCODE
3633  From..to bits: 8...15
3634  DefaultValue: 0xFA
3635  Access type: read-write
3636  Description: Supplement byte of any Polling Opcode
3637 
3638  ENUMs:
3639  MINIMUM: Smallest value
3640  MAXIMUM: Highest possible value
3641 */
3642 #define OSPI_OPCODE_EXT_LOWER_EXT_POLL_OPCODE_W 8U
3643 #define OSPI_OPCODE_EXT_LOWER_EXT_POLL_OPCODE_M 0x0000FF00U
3644 #define OSPI_OPCODE_EXT_LOWER_EXT_POLL_OPCODE_S 8U
3645 #define OSPI_OPCODE_EXT_LOWER_EXT_POLL_OPCODE_MINIMUM 0x00000000U
3646 #define OSPI_OPCODE_EXT_LOWER_EXT_POLL_OPCODE_MAXIMUM 0x0000FF00U
3647 /*
3648 
3649  Field: EXT_WRITE_OPCODE
3650  From..to bits: 16...23
3651  DefaultValue: 0xED
3652  Access type: read-write
3653  Description: Supplement byte of any Write Opcode
3654 
3655  ENUMs:
3656  MINIMUM: Smallest value
3657  MAXIMUM: Highest possible value
3658 */
3659 #define OSPI_OPCODE_EXT_LOWER_EXT_WRITE_OPCODE_W 8U
3660 #define OSPI_OPCODE_EXT_LOWER_EXT_WRITE_OPCODE_M 0x00FF0000U
3661 #define OSPI_OPCODE_EXT_LOWER_EXT_WRITE_OPCODE_S 16U
3662 #define OSPI_OPCODE_EXT_LOWER_EXT_WRITE_OPCODE_MINIMUM 0x00000000U
3663 #define OSPI_OPCODE_EXT_LOWER_EXT_WRITE_OPCODE_MAXIMUM 0x00FF0000U
3664 /*
3665 
3666  Field: EXT_READ_OPCODE
3667  From..to bits: 24...31
3668  DefaultValue: 0x13
3669  Access type: read-write
3670  Description: Supplement byte of any Read Opcode
3671 
3672  ENUMs:
3673  MINIMUM: Smallest value
3674  MAXIMUM: Highest possible value
3675 */
3676 #define OSPI_OPCODE_EXT_LOWER_EXT_READ_OPCODE_W 8U
3677 #define OSPI_OPCODE_EXT_LOWER_EXT_READ_OPCODE_M 0xFF000000U
3678 #define OSPI_OPCODE_EXT_LOWER_EXT_READ_OPCODE_S 24U
3679 #define OSPI_OPCODE_EXT_LOWER_EXT_READ_OPCODE_MINIMUM 0x00000000U
3680 #define OSPI_OPCODE_EXT_LOWER_EXT_READ_OPCODE_MAXIMUM 0xFF000000U
3681 
3682 
3683 /*-----------------------------------REGISTER------------------------------------
3684  Register name: OPCODE_EXT_UPPER
3685  Offset name: OSPI_O_OPCODE_EXT_UPPER
3686  Relative address: 0xE4
3687  Description: Opcode Extension Register (Upper)
3688  Default Value: 0x06F90000
3689 
3690  Field: EXT_WEL_OPCODE
3691  From..to bits: 16...23
3692  DefaultValue: 0xF9
3693  Access type: read-write
3694  Description: Supplement byte of any WEL Opcode
3695 
3696  ENUMs:
3697  MINIMUM: Smallest value
3698  MAXIMUM: Highest possible value
3699 */
3700 #define OSPI_OPCODE_EXT_UPPER_EXT_WEL_OPCODE_W 8U
3701 #define OSPI_OPCODE_EXT_UPPER_EXT_WEL_OPCODE_M 0x00FF0000U
3702 #define OSPI_OPCODE_EXT_UPPER_EXT_WEL_OPCODE_S 16U
3703 #define OSPI_OPCODE_EXT_UPPER_EXT_WEL_OPCODE_MINIMUM 0x00000000U
3704 #define OSPI_OPCODE_EXT_UPPER_EXT_WEL_OPCODE_MAXIMUM 0x00FF0000U
3705 /*
3706 
3707  Field: WEL_OPCODE
3708  From..to bits: 24...31
3709  DefaultValue: 0x6
3710  Access type: read-write
3711  Description: First byte of any WEL Opcode
3712 
3713  ENUMs:
3714  MINIMUM: Smallest value
3715  MAXIMUM: Highest possible value
3716 */
3717 #define OSPI_OPCODE_EXT_UPPER_WEL_OPCODE_W 8U
3718 #define OSPI_OPCODE_EXT_UPPER_WEL_OPCODE_M 0xFF000000U
3719 #define OSPI_OPCODE_EXT_UPPER_WEL_OPCODE_S 24U
3720 #define OSPI_OPCODE_EXT_UPPER_WEL_OPCODE_MINIMUM 0x00000000U
3721 #define OSPI_OPCODE_EXT_UPPER_WEL_OPCODE_MAXIMUM 0xFF000000U
3722 
3723 
3724 /*-----------------------------------REGISTER------------------------------------
3725  Register name: MODULE_ID
3726  Offset name: OSPI_O_MODULE_ID
3727  Relative address: 0xFC
3728  Description: Module ID Register
3729  Default Value: 0x04000300
3730 
3731  Field: CONF
3732  From..to bits: 0...1
3733  DefaultValue: 0x0
3734  Access type: read-only
3735  Description: Configuration ID number: 0 : OCTAL + PHY Configuration 1 : OCTAL Configuration 2 : QUAD + PHY Configuration 3 : QUAD Configuration
3736 
3737  ENUMs:
3738  MINIMUM: Smallest value
3739  MAXIMUM: Highest possible value
3740 */
3741 #define OSPI_MODULE_ID_CONF_W 2U
3742 #define OSPI_MODULE_ID_CONF_M 0x00000003U
3743 #define OSPI_MODULE_ID_CONF_S 0U
3744 #define OSPI_MODULE_ID_CONF_MINIMUM 0x00000000U
3745 #define OSPI_MODULE_ID_CONF_MAXIMUM 0x00000003U
3746 /*
3747 
3748  Field: MODULE_ID
3749  From..to bits: 8...23
3750  DefaultValue: 0x3
3751  Access type: read-only
3752  Description: Module/Revision ID number
3753 
3754  ENUMs:
3755  MINIMUM: Smallest value
3756  MAXIMUM: Highest possible value
3757 */
3758 #define OSPI_MODULE_ID_MODULE_ID_W 16U
3759 #define OSPI_MODULE_ID_MODULE_ID_M 0x00FFFF00U
3760 #define OSPI_MODULE_ID_MODULE_ID_S 8U
3761 #define OSPI_MODULE_ID_MODULE_ID_MINIMUM 0x00000000U
3762 #define OSPI_MODULE_ID_MODULE_ID_MAXIMUM 0x00FFFF00U
3763 /*
3764 
3765  Field: FIX_PATCH
3766  From..to bits: 24...31
3767  DefaultValue: 0x4
3768  Access type: read-only
3769  Description: Fix/path number related to revision described by 3 LSBs of this register
3770 
3771  ENUMs:
3772  MINIMUM: Smallest value
3773  MAXIMUM: Highest possible value
3774 */
3775 #define OSPI_MODULE_ID_FIX_PATCH_W 8U
3776 #define OSPI_MODULE_ID_FIX_PATCH_M 0xFF000000U
3777 #define OSPI_MODULE_ID_FIX_PATCH_S 24U
3778 #define OSPI_MODULE_ID_FIX_PATCH_MINIMUM 0x00000000U
3779 #define OSPI_MODULE_ID_FIX_PATCH_MAXIMUM 0xFF000000U
3780 
3781 #endif /* __HW_OSPI_H__*/