@@ -339,7 +339,7 @@ extern "C" {
339339#define SPI_MEM_ECC_16TO18_BYTE_EN_M (SPI_MEM_ECC_16TO18_BYTE_EN_V << SPI_MEM_ECC_16TO18_BYTE_EN_S)
340340#define SPI_MEM_ECC_16TO18_BYTE_EN_V 0x00000001U
341341#define SPI_MEM_ECC_16TO18_BYTE_EN_S 14
342- /** SPI_MEM_SPLIT_TRANS_EN : R/W; bitpos: [24]; default: 1 ;
342+ /** SPI_MEM_SPLIT_TRANS_EN : R/W; bitpos: [24]; default: 0 ;
343343 * Set this bit to enable SPI0 split one AXI read flash transfer into two SPI
344344 * transfers when one transfer will cross flash or EXT_RAM page corner, valid no
345345 * matter whether there is an ECC region or not.
@@ -2896,7 +2896,7 @@ extern "C" {
28962896#define SPI_SMEM_CS_HOLD_DELAY_M (SPI_SMEM_CS_HOLD_DELAY_V << SPI_SMEM_CS_HOLD_DELAY_S)
28972897#define SPI_SMEM_CS_HOLD_DELAY_V 0x0000003FU
28982898#define SPI_SMEM_CS_HOLD_DELAY_S 25
2899- /** SPI_SMEM_SPLIT_TRANS_EN : HRO; bitpos: [31]; default: 1 ;
2899+ /** SPI_SMEM_SPLIT_TRANS_EN : HRO; bitpos: [31]; default: 0 ;
29002900 * Set this bit to enable SPI0 split one AXI accesses EXT_RAM transfer into two SPI
29012901 * transfers when one transfer will cross flash/EXT_RAM page corner, valid no matter
29022902 * whether there is an ECC region or not.
@@ -2962,14 +2962,14 @@ extern "C" {
29622962 * Manual Encryption physical address register
29632963 */
29642964#define SPI_MEM_XTS_PHYSICAL_ADDRESS_REG (i ) (REG_SPI_MEM_BASE(i) + 0x348)
2965- /** SPI_XTS_PHYSICAL_ADDRESS : R/W; bitpos: [25 :0]; default: 0;
2965+ /** SPI_XTS_PHYSICAL_ADDRESS : R/W; bitpos: [29 :0]; default: 0;
29662966 * This bits stores the physical-address parameter which will be used in manual
29672967 * encryption calculation. This value should aligned with byte number decided by
29682968 * line-size parameter.
29692969 */
2970- #define SPI_XTS_PHYSICAL_ADDRESS 0x03FFFFFFU
2970+ #define SPI_XTS_PHYSICAL_ADDRESS 0x3FFFFFFFU
29712971#define SPI_XTS_PHYSICAL_ADDRESS_M (SPI_XTS_PHYSICAL_ADDRESS_V << SPI_XTS_PHYSICAL_ADDRESS_S)
2972- #define SPI_XTS_PHYSICAL_ADDRESS_V 0x03FFFFFFU
2972+ #define SPI_XTS_PHYSICAL_ADDRESS_V 0x3FFFFFFFU
29732973#define SPI_XTS_PHYSICAL_ADDRESS_S 0
29742974
29752975/** SPI_MEM_XTS_TRIGGER_REG register
@@ -3033,7 +3033,7 @@ extern "C" {
30333033 * Manual Encryption version register
30343034 */
30353035#define SPI_MEM_XTS_DATE_REG (i ) (REG_SPI_MEM_BASE(i) + 0x35c)
3036- /** SPI_XTS_DATE : R/W; bitpos: [29:0]; default: 538972176 ;
3036+ /** SPI_XTS_DATE : R/W; bitpos: [29:0]; default: 539035911 ;
30373037 * This bits stores the last modified-time of manual encryption feature.
30383038 */
30393039#define SPI_XTS_DATE 0x3FFFFFFFU
@@ -3153,6 +3153,35 @@ extern "C" {
31533153#define SPI_CRYPT_DPA_SELECT_REGISTER_V 0x00000001U
31543154#define SPI_CRYPT_DPA_SELECT_REGISTER_S 4
31553155
3156+ /** SPI_MEM_XTS_PSEUDO_ROUND_CONF_REG register
3157+ * SPI memory cryption PSEUDO register
3158+ */
3159+ #define SPI_MEM_XTS_PSEUDO_ROUND_CONF_REG (i ) (REG_SPI_MEM_BASE(i) + 0x38c)
3160+ /** SPI_MEM_MODE_PSEUDO : R/W; bitpos: [1:0]; default: 0;
3161+ * Set the mode of pseudo. 2'b00: crypto without pseudo. 2'b01: state T with pseudo
3162+ * and state D without pseudo. 2'b10: state T with pseudo and state D with few pseudo.
3163+ * 2'b11: crypto with pseudo.
3164+ */
3165+ #define SPI_MEM_MODE_PSEUDO 0x00000003U
3166+ #define SPI_MEM_MODE_PSEUDO_M (SPI_MEM_MODE_PSEUDO_V << SPI_MEM_MODE_PSEUDO_S)
3167+ #define SPI_MEM_MODE_PSEUDO_V 0x00000003U
3168+ #define SPI_MEM_MODE_PSEUDO_S 0
3169+ /** SPI_MEM_PSEUDO_BASE : R/W; bitpos: [5:2]; default: 2;
3170+ * xts aes peseudo function base round that must be performed.
3171+ */
3172+ #define SPI_MEM_PSEUDO_BASE 0x0000000FU
3173+ #define SPI_MEM_PSEUDO_BASE_M (SPI_MEM_PSEUDO_BASE_V << SPI_MEM_PSEUDO_BASE_S)
3174+ #define SPI_MEM_PSEUDO_BASE_V 0x0000000FU
3175+ #define SPI_MEM_PSEUDO_BASE_S 2
3176+ /** SPI_MEM_PSEUDO_INC : R/W; bitpos: [7:6]; default: 2;
3177+ * xts aes peseudo function increment round that will be performed randomly between 0 &
3178+ * 2**(inc+1).
3179+ */
3180+ #define SPI_MEM_PSEUDO_INC 0x00000003U
3181+ #define SPI_MEM_PSEUDO_INC_M (SPI_MEM_PSEUDO_INC_V << SPI_MEM_PSEUDO_INC_S)
3182+ #define SPI_MEM_PSEUDO_INC_V 0x00000003U
3183+ #define SPI_MEM_PSEUDO_INC_S 6
3184+
31563185/** SPI_MEM_REGISTERRND_ECO_HIGH_REG register
31573186 * MSPI ECO high register
31583187 * This register is only for internal debugging purposes. Do not use it in
@@ -3187,7 +3216,7 @@ extern "C" {
31873216 * SPI0 version control register
31883217 */
31893218#define SPI_MEM_DATE_REG (i ) (REG_SPI_MEM_BASE(i) + 0x3fc)
3190- /** SPI_MEM_DATE : R/W; bitpos: [27:0]; default: 36712560 ;
3219+ /** SPI_MEM_DATE : R/W; bitpos: [27:0]; default: 36770128 ;
31913220 * SPI0 register version.
31923221 */
31933222#define SPI_MEM_DATE 0x0FFFFFFFU
0 commit comments