Skip to contentSkip to conversation

avr32:portmux: fix setup for macb1

PATCH New Andreas Bießmann 1 participant 1 message Aug 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 avr32:portmux: fix setup for macb1

Use portd_mask instead of portc_mask to setup the pins for port D.

---
 arch/avr32/cpu/at32ap700x/portmux.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/avr32/cpu/at32ap700x/portmux.c +1 -1
index e3e38a2..7eb42de 100644
@@ -122,7 +122,7 @@ void portmux_enable_macb1(unsigned long flags, unsigned long drive_strength)
 		portd_mask |= (1 << 15);/* SPD	*/
 
 	/* REVISIT: Some pins are probably pure outputs */
-	portmux_select_peripheral(PORTMUX_PORT_D, portc_mask,
+	portmux_select_peripheral(PORTMUX_PORT_D, portd_mask,
 			PORTMUX_FUNC_B, PORTMUX_BUSKEEPER);
 	portmux_select_peripheral(PORTMUX_PORT_C, portc_mask,
 			PORTMUX_FUNC_B, PORTMUX_BUSKEEPER);
Signature · 1 line
1.7.10.4