diff options
author | Wolfgang Denk <wd@denx.de> | 2007-07-06 02:50:34 +0200 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-07-06 02:50:34 +0200 |
commit | e80955f07de03fef0196353e77534b2300193c1c (patch) | |
tree | 2fbe65d20537c38a71bacf505e285595ddd3e01a /board/lwmon5/lwmon5.c | |
parent | f1152f8c28db4a22087c21c618a3f7baa48e9a4f (diff) | |
parent | b44896215a09c60fa40cae906f7ed207bbc2c492 (diff) | |
download | u-boot-imx-e80955f07de03fef0196353e77534b2300193c1c.zip u-boot-imx-e80955f07de03fef0196353e77534b2300193c1c.tar.gz u-boot-imx-e80955f07de03fef0196353e77534b2300193c1c.tar.bz2 |
Merge with /home/wd/git/u-boot/custodian/u-boot-ppc4xx
Diffstat (limited to 'board/lwmon5/lwmon5.c')
-rw-r--r-- | board/lwmon5/lwmon5.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/board/lwmon5/lwmon5.c b/board/lwmon5/lwmon5.c index d5b8f8c..d916284 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; } |