]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/powerpc/cpu/mpc512x/fixed_sdram.c
arm: mach-omap2: Generate MLO file from SD boot capable targets
[people/ms/u-boot.git] / arch / powerpc / cpu / mpc512x / fixed_sdram.c
index 6635fb036e8aa9c6d8d6f3107f7241bb8275413d..68c5f8a27b31097cef00a8c52dee40cd6063a2fb 100644 (file)
@@ -1,24 +1,7 @@
 /*
  * (C) Copyright 2007-2009 DENX Software Engineering
  *
- * 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>
@@ -87,7 +70,7 @@ long int fixed_sdram(ddr512x_config_t *mddrc_config,
                mddrc_config = &default_mddrc_config;
        if (dram_init_seq == NULL) {
                dram_init_seq = default_init_seq;
-               seq_sz = sizeof(default_init_seq)/sizeof(u32);
+               seq_sz = ARRAY_SIZE(default_init_seq);
        }
 
        /* Initialize IO Control */