summaryrefslogtreecommitdiffstats
path: root/board/lwmon5/lwmon5.c
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-07-04 10:06:30 +0200
committerStefan Roese <sr@denx.de>2007-07-04 10:06:30 +0200
commit04e6c38b766eaa2f3287561563c9e215e0c3a0d4 (patch)
treefe6add157fff96f242e74810b3b79aff07625d73 /board/lwmon5/lwmon5.c
parent98c440bee623ecdd5322852732b883e696fb2140 (diff)
downloadblackbird-obmc-uboot-04e6c38b766eaa2f3287561563c9e215e0c3a0d4.tar.gz
blackbird-obmc-uboot-04e6c38b766eaa2f3287561563c9e215e0c3a0d4.zip
ppc4xx: Update lwmon5 board
- Add optional ECC generation routine to preserve existing RAM values. This is needed for the Linux log-buffer support - Add optional DDR2 setup with CL=4 - GPIO50 not used anymore - Lime register setup added Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'board/lwmon5/lwmon5.c')
-rw-r--r--board/lwmon5/lwmon5.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/board/lwmon5/lwmon5.c b/board/lwmon5/lwmon5.c
index d5b8f8c81b..d916284753 100644
--- a/board/lwmon5/lwmon5.c
+++ b/board/lwmon5/lwmon5.c
@@ -19,9 +19,10 @@
*/
#include <common.h>
-#include <asm/processor.h>
#include <ppc440.h>
+#include <asm/processor.h>
#include <asm/gpio.h>
+#include <asm/io.h>
DECLARE_GLOBAL_DATA_PTR;
@@ -220,6 +221,13 @@ int misc_init_r(void)
udelay(500);
gpio_write_bit(CFG_GPIO_LIME_RST, 1);
+ /* Lime memory clock adjusted to 133MHz */
+ out_be32((void *)CFG_LIME_SDRAM_CLOCK, CFG_LIME_CLOCK_133MHZ);
+ /* Wait untill time expired. Because of requirements in lime manual */
+ udelay(300);
+ /* Write lime controller memory parameters */
+ out_be32((void *)CFG_LIME_MMR, CFG_LIME_MMR_VALUE);
+
/*
* Reset PHY's
*/
@@ -229,13 +237,6 @@ int misc_init_r(void)
gpio_write_bit(CFG_GPIO_PHY0_RST, 1);
gpio_write_bit(CFG_GPIO_PHY1_RST, 1);
- /*
- * Reset USB hub
- */
- gpio_write_bit(CFG_GPIO_HUB_RST, 0);
- udelay(100);
- gpio_write_bit(CFG_GPIO_HUB_RST, 1);
-
return 0;
}
OpenPOWER on IntegriCloud