Skip to content

Commit

Permalink
fix a dram init bug,now normal dma works ok
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjiewen authored and zhengjiewen committed Mar 1, 2013
1 parent aa834c0 commit fc79f6d
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 9 deletions.
8 changes: 7 additions & 1 deletion boot0/Boot0_C_part.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ void Boot0_C_part( void )
//for A20 super standby
boot0_twi_init();
#endif

if(BT0_head.boot_head.platform[7])
{
msg("read dram para.\n");
}else
{
msg("try dram para.\n");
}
dram_size = init_DRAM(BT0_head.boot_head.platform[7]); // 初始化DRAM

#ifdef CONFIG_HOLD_SUPERSTANDBY_DATA_BY_PMU
Expand Down
16 changes: 8 additions & 8 deletions boot0/drv/init_dram/dram_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,16 @@ void mctl_disable_dll(void)

void mctl_configure_hostport(void)
{
__u32 i;
__u32 i;
__u32 hpcr_value[32] = {
0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,
0x0,0x0,0x0,0x0,
0x00001031,0x00001031,0x00000735,0x00001035,
0x00001035,0x00000731,0x00001031,0x0,
0x00000301,0x00000301,0x00000301,0x00000301,
0x00000301,0x00000301,0x00000301,0x0
0x00000301,0x00000301,0x0, 0x0,
0x0, 0x0, 0x0, 0x0,
0x0, 0x0, 0x0, 0x0,
0x00001031,0x00001031,0x00000735,0x00001035,
0x00001035,0x00000731,0x00001031,0x00000735,
0x00001035,0x00001031,0x00000731,0x00001035,
0x00001031,0x00000301,0x00000301,0x00000731,
};

for(i=0; i<32; i++)
Expand Down
Binary file modified workspace/egon/boot0_nand.bin
Binary file not shown.
Binary file modified workspace/egon/boot0_sdcard.bin
Binary file not shown.

0 comments on commit fc79f6d

Please sign in to comment.