]> git.sur5r.net Git - u-boot/blobdiff - arch/powerpc/cpu/mpc83xx/spl_minimal.c
SPDX: Convert all of our single license tags to Linux Kernel style
[u-boot] / arch / powerpc / cpu / mpc83xx / spl_minimal.c
index d1648b781070fb2d1ead49bb856cc38da8acd1c2..746f1febba0c050820f757565115bc447caad4e0 100644 (file)
@@ -1,23 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) 2004-2008 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
  */
 
 #include <common.h>
@@ -34,14 +17,10 @@ DECLARE_GLOBAL_DATA_PTR;
  */
 void cpu_init_f (volatile immap_t * im)
 {
-       int i;
-
        /* Pointer is writable since we allocated a register for it */
        gd = (gd_t *) (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_GBL_DATA_OFFSET);
 
-       /* Clear initial global data */
-       for (i = 0; i < sizeof(gd_t); i++)
-               ((char *)gd)[i] = 0;
+       /* global data region was cleared in start.S */
 
        /* system performance tweaking */
 
@@ -63,7 +42,7 @@ void cpu_init_f (volatile immap_t * im)
                           (CONFIG_SYS_SPCR_OPT << SPCR_OPT_SHIFT);
 #endif
 
-       /* Enable Time Base & Decrimenter (so we will have udelay()) */
+       /* Enable Time Base & Decrementer (so we will have udelay()) */
        im->sysconf.spcr |= SPCR_TBEN;
 
        /* DDR control driver register */