summaryrefslogtreecommitdiff
path: root/arch/avr32
diff options
context:
space:
mode:
authorAndreas Bießmann <andreas.devel@googlemail.com>2012-08-16 02:19:19 +0000
committerAndreas Bießmann <andreas.devel@googlemail.com>2012-09-03 23:37:16 +0200
commit6314c84df1155474d0202b51057d1f149ac07db0 (patch)
tree405f8722499c4017869448c25664d58f8b7d0cf3 /arch/avr32
parentef55e84a89967fc8a56b095dfb100010eca94719 (diff)
downloadu-boot-imx-6314c84df1155474d0202b51057d1f149ac07db0.zip
u-boot-imx-6314c84df1155474d0202b51057d1f149ac07db0.tar.gz
u-boot-imx-6314c84df1155474d0202b51057d1f149ac07db0.tar.bz2
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 <andreas.devel@googlemail.com>
Diffstat (limited to 'arch/avr32')
-rw-r--r--arch/avr32/cpu/at32ap700x/portmux.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/avr32/cpu/at32ap700x/portmux.c b/arch/avr32/cpu/at32ap700x/portmux.c
index e3e38a2..7eb42de 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);