bfin: make env offset sector aligned for bct-brettl2 and ibf-dsp561 boards
[oweals/u-boot.git] / board / freescale / mpc7448hpc2 / mpc7448hpc2.c
index f6cd192a810f1f0112ef02716c78aa2783758bf1..11747ca4a4ebc037e3be876d3894d84bb5f4b335 100644 (file)
@@ -3,23 +3,7 @@
  *
  * Roy Zang <tie-fei.zang@freescale.com>
  *
- * 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+
  *
  * modifications for the Tsi108 Emul Board by avb@Tundra
  */
 #include <common.h>
 #include <74xx_7xx.h>
 #include <fdt_support.h>
+#include <netdev.h>
 
 #undef DEBUG
 
 DECLARE_GLOBAL_DATA_PTR;
 
-extern void flush_data_cache (void);
-extern void invalidate_l1_instruction_cache (void);
 extern void tsi108_init_f (void);
 
 int display_mem_map (void);
@@ -61,7 +44,7 @@ int checkboard (void)
 {
        int l_type = 0;
 
-       printf ("BOARD: %s\n", CFG_BOARD_NAME);
+       printf ("BOARD: %s\n", CONFIG_SYS_BOARD_NAME);
        return (l_type);
 }
 
@@ -81,16 +64,26 @@ long int dram_size (int board_type)
        return 0x20000000;      /* 256M bytes */
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        return dram_size (board_type);
 }
 
 #if defined(CONFIG_OF_BOARD_SETUP)
-void
-ft_board_setup(void *blob, bd_t *bd)
+int ft_board_setup(void *blob, bd_t *bd)
 {
        ft_cpu_setup(blob, bd);
        fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
+
+       return 0;
 }
 #endif
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#if defined(CONFIG_TSI108_ETH)
+       rc = tsi108_eth_initialize(bis);
+#endif
+       return rc;
+}