cfg
Module Instance | Base Address | Register Address |
---|---|---|
qspiregs | 0xFF705000 | 0xFF705000 |
Offset: 0x0
Access: RW
Bit Fields | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
idle RO 0x0 |
Reserved |
bauddiv RW 0xF |
enterxipimm RW 0x0 |
enterxipnextrd RW 0x0 |
enahbremap RW 0x0 |
||||||||||
15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
endma RW 0x0 |
wp RW 0x0 |
percslines RW 0x0 |
perseldec RW 0x0 |
enlegacyip RW 0x0 |
endiracc RW 0x0 |
Reserved |
selclkphase RW 0x0 |
selclkpol RW 0x0 |
en RW 0x0 |
cfg Fields
Bit | Name | Description | Access | Reset | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
31 | 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.
|
RO | 0x0 | ||||||||||||||||||||||||||||||||||
22:19 | bauddiv | SPI baud rate = ref_clk / (baud_rate_divisor)
|
RW | 0xF | ||||||||||||||||||||||||||||||||||
18 | enterxipimm | If XIP is enabled, then setting to disabled will cause the controller to exit XIP mode on the next READ instruction. If XIP is disabled, then setting enable will 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.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
17 | enterxipnextrd | If XIP is enabled, then setting to disabled will cause the controller to exit XIP mode on the next READ instruction. If XIP is disabled, then setting to enabled 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.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
16 | enahbremap | (Direct Access Mode Only) When enabled, 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.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
15 | endma | Allows DMA handshaking mode. When enabled the QSPI will trigger DMA transfer requests via the DMA peripheral interface.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
14 | wp | This bit controls the write protect pin of the flash devices. The signal qspi_mo2_wpn needs to be resynchronized to the generated memory clock as necessary.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
13:10 | percslines | Peripheral chip select line output decode type. As per perseldec, if perseldec = 0, the decode is select 1 of 4 decoding on signals, qspi_n_ss_out[3:0], The asserted decode line goes to 0. If perseldec = 1, the signals qspi_n_ss_out[3:0] require an external 4 to 16 decoder. |
RW | 0x0 | ||||||||||||||||||||||||||||||||||
9 | perseldec | Select between '1 of 4 selects' or 'external 4-to-16 decode'. The qspi_n_ss_out[3:0] output signals are controlled.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
8 | enlegacyip | This bit can select the Direct Access Controller/Indirect Access Controller or legacy mode.If legacy mode is selected, 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, byte transfers of 4, 2 or 1 are permitted and controlled via the HSIZE input.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
7 | endiracc | If disabled, the Direct Access Controller becomes inactive once the current transfer of the data word (FF_W) is complete. When the Direct Access Controller and Indirect Access Controller are both disabled, all AHB requests are completed with an error response.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
2 | selclkphase | Selects whether the clock is in an active or inactive phase outside the SPI word.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
1 | selclkpol | Controls spiclk modes of operation.
|
RW | 0x0 | ||||||||||||||||||||||||||||||||||
0 | en | If this bit is clear, the QSPI finishes the current transfer of the data word (FF_W) and stops sending. When this bit is set to 1, the QSPI is enabled. If the QSPI is enabled and qspi_n_mo_en=1, then the QSPI is able to initiate transfers on the bus. If the QSPI is enabled and qspi_n_mo_en = 0, all output enables are inactive and all pins are set to input mode.
|
RW | 0x0 |