From: Andreas Bießmann Date: Thu, 16 Aug 2012 02:19:19 +0000 (+0000) Subject: avr32:portmux: fix setup for macb1 X-Git-Tag: v2012.10-rc1~56^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6314c84df1155474d0202b51057d1f149ac07db0;p=u-boot avr32:portmux: fix setup for macb1 Use portd_mask instead of portc_mask to setup the pins for port D. Signed-off-by: Andreas Bießmann --- diff --git a/arch/avr32/cpu/at32ap700x/portmux.c b/arch/avr32/cpu/at32ap700x/portmux.c index e3e38a2a75..7eb42de061 100644 --- a/arch/avr32/cpu/at32ap700x/portmux.c +++ b/arch/avr32/cpu/at32ap700x/portmux.c @@ -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);