]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/cpu87/cpu87.c
cleanup use of CFG_ENV_IS_IN_FLASH
[karo-tx-uboot.git] / board / cpu87 / cpu87.c
index 9fecdd0dfefa67eda0ab141291de24377b7b7a8a..c7a96f9131bbf382609607842322b36095db469d 100644 (file)
@@ -26,6 +26,7 @@
 #include <mpc8260.h>
 #include "cpu87.h"
 #include <pci.h>
+#include <netdev.h>
 
 /*
  * I/O Port configuration table
@@ -274,7 +275,7 @@ static long int try_init (volatile memctl8260_t * memctl, ulong sdmr,
        return (size);
 }
 
-long int initdram (int board_type)
+phys_size_t initdram (int board_type)
 {
        volatile immap_t *immap = (immap_t *) CFG_IMMR;
        volatile memctl8260_t *memctl = &immap->im_memctl;
@@ -321,8 +322,7 @@ long int initdram (int board_type)
        return (psize);
 }
 
-#if (CONFIG_COMMANDS & CFG_CMD_DOC)
-extern void doc_probe (ulong physadr);
+#if defined(CONFIG_CMD_DOC)
 void doc_init (void)
 {
        doc_probe (CFG_DOC_BASE);
@@ -339,3 +339,8 @@ void pci_init_board(void)
        pci_mpc8250_init(&hose);
 }
 #endif
+
+int board_eth_init(bd_t *bis)
+{
+       return pci_eth_init(bis);
+}