X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=board%2Fep7312%2Fep7312.c;h=8ed14ad583d4ee54d84bdfbf027e4692dadd2564;hb=a60d1e5b8e5007f53c198acc5ca636ae570ae180;hp=11eab234bce967bbfe19660b8c57d8a1ab02d2a3;hpb=731215ebde3b85f114f7a45eece3c155ba49a2c0;p=u-boot diff --git a/board/ep7312/ep7312.c b/board/ep7312/ep7312.c index 11eab234bc..8ed14ad583 100644 --- a/board/ep7312/ep7312.c +++ b/board/ep7312/ep7312.c @@ -23,10 +23,10 @@ */ #include +#include #include -/* ------------------------------------------------------------------------- */ - +DECLARE_GLOBAL_DATA_PTR; /* * Miscelaneous platform dependent initialisations @@ -34,8 +34,6 @@ int board_init (void) { - DECLARE_GLOBAL_DATA_PTR; - /* Activate LED flasher */ IO_LEDFLSH = 0x40; @@ -50,10 +48,19 @@ int board_init (void) int dram_init (void) { - DECLARE_GLOBAL_DATA_PTR; - gd->bd->bi_dram[0].start = PHYS_SDRAM_1; gd->bd->bi_dram[0].size = PHYS_SDRAM_1_SIZE; return (0); } + +#ifdef CONFIG_CMD_NET +int board_eth_init(bd_t *bis) +{ + int rc = 0; +#ifdef CONFIG_CS8900 + rc = cs8900_initialize(0, CONFIG_CS8900_BASE); +#endif + return rc; +} +#endif