mirror of
git://projects.qi-hardware.com/xburst-tools.git
synced 2024-11-22 20:10:17 +02:00
stage1: Don't configure ram, when loaded from u-boot usbboot emulation
This commit is contained in:
parent
20477f631c
commit
62e1e80b92
@ -121,6 +121,9 @@ void sdram_init_4740(void)
|
|||||||
|
|
||||||
int div[] = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32};
|
int div[] = {1, 2, 3, 4, 6, 8, 12, 16, 24, 32};
|
||||||
|
|
||||||
|
if (SDRAM_BW16 == 0xff)
|
||||||
|
return;
|
||||||
|
|
||||||
cpu_clk = CFG_CPU_SPEED;
|
cpu_clk = CFG_CPU_SPEED;
|
||||||
mem_clk = cpu_clk * div[__cpm_get_cdiv()] / div[__cpm_get_mdiv()];
|
mem_clk = cpu_clk * div[__cpm_get_cdiv()] / div[__cpm_get_mdiv()];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user