Skip to contentSkip to conversation

avr32:grasshopper: fix PHY initialisation

PATCH New Andreas Bießmann 1 participant 3 messages May 25, 2012 – Jun 4, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 avr32:grasshopper: fix PHY initialisation

---
 board/in-circuit/grasshopper/grasshopper.c |    7 +++++++
 1 file changed, 7 insertions(+)
board/in-circuit/grasshopper/grasshopper.c +7 -0
index 475a759..222fe43 100644
@@ -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
 
Signature · 1 line
1.7.10
#1 lore raw

PATCH 2/2 avr32:board.c: fix compile warning

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.

---
 arch/avr32/lib/board.c |    1 -
 1 file changed, 1 deletion(-)
arch/avr32/lib/board.c +0 -1
index b390a6c..d7a64b4 100644
@@ -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;
Signature · 1 line
1.7.10
author Applied
#2 lore raw

PATCH 2/2 avr32:board.c: fix compile warning

Quoted 11 lines · Andreas Bie?mann

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.

applied

Quoted 16 lines
---
 arch/avr32/lib/board.c |    1 -
 1 file changed, 1 deletion(-)
arch/avr32/lib/board.c +0 -1
index b390a6c..d7a64b4 100644
@@ -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;