diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2008-04-04 14:50:23 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2008-04-04 14:50:23 +0200 |
commit | 35497c757ce705f4c2a19662e9b2f130583b673b (patch) | |
tree | 3cf25697277a5ff9d473dfe39b7af9871e8f6afc /arch | |
parent | 5596206c19ab8d9002e525985cab87e0e0534c52 (diff) | |
parent | 03f8b48daa66a3a613dde735eebbeff222edba40 (diff) | |
download | barebox-35497c757ce705f4c2a19662e9b2f130583b673b.tar.gz barebox-35497c757ce705f4c2a19662e9b2f130583b673b.tar.xz |
Merge branch 'master' of ssh://sha@octopus/home/git/projects/u-boot-v2
Diffstat (limited to 'arch')
-rw-r--r-- | arch/blackfin/cpu-bf561/init_sdram.S | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/arch/blackfin/cpu-bf561/init_sdram.S b/arch/blackfin/cpu-bf561/init_sdram.S index 84fda76bcd..88e592a574 100644 --- a/arch/blackfin/cpu-bf561/init_sdram.S +++ b/arch/blackfin/cpu-bf561/init_sdram.S @@ -92,6 +92,18 @@ init_sdram: * all other bits set to zero */ + /* first, explicitly enable DF, due to anomaly 05000242 */ + p0.h = hi(PLL_CTL); + p0.l = lo(PLL_CTL); /* Load the address */ + r0.l = w[p0]; + r1 = 1; + r0 = r0 | r1; + cli r2; + ssync; + w[p0] = r0.l; + idle; + sti r2; + r0 = CONFIG_VCO_MULT & 63; /* Load the VCO multiplier */ r0 = r0 << 9; /* Shift it over, */ r1 = CONFIG_CLKIN_HALF; /* Do we need to divide CLKIN by 2?*/ |