globl mem_ctrl_asm_init一
时间:2016-12-14作者:华清远见
.globl mem_ctrl_asm_init mem_ctrl_asm_init: /* s5pc100 使用的的dram芯片为k4t1g164qf-bce7 */ ldr r0, =0xe6000000 /*APB_DMC_BASE*/ /******************** DLL initialization **************************/ /* dll延时锁相环 使能dll*/ ldr r1, =0x50101002 /*3.Set the PhyControl1.ctrl_shiftc andPhyControl1.ctrl_offsetc */ ldr r1, =0x00000000 /* 4. Set the PhyControl0.ctrl_start bit-field to 1 */ /************************** DLL initialization - END ************************/ /* 5. Set the ConControl. At this moment, an auto refresh counter should be off.*/ ldr r1, =( (2<<20)|(1<<16)|(2<<12)|(4<<8) ) @ 128MB config , 8banks , linear, Row=13bit,COL=10bit @ldr r1, =0x40F01313 ldr r1, =0x20000000 @ldr r1, =0x00100004 /******************************************************************/ @ldr r1, =0x0000050e @ldr r1, =0x16233297 @TimingRow @166MHz @; ldr r1, =0x24250304 @CL=5 @ldr r1, =0x07c80232 @Timing Power /************************ direct command for DDR2 ***********************/ ldr r1, =0x07000000 @chip0 Deselect ldr r1, =0x01000000 @chip0 PALL ldr r1, =0x00020000 @chip0 EMRS2 ldr r1, =0x00030000 @chip0 EMRS3 ldr r1, =0x00010400 @chip0 EMRS1 (MEM DLL on = DQS# disable) @; ldr r1, =0x00000552 @chip0 MRS (MEM DLL reset) CL=5, Burst Length=4 ldr r1, =0x01000000 @chip0 PALL ldr r1, =0x05000000 @chip0 REFA ldr r1, =0x05000000 @chip0 REFA @; ldr r1, =0x00000452 @chip0 MRS (MEM DLL unreset) , BL=4 , CL=5 ldr r1, =0x00010780 @chip0 EMRS1 (OCD default) ldr r1, =0x00010400 @chip0 EMRS1 (OCD exit) Reduced Strength /************************ direct command for DDR2 - END*******************/ @ldr r1, =0x00FF20B0 @ConControl auto refresh on ldr r1, =0x00100004 @ldr r1, =0x00212413 @ MemControl
相关资讯
发表评论
|