|
AM64x MCU+ SDK
08.02.00
|
|
Go to the documentation of this file.
59 #include <drivers/hw_include/csl_types.h>
60 #include <drivers/hw_include/cslr_ospi.h>
67 #define OSPI_SFDP_SIGNATURE (0x50444653U)
70 #define OSPI_SFDP_JESD216_MAJOR (1U)
71 #define OSPI_SFDP_JESD216_MINOR (0U)
72 #define OSPI_SFDP_JESD216A_MINOR (5U)
73 #define OSPI_SFDP_JESD216B_MINOR (6U)
74 #define OSPI_SFDP_JESD216C_MINOR (7U)
75 #define OSPI_SFDP_JESD216D_MINOR (8U)
78 #define OSPI_SFDP_NPH_MAX (13U)
81 #define OSPI_SFDP_HEADER_START_OFFSET (0x00U)
82 #define OSPI_SFDP_FIRST_PARAM_HEADER_OFFSET (0x08U)
83 #define OSPI_SFDP_SECOND_PARAM_HEADER_OFFSET (0x10U)
86 #define OSPI_SFDP_BASIC_PARAM_TABLE_ID (0xFF00)
87 #define OSPI_SFDP_SECTOR_MAP_TABLE_ID (0xFF81)
88 #define OSPI_SFDP_RPMC_TABLE_ID (0xFF03)
89 #define OSPI_SFDP_4BYTE_ADDR_INSTR_TABLE_ID (0xFF84)
90 #define OSPI_SFDP_XSPI_PROFILE_TABLE_ID (0xFF05)
91 #define OSPI_SFDP_XSPI_PROFILE_2_TABLE_ID (0xFF06)
92 #define OSPI_SFDP_SCCR_TABLE_ID (0xFF87)
93 #define OSPI_SFDP_SCCR_MULTISPI_OFFSETS_TABLE_ID (0xFF88)
94 #define OSPI_SFDP_SCCR_XSPI_PROFILE_2_TABLE_ID (0xFF09)
95 #define OSPI_SFDP_OCTAL_CMD_SEQ_TABLE_ID (0xFF0A)
96 #define OSPI_SFDP_LONG_LATENCY_NVM_MSP_TABLE_ID (0xFF8B)
97 #define OSPI_SFDP_QUAD_IO_WITH_DS_TABLE_ID (0xFF0C)
98 #define OSPI_SFDP_QUAD_CMD_SEQ_TABLE_ID (0xFF8D)
101 #define OSPI_SFDP_BFPT_MAX_DWORDS_JESD216 (9)
102 #define OSPI_SFDP_BFPT_MAX_DWORDS_JESD216B (16)
105 #define OSPI_SFDP_OCTAL_READ_ADDR_MSB_0 (0)
106 #define OSPI_SFDP_OCTAL_READ_ADDR_LSB_0 (1)
108 typedef struct OSPI_SfdpMainHeader_s
127 typedef struct OSPI_SfdpParamHeader_s
141 uint8_t paramTablePtr[3];
149 typedef struct OSPI_SfdpBasicFlashParamTable_s
213 typedef struct OSPI_SfdpXspiProfile1ParamTable_s
219 typedef struct OSPI_SfdpSectorMapParamTable_s
225 typedef struct OSPI_SfdpSCCRParamTable_s
231 typedef struct OSPI_Sfdp4ByteAddressingParamTable_s
241 typedef struct OSPI_SfdpHeader_s
uint32_t fastRead_444_WMI
Definition: ospi_sfdp.h:169
uint32_t deepPdStatusPoll
Definition: ospi_sfdp.h:190
uint32_t maxClocks
Definition: ospi_sfdp.h:208
uint32_t dtrQFRNumAddr
Definition: ospi_sfdp.h:151
uint32_t fastRead_112_122_WMI
Definition: ospi_sfdp.h:160
int32_t OSPI_Sfdp_parse4bait(OSPI_Sfdp4ByteAddressingParamTable *fourBait, OSPI_GenericXspiDevDefines *xspiDefines, uint32_t numDwords)
This function parses the 4 Byte Addressing Information Table (4BAIT) and fills the xspiDevDefines str...
char * OSPI_Sfdp_getParameterTableName(uint32_t paramTableId)
This function returns the name of the parameter table given the table ID.
uint32_t suspendResumeInstr
Definition: ospi_sfdp.h:187
uint32_t fastReadSupport_222_444
Definition: ospi_sfdp.h:163
int32_t OSPI_Sfdp_parseBfpt(OSPI_SfdpBasicFlashParamTable *bfpt, OSPI_GenericXspiDevDefines *xspiDefines, uint32_t numDwords)
This function parses the Basic Flash Parameter Table (BFPT) and fills the xspiDevDefines structure wi...
uint8_t accessProtocol
Definition: ospi_sfdp.h:122
Definition: ospi_sfdp.h:214
Definition: ospi_sfdp.h:220
Definition: ospi_sfdp.h:150
uint32_t eraseType_3_4
Definition: ospi_sfdp.h:175
uint32_t eraseTimes
Definition: ospi_sfdp.h:178
Definition: ospi_sfdp.h:226
uint32_t dqsByteOrderCmdExt
Definition: ospi_sfdp.h:202
uint32_t fastRead_114_144_WMI
Definition: ospi_sfdp.h:157
uint32_t fastRead_222_WMI
Definition: ospi_sfdp.h:166
uint8_t majorRev
Definition: ospi_sfdp.h:116
Definition: ospi_sfdp.h:109
uint32_t holdResetQeXip
Definition: ospi_sfdp.h:193
int32_t OSPI_Sfdp_parseSmpt(OSPI_SfdpSectorMapParamTable *smpt, OSPI_GenericXspiDevDefines *xspiDefines, uint32_t numDwords)
This function parses the Sector Map Parameter Table (SMPT) and fills the xspiDevDefines structure wit...
uint32_t memoryDensity
Definition: ospi_sfdp.h:154
int32_t OSPI_Sfdp_parseSccr(OSPI_SfdpSCCRParamTable *sccr, OSPI_GenericXspiDevDefines *xspiDefines, uint32_t numDwords)
This function parses the Status, Control and Configuration Registers (SCCR) Table and fills the xspiD...
Definition: ospi_sfdp.h:232
uint32_t eraseType_1_2
Definition: ospi_sfdp.h:172
uint32_t fourByteAddressVNvStatusReg
Definition: ospi_sfdp.h:196
uint32_t OeXip
Definition: ospi_sfdp.h:205
uint8_t minorRev
Definition: ospi_sfdp.h:113
uint32_t pageSizeTimes
Definition: ospi_sfdp.h:181
uint32_t fastRead_118_188_WMI
Definition: ospi_sfdp.h:199
uint32_t OSPI_Sfdp_getPtp(OSPI_SfdpParamHeader *paramHeader)
This function returns the Parameter Table Pointer (PTP) of the parameter table given the parameter he...
uint32_t suspendResumeSupport
Definition: ospi_sfdp.h:184
Definition: ospi/v0/ospi.h:431
int32_t OSPI_Sfdp_parseXpt1(OSPI_SfdpXspiProfile1ParamTable *xpt1, OSPI_GenericXspiDevDefines *xspiDefines, uint32_t numDwords)
This function parses the xSPI Flash Profile 1.0 Table and fills the xspiDevDefines structure with the...
uint8_t numParamHeaders
Definition: ospi_sfdp.h:119
uint32_t signature
Definition: ospi_sfdp.h:110