diff options
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 d5b8f8c81..d91628475 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;  } |