LS1046A PBI

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
1,578件の閲覧回数
tian_shuliang
Contributor I

File:packages\firmware\rcw\ls1046afrwy\NN_NNQNNPNP_3040_0506\rcw_1600_qspiboot.rcw

I don't understand the meaning of the following code, whether there are relevant manuals?

.pbi
// QSPI flash clock
write 0x57015c, 0x20100000 // set value  0x57015c to 0x20100000?
write 0x570600, 0x00000000
write 0x570604, 0x40100000
.end

.pbi
// QSPI END_CFG 64 bit LE
write 0x550000, 0x000f400c
.end

0 件の賞賛
1 解決策
1,428件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello salmon tian,

Please refer to QSPI CONFIG Register (SCFG_QSPI_CFG) in LS1046 reference manual, the PBI command "write 0x57015c, 0x20100000" sets CLK_SEL for QSPI CONFIG Register, please refer to the following description.

0–3  CLK_SEL
These bits control the division of CGA1/CGA2 PLL clock to generate QuadSPI interface clocks.
0000 Divide by 256
0001 Divide by 64 (default)
0010 Divide by 32

PBI command "write 0x570600, 0x00000000" is used to configure SCFG_SCRATCHRW1(Scratch Read Write Registers) as 0.

PBI command "write 0x570604, 0x40100000" is used to configure SCFG_SCRATCHRW2 as 0x40100000.

SCRATCHRW1 - Reserved for future use in case boot location pointer is 64 bit. The value must be 0.
SCRATCHRW2 - 32-bit boot location pointer (BOOTLOCPTR)

The PBI command "write 0x550000, 0x000f400c" configures QuadSPI_MCR[END_CFG] as 64 bit LE, please refer to the section "26.8 Byte Ordering - Endianness" in LS1046 reference manual for details.

Thanks,

Yiping

元の投稿で解決策を見る

0 件の賞賛
1 返信
1,429件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

Hello salmon tian,

Please refer to QSPI CONFIG Register (SCFG_QSPI_CFG) in LS1046 reference manual, the PBI command "write 0x57015c, 0x20100000" sets CLK_SEL for QSPI CONFIG Register, please refer to the following description.

0–3  CLK_SEL
These bits control the division of CGA1/CGA2 PLL clock to generate QuadSPI interface clocks.
0000 Divide by 256
0001 Divide by 64 (default)
0010 Divide by 32

PBI command "write 0x570600, 0x00000000" is used to configure SCFG_SCRATCHRW1(Scratch Read Write Registers) as 0.

PBI command "write 0x570604, 0x40100000" is used to configure SCFG_SCRATCHRW2 as 0x40100000.

SCRATCHRW1 - Reserved for future use in case boot location pointer is 64 bit. The value must be 0.
SCRATCHRW2 - 32-bit boot location pointer (BOOTLOCPTR)

The PBI command "write 0x550000, 0x000f400c" configures QuadSPI_MCR[END_CFG] as 64 bit LE, please refer to the section "26.8 Byte Ordering - Endianness" in LS1046 reference manual for details.

Thanks,

Yiping

0 件の賞賛