]> git.sur5r.net Git - u-boot/blobdiff - board/freescale/mpc7448hpc2/mpc7448hpc2.c
85xx: Fix compile warning in mpc8536ds.c
[u-boot] / board / freescale / mpc7448hpc2 / mpc7448hpc2.c
index fcbebc0e2d8c292b12131683029b9104a78ff86e..117b951c5dd3523bae744cb7841331b59f3dc207 100644 (file)
 
 #include <common.h>
 #include <74xx_7xx.h>
-#if defined(CONFIG_OF_FLAT_TREE)
-#include <ft_build.h>
-extern void ft_cpu_setup (void *blob, bd_t *bd);
-#endif
+#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);
@@ -64,7 +60,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);
 }
 
@@ -84,28 +80,11 @@ 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_FLAT_TREE) && defined(CONFIG_OF_BOARD_SETUP)
-void
-ft_board_setup (void *blob, bd_t *bd)
-{
-       u32 *p;
-       int len;
-
-       ft_cpu_setup (blob, bd);
-
-       p = ft_get_prop (blob, "/memory/reg", &len);
-       if (p != NULL) {
-               *p++ = cpu_to_be32 (bd->bi_memstart);
-               *p = cpu_to_be32 (bd->bi_memsize);
-       }
-}
-#endif
-
 #if defined(CONFIG_OF_BOARD_SETUP)
 void
 ft_board_setup(void *blob, bd_t *bd)
@@ -114,3 +93,12 @@ ft_board_setup(void *blob, bd_t *bd)
        fdt_fixup_memory(blob, (u64)bd->bi_memstart, (u64)bd->bi_memsize);
 }
 #endif
+
+int board_eth_init(bd_t *bis)
+{
+       int rc = 0;
+#if defined(CONFIG_TSI108_ETH)
+       rc = tsi108_eth_initialize(bis);
+#endif
+       return rc;
+}