]> git.sur5r.net Git - u-boot/blobdiff - lib_sparc/board.c
asm-generic/signal.h: import from linux
[u-boot] / lib_sparc / board.c
index e69431f8b896e5de9c1d6ea8f0c554ff192250fc..11eea603c11f131a039fb2781eaf7ea44ab9ca68 100644 (file)
 #include <ambapp.h>
 #endif
 
+#ifdef CONFIG_BITBANGMII
+#include <miiphy.h>
+#endif
+
 DECLARE_GLOBAL_DATA_PTR;
 
 /* Debug options
@@ -74,25 +78,6 @@ static char *failed = "*** failed ***\n";
 
 ulong monitor_flash_len;
 
-/************************************************************************
- * Utilities                                                           *
- ************************************************************************
- */
-
-/*
- * The Malloc area is immediately below the monitor copy in RAM
- */
-static void mem_malloc_init(ulong start, ulong size)
-{
-       mem_malloc_start = start;
-       mem_malloc_end = start + size;
-       mem_malloc_brk = start
-
-       memset((void *)mem_malloc_start, 0, size);
-}
-
-/***********************************************************************/
-
 /************************************************************************
  * Init Utilities                                                      *
  ************************************************************************
@@ -313,7 +298,7 @@ void board_init_f(ulong bootflag)
         */
        interrupt_init();
 
-       /* initialize malloc() area */
+       /* The Malloc area is immediately below the monitor copy in RAM */
        mem_malloc_init(CONFIG_SYS_MALLOC_BASE,
                        CONFIG_SYS_MALLOC_END - CONFIG_SYS_MALLOC_BASE);
        malloc_bin_reloc();
@@ -424,6 +409,9 @@ void board_init_f(ulong bootflag)
        doc_init();
 #endif
 
+#ifdef CONFIG_BITBANGMII
+       bb_miiphy_init();
+#endif
 #if defined(CONFIG_CMD_NET)
 #if defined(CONFIG_NET_MULTI)
        WATCHDOG_RESET();