stm32: Correct positioning of declaration
[oweals/u-boot.git] / arch / avr32 / cpu / at32ap700x / portmux.c
index b1f2c6f1ffba5f6fd9533172e1b2de9d0991fa98..58327bac87ae48cc9b5e6ce02d55d51a8052d8dd 100644 (file)
@@ -1,30 +1,14 @@
 /*
  * Copyright (C) 2006, 2008 Atmel Corporation
  *
- * See file CREDITS for list of people who contributed to this
- * project.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation; either version 2 of
- * the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
- * MA 02111-1307 USA
+ * SPDX-License-Identifier:    GPL-2.0+
  */
 #include <common.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>
 
 /*
@@ -122,7 +106,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);