Booting from SPI flash

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Booting from SPI flash

跳至解决方案
3,145 次查看
veerendranathj
Contributor III

Hi,

when we select booting from eSPI flash using configuration buttons... pre-boot loader (PBL) will initialize the communication between the booting medium(eSPI/eLBC/I2C/SD) to load RCW but according to following doc we are defining eSPI controller initialization in PBI commands... But how this is possible to load RCW before initializing eSPI...

Doc: http://www.nxp.com/files/training/doc/dwf/DWF13_APF_ENT_T0881.pdf

Thanks and Regards,

Veerendranath

标记 (4)
0 项奖励
回复
1 解答
2,915 次查看
r8070z
NXP Employee
NXP Employee


Have a great day,

After reset the PBL uses eSPI interface with hardware wired settings. This only way to load RCW from the eSPI interface and start pre-boot initialization (PBI) from the eSPI interface. However during PBI from the eSPI interface the PBL can change the eSPI registers. Of course it is should be done carefully. So if you skip section:

#Initialize eSPI controller

09110000 80000403

09110020 2d170008

09110024 00100008

09110028 00100008

0911002c 00100008

the BPL still can load u-boot. I guess that main goal of the author was PBL command

09110020 2d17000

i.e. changing the SPMODE0 register in order to speed-up eSPI interface.

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
3 回复数
2,916 次查看
r8070z
NXP Employee
NXP Employee


Have a great day,

After reset the PBL uses eSPI interface with hardware wired settings. This only way to load RCW from the eSPI interface and start pre-boot initialization (PBI) from the eSPI interface. However during PBI from the eSPI interface the PBL can change the eSPI registers. Of course it is should be done carefully. So if you skip section:

#Initialize eSPI controller

09110000 80000403

09110020 2d170008

09110024 00100008

09110028 00100008

0911002c 00100008

the BPL still can load u-boot. I guess that main goal of the author was PBL command

09110020 2d17000

i.e. changing the SPMODE0 register in order to speed-up eSPI interface.

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
2,915 次查看
dbevans42
Contributor I

What are the hardware wired settings used to load the RCW from eSPI interface?  Are these the default/reset values for the SPMODE0 register?  Specifically I am wondering does the data needs to be MSB or LSB first?  What is the clock speed used?

0 项奖励
回复
2,915 次查看
veerendranathj
Contributor III

Thanks.. :smileyhappy:

0 项奖励
回复