QuadSPI Config block structure.
| Data Fields |
|
uint32_t |
busy_bit_offset |
Flash device busy bit offset in status register. |
|
uint32_t |
column_address_space |
The width of the column address. |
|
uint32_t |
config_cmd_en |
Enable config commands. |
|
uint32_t |
config_cmds[QSPI_PRE_CMD_CNT] |
Config comands, used to configure nor flash. |
|
uint32_t |
config_cmds_args[QSPI_PRE_CMD_CNT] |
Config commands arguments. |
|
uint32_t |
cs_hold_time |
CS hold time in terms of serial clock.(for example 1 serial clock cyle) |
|
uint32_t |
cs_setup_time |
CS setup time in terms of serial clock.(for example 1 serial clock cyle) |
|
uint32_t |
data_hold_time |
Serial flash data In Hold time, valid value: 0/1/2. |
|
uint32_t |
ddr_mode_enable |
Enable DDR mode if set to TRUE. |
|
uint32_t |
ddrsmp |
Select the sampling point for incomming data when serial flash is in DDR mdoe. |
|
uint32_t |
device_cmd |
Command to be tranferred to device. |
|
uint32_t |
device_mode_config_en |
Determine if it is required to config working mode of external spi flash. |
|
uint32_t |
differential_clock_pin_enable |
Differential flash clock pins enable. |
|
uint32_t |
dqs_enable |
Enable DQS mode if set to TRUE. |
|
uint32_t |
dqs_fa_delay_chain_sel |
dqs fa delay chain selection |
|
uint32_t |
dqs_fb_delay_chain_sel |
dqs fb delay chain selection |
|
uint32_t |
dqs_inverse_sel |
Select clock source for internal DQS generation. |
|
uint32_t |
dqs_latency_enable |
DQS Latency Enable. |
|
uint32_t |
dqs_loopback |
Sets DQS LoopBack Mode to enable Dummy Pad MCR[24]. |
|
uint32_t |
dqs_loopback_internal |
0: dqs loopback from pad, 1: dqs loopback internally |
|
uint32_t |
dqs_phase_sel |
dqs phase sel |
|
uint32_t |
erase_all_cmd_address_offset |
Address for EraseAll command. |
|
uint32_t |
flash_CK2_clock_pin_enable |
Flash CK2 clock pin enable. |
|
uint32_t |
fsdly |
Full speed phase selection for SDR instructions. |
|
uint32_t |
fsphs |
Full speed delay selection for SDR instructions. |
|
uint32_t |
ips_command_second_divider |
second devider for all IPS commands. |
|
uint32_t |
is_spansion_hyperflash |
Determine if connected spi flash device belongs to Hyperflash family. |
|
uint32_t |
lengthInBytes |
Total length of strcut in bytes. |
|
uint32_t |
look_up_table[QSPI_LUT_MAX_ENTRIES] |
Set of seq to perform optimum read on SFLASH as as per vendor SFLASH. |
|
uint32_t |
need_multi_phases |
Determine if multiple hases command are needed. |
|
uint32_t |
pagesize |
page Size of Serial Flash |
|
uint32_t |
parallel_mode_enable |
Enable Individual or parrallel mode. |
|
uint32_t |
portA_cs1 |
Enable PORTA CS1. |
|
uint32_t |
portB_cs1 |
Enable PORTB CS1. |
|
uint32_t |
pre_erase_cmd_address_offset |
Address for PreErase command. |
|
uint32_t |
pre_program_cmd_address_offset |
Address for PreProgram command. |
|
uint32_t |
pre_read_status_cmd_address_offset |
Address for PreReadStatus command. |
|
uint32_t |
pre_unlock_cmd_address_offset |
Address for PreWriteEnable command. |
|
uint32_t |
reserved0[2] |
Reserved for K80. |
|
uint32_t |
reserved1[2] |
reserved |
|
uint32_t |
reserved2[3] |
Reserved words to make sure qspi config block is page-aligend. |
|
uint32_t |
sclk_freq |
In 00 - 24MHz, 01 - 48MHz, 10 - 96MHz,(only for SDR Mode) |
|
uint32_t |
sectorsize |
sector Size of Serial Flash |
|
uint32_t |
sflash_A1_size |
Size of flash connected on QSPI0A Ports and QSPI0A_SS0, in terms of Bytes. |
|
uint32_t |
sflash_A2_size |
Size of flash connected on QSPI0A Ports and QSPI0A_SS1, in terms of Bytes. |
|
uint32_t |
sflash_B1_size |
Size of flash connected on QSPI0B Ports and QSPI0B_SS0, in terms of Bytes. |
|
uint32_t |
sflash_B2_size |
Size of flash connected on QSPI0B Ports and QSPI0B_SS1, in terms of Bytes. |
|
uint32_t |
sflash_port |
0–Only Port-A, 1–Both PortA and PortB |
|
uint32_t |
sflash_type |
SPI flash type: 0-Single,1–Dual 2–Quad, 3– Octal. |
|
uint32_t |
tag |
Set to magic number of 'kqcf'. |
|
uint32_t |
timeout_milliseconds |
timeout in terms of millisecond in case of infinite loop in qspi driver 0 represents disabling timeout check. This value is valid since version 1.1.0
|
|
uint32_t |
unlock_cmd_address_offset |
Address for WriteEnable command. |
|
standard_version_t |
version |
version of config struct the version number i organized as following:
|
|
uint32_t |
word_addressable |
Determine if the serial flash is word addressable. |
|
uint32_t |
write_cmd_ipcr |
IPCR value of Write command. |