]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/avr32/cpu/at32ap700x/portmux.c
avr32:portmux: fix setup for macb1
[karo-tx-uboot.git] / arch / avr32 / cpu / at32ap700x / portmux.c
index b1f2c6f1ffba5f6fd9533172e1b2de9d0991fa98..7eb42de06194c5ca45ca378a5264b5b642f7ba72 100644 (file)
@@ -24,7 +24,7 @@
 #include <asm/io.h>
 
 #include <asm/arch/chip-features.h>
 #include <asm/io.h>
 
 #include <asm/arch/chip-features.h>
-#include <asm/arch/memory-map.h>
+#include <asm/arch/hardware.h>
 #include <asm/arch/portmux.h>
 
 /*
 #include <asm/arch/portmux.h>
 
 /*
@@ -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 */
                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);
                        PORTMUX_FUNC_B, PORTMUX_BUSKEEPER);
        portmux_select_peripheral(PORTMUX_PORT_C, portc_mask,
                        PORTMUX_FUNC_B, PORTMUX_BUSKEEPER);