]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - nand_spl/board/freescale/mpc8536ds/nand_boot.c
Add GPL-2.0+ SPDX-License-Identifier to source files
[people/ms/u-boot.git] / nand_spl / board / freescale / mpc8536ds / nand_boot.c
index af29dc278fb1abb7238857bd75ac4feb1c8e886f..71178e4b9cd9eeb608882c080af32bcf2c2315e9 100644 (file)
@@ -1,22 +1,7 @@
 /*
  * Copyright 2009 Freescale Semiconductor, Inc.
  *
- * 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>
@@ -34,12 +19,11 @@ void board_init_f(ulong bootflag)
        int px_spd;
        u32 plat_ratio, bus_clk, sys_clk;
        ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR;
-       ccsr_lbc_t *lbc = (void *)CONFIG_SYS_MPC85xx_LBC_ADDR;
 
 #if defined(CONFIG_SYS_BR3_PRELIM) && defined(CONFIG_SYS_OR3_PRELIM)
        /* for FPGA */
-       out_be32(&lbc->br3, CONFIG_SYS_BR3_PRELIM);
-       out_be32(&lbc->or3, CONFIG_SYS_OR3_PRELIM);
+       set_lbc_br(3, CONFIG_SYS_BR3_PRELIM);
+       set_lbc_or(3, CONFIG_SYS_OR3_PRELIM);
 #else
 #error CONFIG_SYS_BR3_PRELIM, CONFIG_SYS_OR3_PRELIM must be defined
 #endif