* [U-Boot] [PATCH 1/2] avr32:grasshopper: fix PHY initialisation
@ 2012-05-25 10:29 Andreas Bießmann
2012-05-25 10:29 ` [U-Boot] [PATCH 2/2] avr32:board.c: fix compile warning Andreas Bießmann
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2012-05-25 10:29 UTC (permalink / raw)
To: u-boot
Signed-off-by: Andreas Bie?mann <andreas.devel@googlemail.com>
---
board/in-circuit/grasshopper/grasshopper.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/board/in-circuit/grasshopper/grasshopper.c b/board/in-circuit/grasshopper/grasshopper.c
index 475a759..222fe43 100644
--- a/board/in-circuit/grasshopper/grasshopper.c
+++ b/board/in-circuit/grasshopper/grasshopper.c
@@ -72,6 +72,13 @@ int board_early_init_f(void)
portmux_enable_usart0(PORTMUX_DRIVE_MIN);
portmux_enable_usart1(PORTMUX_DRIVE_MIN);
#if defined(CONFIG_MACB)
+ /* set PHY reset and pwrdown to low */
+ portmux_select_gpio(PORTMUX_PORT_B, (1 << 29) | (1 << 30),
+ PORTMUX_DIR_OUTPUT | PORTMUX_INIT_LOW);
+ udelay(100);
+ /* release PHYs reset */
+ gpio_set_value(GPIO_PIN_PB(29), 1);
+
portmux_enable_macb0(PORTMUX_MACB_MII, PORTMUX_DRIVE_LOW);
#endif
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 2/2] avr32:board.c: fix compile warning
2012-05-25 10:29 [U-Boot] [PATCH 1/2] avr32:grasshopper: fix PHY initialisation Andreas Bießmann
@ 2012-05-25 10:29 ` Andreas Bießmann
2012-06-04 10:46 ` Andreas Bießmann
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Bießmann @ 2012-05-25 10:29 UTC (permalink / raw)
To: u-boot
This patch fixes following warning:
---8<---
board.c: In function 'board_init_r':
board.c:257: warning: unused variable 's'
--->8---
Patch de30122bb58fee7b0f94bcfabab595b6ad757336 missed to remove this variable
too.
Signed-off-by: Andreas Bie?mann <andreas.devel@googlemail.com>
---
arch/avr32/lib/board.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
index b390a6c..d7a64b4 100644
--- a/arch/avr32/lib/board.c
+++ b/arch/avr32/lib/board.c
@@ -254,7 +254,6 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
#ifndef CONFIG_ENV_IS_NOWHERE
extern char * env_name_spec;
#endif
- char *s;
bd_t *bd;
gd = new_gd;
--
1.7.10
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [PATCH 2/2] avr32:board.c: fix compile warning
2012-05-25 10:29 ` [U-Boot] [PATCH 2/2] avr32:board.c: fix compile warning Andreas Bießmann
@ 2012-06-04 10:46 ` Andreas Bießmann
0 siblings, 0 replies; 3+ messages in thread
From: Andreas Bießmann @ 2012-06-04 10:46 UTC (permalink / raw)
To: u-boot
On 25.05.2012 12:29, Andreas Bie?mann wrote:
> This patch fixes following warning:
>
> ---8<---
> board.c: In function 'board_init_r':
> board.c:257: warning: unused variable 's'
> --->8---
>
> Patch de30122bb58fee7b0f94bcfabab595b6ad757336 missed to remove this variable
> too.
>
> Signed-off-by: Andreas Bie?mann <andreas.devel@googlemail.com>
applied
> ---
> arch/avr32/lib/board.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/arch/avr32/lib/board.c b/arch/avr32/lib/board.c
> index b390a6c..d7a64b4 100644
> --- a/arch/avr32/lib/board.c
> +++ b/arch/avr32/lib/board.c
> @@ -254,7 +254,6 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
> #ifndef CONFIG_ENV_IS_NOWHERE
> extern char * env_name_spec;
> #endif
> - char *s;
> bd_t *bd;
>
> gd = new_gd;
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-06-04 10:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-25 10:29 [U-Boot] [PATCH 1/2] avr32:grasshopper: fix PHY initialisation Andreas Bießmann
2012-05-25 10:29 ` [U-Boot] [PATCH 2/2] avr32:board.c: fix compile warning Andreas Bießmann
2012-06-04 10:46 ` Andreas Bießmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox