Merge branch 'u-boot-samsung/master' into 'u-boot-arm/master'
[oweals/u-boot.git] / arch / powerpc / cpu / mpc83xx / cpu_init.c
index 51533519626576bc608ea1f73f7b3487d25e880a..00572de121d51dbe90946f51c27e915358de2ed2 100644 (file)
@@ -1,23 +1,7 @@
 /*
  * Copyright (C) 2004-2009 Freescale Semiconductor, Inc.
  *
- * 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>
@@ -331,7 +315,7 @@ void cpu_init_f (volatile immap_t * im)
 #endif
 #if defined(CONFIG_USB_EHCI_FSL) && defined(CONFIG_MPC831x)
        uint32_t temp;
-       struct usb_ehci *ehci = (struct usb_ehci *)CONFIG_SYS_FSL_USB_ADDR;
+       struct usb_ehci *ehci = (struct usb_ehci *)CONFIG_SYS_FSL_USB1_ADDR;
 
        /* Configure interface. */
        setbits_be32(&ehci->control, REFSEL_16MHZ | UTMI_PHY_EN);
@@ -441,15 +425,15 @@ static int print_83xx_arb_event(int force)
        };
 
        int etype = (gd->arch.arbiter_event_attributes & AEATR_EVENT)
-                   >> AEATR_EVENT_SHIFT;
+                   >> AEATR_EVENT_SHIFT;
        int mstr_id = (gd->arch.arbiter_event_attributes & AEATR_MSTR_ID)
-                     >> AEATR_MSTR_ID_SHIFT;
+                     >> AEATR_MSTR_ID_SHIFT;
        int tbst = (gd->arch.arbiter_event_attributes & AEATR_TBST)
-                  >> AEATR_TBST_SHIFT;
+                  >> AEATR_TBST_SHIFT;
        int tsize = (gd->arch.arbiter_event_attributes & AEATR_TSIZE)
-                   >> AEATR_TSIZE_SHIFT;
+                   >> AEATR_TSIZE_SHIFT;
        int ttype = (gd->arch.arbiter_event_attributes & AEATR_TTYPE)
-                   >> AEATR_TTYPE_SHIFT;
+                   >> AEATR_TTYPE_SHIFT;
 
        if (!force && !gd->arch.arbiter_event_address)
                return 0;