LS1043A boot 引导

The reset configuration word (RCW) data contains reset configuration information that is
loaded by the PBL from a memory device during reset.

LS1043A 复位或者上电之后外部的IFC_AD08- IFC_AD15 8个引脚决定了引导介质

内部的PBL会实始化对应的引导介质控制接口

会加载对应的引导介质的RCW数据,并写入Reset Control Word Status Register n(DCFG_CCSR_RCWSRn)

各个位对应的位置在:4.4.6.1 RCW filed definitions……

主要有:

 PLL configuration

 SerDes PLL and Protocal configration

 Boot configuration

 Clocking configurations

 Memory and high speed I/O configuration

 General purpose informations

 Engineering use configurations ( Reserved)

 Group A pin configurations

 Group B pin configurations

RCW 也有Hard-coded RCW options (硬编码选项,相当于使用外部的引脚来设置RCW对应的bit)

其对应表可参考273   LS1043A 参考手册

RBL还会根据RCW来锁住相关的配置控制寄存器和状态寄存器。

RCW也是有格式要求的,相当于RCW.BIN被PBL读取之后,会被解析,然后再写进寄存器当中。

如何格式出错的话,引报也会失败。

格式如下所示:

RCW 可以用来配置 DCFG_CCSR_RCWSRn

     1EE_0000h base + 100h offset + (4d × i), where i=0d to 15d

          也可以用来配置

     (0x161_0000, 0x161_0000 + 0Xff_ffff ) 区间的寄存器,当于PBI command 功能。

          具体的RBI命令详见:

RCW初始化成功之后,如何读取或引导uboot,, PBL commands,  Jump给出了结论......这个时候跳到了uboot,......

猜你喜欢

转载自www.cnblogs.com/lianghong881018/p/11944631.html