cfg

Module Instance Base Address Register Address
qspiregs 0xFF705000 0xFF705000

Offset: 0x0

Access: RW

Important: To prevent indeterminate system behavior, reserved areas of memory must not be accessed by software or hardware. Any area of the memory map that is not explicitly defined as a register space or accessible memory is considered reserved.
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.

Value Description
0x1 Idle Mode
0x0 Non-Idle Mode
RO 0x0
22:19 bauddiv

SPI baud rate = ref_clk / (baud_rate_divisor)

Value Description
0x0 Baud Rate Div/2
0x1 Baud Rate Div/4
0x2 Baud Rate Div/6
0x3 Baud Rate Div/8
0x4 Baud Rate Div/10
0x5 Baud Rate Div/12
0x6 Baud Rate Div/14
0x7 Baud Rate Div/16
0x8 Baud Rate Div/18
0x9 Baud Rate Div/20
0xa Baud Rate Div/22
0xb Baud Rate Div/24
0xc Baud Rate Div/26
0xd Baud Rate Div/28
0xe Baud Rate Div/30
0xf Baud Rate Div/32
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.

Value Description
0x1 Enter XIP Mode immediately
0x0 Exit XIP Mode on next READ instruction
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.

Value Description
0x1 Enter XIP Mode on next READ instruction
0x0 Exit XIP Mode on next READ instruction
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.

Value Description
0x1 Enable AHB Re-mapping
0x0 Disable AHB Re-mapping
RW 0x0
15 endma

Allows DMA handshaking mode. When enabled the QSPI will trigger DMA transfer requests via the DMA peripheral interface.

Value Description
0x1 Enable DMA Mode
0x0 Disable DMA Mode
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.

Value Description
0x1 Enable Write Protect
0x0 Disable Write Protect
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.

Value Description
0x1 Select external 4-to-16 decode
0x0 Selects 1 of 4 qspi_n_ss_out[3:0]
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.

Value Description
0x1 Legacy Mode
0x0 Use Direct/Indirect Access Controller
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.

Value Description
0x0 Disable Direct Access Ctrl
0x1 Enable Direct Access Ctrl
RW 0x0
2 selclkphase

Selects whether the clock is in an active or inactive phase outside the SPI word.

Value Description
0x0 SPI clock is quiescent low
0x1 Clock Inactive
RW 0x0
1 selclkpol

Controls spiclk modes of operation.

Value Description
0x1 SPI clock is quiescent high
0x0 SPI clock is quiescent low
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.

Value Description
0x0 Disable the QSPI
0x1 Enable the QSPI
RW 0x0