diff mbox

[U-Boot] avr32 portmux : fix incorrect port mask

Message ID 4ADC360C.6000704@mimc.co.uk
State Accepted
Delegated to: Reinhard Meyer
Headers show

Commit Message

Mark Jackson Oct. 19, 2009, 9:49 a.m. UTC
The portmux peripheral pin selection code used when setting up
the MACB1 ethernet port has a small (but critical !!) typo.

Signed-off-by: Mark Jackson <mpfj@mimc.co.uk>
---
 cpu/at32ap/at32ap700x/portmux.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/cpu/at32ap/at32ap700x/portmux.c b/cpu/at32ap/at32ap700x/portmux.c
index b1f2c6f..a60288f 100644
--- a/cpu/at32ap/at32ap700x/portmux.c
+++ b/cpu/at32ap/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);