这次PMON在263Mhz的频率下能较稳定跑过去,过400就会直接hang在copyPMONto
memory。。所以这次调试的主要目的就是将内存的频率调试到500Mhz以上就可以
1,首先需要手动设置S1的值;
//!!!!important--s1mustbecorrectlyset
#ifdefAUTO_DDR_CONFIG
dlis1,0x36170000//setuseMC1orMC0orMC1/0andgiveAlldeviceid
#else
dlis1,0xc1a18400c1a18400
#endif
S1的格式详细请看龙芯3a2000的用户手册!
//setMC1dimminfor
dlia0,(MC_SDRAM_TYPE_DDR3/*sdramtype:DDR3/DDR2*/\
|MC_DIMM_ECC_NO/*dimmECC:YES/NO*/\
|MC_DIMM_BUF_REG_NO/*dimmbufferregister:YES/NO,forRDIMM
useYES,allelseuseNO*/\
|MC_DIMM_WIDTH_64/*memorydatawidth:64/32*/\
|MC_SDRAM_ROW_14/*sdramrowaddressnumber:15~11*/\
|MC_SDRAM_COL_10/*sdramcolumnaddressnumber:12~9*/\
|MC_SDRAM_BANK_8/*sdrambanknumber:8/4*/\
|MC_ADDR_MIRROR_YES/*forstandardDDR3UDIMM,useYESelse
useNO*/\
|MC_SDRAM_WIDTH_X8/*SDRAMdevicedatawidth:8/16*/\
|MC_USE_CS_0_1/*theCSpinsthesdramconnectedon(splitby'_',
fromsmalltobig)*/\
|MC_MEMSIZE_(4)/*MCmemorysize,unit:512MB*/\
)
dslls1,a0,32
//setMC0dimminfor
dlia0,(MC_SDRAM_TYPE_DDR3/*sdramtype:DDR3/DDR2*/\
|MC_DIMM_ECC_NO/*dimmECC:YES/NO*/\
|MC_DIMM_BUF_REG_NO/*dimmbufferregister:YES/NO,forRDIMM
useYES,allelseuseNO*/\
|MC_DIMM_WIDTH_64/*memorydatawidth:64/32*/\
|MC_SDRAM_ROW_14/*sdramrowaddressnumber:15~11*/\
评论0
最新资源