Config (OSPI_QSPI) Register Description
| Register Name | Config |
|---|---|
| Offset Address | 0x0000000000 |
| Absolute Address | 0x0004090000 () |
| Width | 32 |
| Type | mixedMixed types. See bit-field details. |
| Reset Value | 0x80780001 |
| Description | Controller Configuration register |
Alternate register name: config_reg
Config (OSPI_QSPI) Register Bit-Field Summary
| Field Name | Bits | Type | Reset Value | Description |
|---|---|---|---|---|
| idle | 31 | roRead-only | 0x1 | 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. |
| dual_byte_opcode_en | 30 | rwNormal read/write | 0x0 | Dual byte Opcode Mode enable bit. This bit is to be set in case the target flash device supports dual byte opcode. 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, the supplementing bytes are taken from opcode extension register (lower) and from opcode extension register (upper). |
| Reserved | 28:26 | roRead-only | 0x0 | Reserved |
| pipeline_phy | 25 | rwNormal read/write | 0x0 | 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. |
| enable_dtr_protocol | 24 | rwNormal read/write | 0x0 | Enable DTR Protocol: This bit should be set if device is configured to work in DTR protocol. |
| enable_ahb_decoder | 23 | rwNormal read/write | 0x0 | 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) |
| mstr_baud_div | 22:19 | rwNormal read/write | 0xF | Master Mode Baud Rate Divisor: SPI baud rate = (master reference clock) baud_rate_divisor. Where BD is: 4b0000 = /2 4b0001 = /4 4b0010 = /6 4b0011 = /8 4b0100 = /10 4b0101 = /12 .. 4b1111 = /32 While the PHY Mode is enabled, clock from DLL is granted and consequently forwarded into external FLASH Device. Its frequency is equal to OSPI_REF_CLK i.e., value of /1 is used in PHY mode. Set this register up before enabling the Octal-SPI controller. |
| enb_dma_if | 15 | rwNormal read/write | 0x0 | 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 |
| periph_cs_lines | 13:10 | rwNormal read/write | 0x0 | Chip select line assertion: If [periph_sel_dec] = 0 (no external mux), then: xx10: FCS_b is asserted Low xx01: FCS1_b is asserted Low xx11: both are deasserted High Note: in this case only one CS is asserted at a time. If [periph_sel_dec] = 1 (external mux), then: xxx0: FCS_b is asserted Low xx01: FCS1_b is asserted Low Note: in this case more than one CS can be asserted at a time. Note: Bits [13:12] are ignored. |
| periph_sel_dec | 9 | rwNormal read/write | 0x0 | Chip select decoder enable: 0: use FCS_b[0, 1] directly for 1 or 2 chip selects 1: allow external 2-to-4 decoder to support 3 devices (00 is not used) Note: This controls the functionality of the for FCS_b[0, 1] output signals. |
| reset_cfg | 6 | rwNormal read/write | 0x0 | 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) |
| reset_pin | 5 | rwNormal read/write | 0x0 | Set to drive the RESET pin of the FLASH device and reset for de-activation of the RESET pin feature |
| phy_mode_enable | 3 | rwNormal read/write | 0x0 | 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. |
| sel_clk_phase | 2 | rwNormal read/write | 0x0 | Select Clock Phase: Selects whether the clock is in an active or inactive phase outside the SPI word. 0: the SPI clock is active outside the word 1: the SPI clock is inactive outside the word |
| sel_clk_pol | 1 | rwNormal read/write | 0x0 | Clock polarity outside SPI word: 0: the SPI clock is quiescent low 1: the SPI clock is quiescent high |
| enb_spi | 0 | rwNormal read/write | 0x1 | Octal-SPI Enable: 0: 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. (This field applies to SPI, OSPI, QSPI) |