From 8ca0b3f99c4fce7a599dcaf92ae095496dc8c8e0 Mon Sep 17 00:00:00 2001 From: Ben Warren Date: Sun, 31 Aug 2008 10:45:44 -0700 Subject: Moved initialization of TULIP Ethernet controller to board_eth_init() Affected boards: cu824 bab7xx adciop dasa_sim mousse mpc8540eval musenki mvblue pcippc2/pcippc6 sbc8240 stxssa Removed initialization of the driver from net/eth.c Signed-off-by: Ben Warren --- board/esd/dasa_sim/dasa_sim.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'board/esd/dasa_sim/dasa_sim.c') diff --git a/board/esd/dasa_sim/dasa_sim.c b/board/esd/dasa_sim/dasa_sim.c index fb0c77e5664..e061878b626 100644 --- a/board/esd/dasa_sim/dasa_sim.c +++ b/board/esd/dasa_sim/dasa_sim.c @@ -22,6 +22,7 @@ */ #include +#include #include "dasa_sim.h" /* ------------------------------------------------------------------------- */ @@ -222,3 +223,8 @@ int testdram (void) } /* ------------------------------------------------------------------------- */ + +int board_eth_init(bd_t *bis) +{ + return pci_eth_init(bis); +} -- cgit v1.2.3 From 97b0734d65f8a0b03df0a335a2addc759da56107 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Tue, 2 Sep 2008 16:33:05 +0200 Subject: ppc4xx: Remove obsolete or unused functions from some esd boards This patch removes initdram() and testdram() from most esd 405 platforms. Some boards also have an empty dummy implementation of misc_init_f(). This is also removed. Signed-off-by: Matthias Fuchs Signed-off-by: Stefan Roese --- board/esd/dasa_sim/dasa_sim.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'board/esd/dasa_sim/dasa_sim.c') diff --git a/board/esd/dasa_sim/dasa_sim.c b/board/esd/dasa_sim/dasa_sim.c index fb0c77e5664..def035414b5 100644 --- a/board/esd/dasa_sim/dasa_sim.c +++ b/board/esd/dasa_sim/dasa_sim.c @@ -202,23 +202,3 @@ int checkboard (void) return 0; } - - -/* ------------------------------------------------------------------------- */ - -phys_size_t initdram (int board_type) -{ - return (16 * 1024 * 1024); -} - -/* ------------------------------------------------------------------------- */ - -int testdram (void) -{ - /* TODO: XXX XXX XXX */ - printf ("test: 16 MB - ok\n"); - - return (0); -} - -/* ------------------------------------------------------------------------- */ -- cgit v1.2.3 From 7deb3b3ecd0e81ef09bb68aa0ec2346f4ae0a405 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Wed, 3 Sep 2008 17:15:45 +0200 Subject: ppx4xx: Fix broken DASA_SIM board This patch adds initdram() to DASA_SIM boards that has been removed accidentally by a previous commit. Signed-off-by: Matthias Fuchs Signed-off-by: Stefan Roese --- board/esd/dasa_sim/dasa_sim.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'board/esd/dasa_sim/dasa_sim.c') diff --git a/board/esd/dasa_sim/dasa_sim.c b/board/esd/dasa_sim/dasa_sim.c index def035414b5..4cc3a2f45db 100644 --- a/board/esd/dasa_sim/dasa_sim.c +++ b/board/esd/dasa_sim/dasa_sim.c @@ -202,3 +202,8 @@ int checkboard (void) return 0; } + +phys_size_t initdram (int board_type) +{ + return (16 * 1024 * 1024); +} -- cgit v1.2.3