Skip to contentSkip to conversation

ppc4xx: Fix problem with board_eth_init() vs cpu_eth_init() on AMCC boards

PATCH New Stefan Roese 1 participant 1 message Feb 11, 2009

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ppc4xx: Fix problem with board_eth_init() vs cpu_eth_init() on AMCC boards

Some AMCC eval boards do have a board_eth_init() function calling pci_eth_init(). These boards need to call cpu_eth_init() explicitly now with the new eth_init rework.

---
v2:
- Don't drop the return code from pci_eth_init()

 board/amcc/katmai/katmai.c   |    1 +
 board/amcc/taihu/taihu.c     |    1 +
 board/amcc/taishan/taishan.c |    1 +
 board/amcc/yucca/yucca.c     |    1 +
 4 files changed, 4 insertions(+), 0 deletions(-)
board/amcc/katmai/katmai.c +1 -0
index b6c0c11..e078ba4 100644
@@ -451,5 +451,6 @@ int post_hotkeys_pressed(void)
 
 int board_eth_init(bd_t *bis)
 {
+	cpu_eth_init(bis);
 	return pci_eth_init(bis);
 }
board/amcc/taihu/taihu.c +1 -0
index 5224378..669429b 100644
@@ -195,5 +195,6 @@ int pci_pre_init(struct pci_controller *hose)
 
 int board_eth_init(bd_t *bis)
 {
+	cpu_eth_init(bis);
 	return pci_eth_init(bis);
 }
board/amcc/taishan/taishan.c +1 -0
index 28bdab5..53ce88c 100644
@@ -315,5 +315,6 @@ int post_hotkeys_pressed(void)
 
 int board_eth_init(bd_t *bis)
 {
+	cpu_eth_init(bis);
 	return pci_eth_init(bis);
 }
board/amcc/yucca/yucca.c +1 -0
index c805568..06c7d62 100644
@@ -956,5 +956,6 @@ int onboard_pci_arbiter_selected(int core_pci)
 
 int board_eth_init(bd_t *bis)
 {
+	cpu_eth_init(bis);
 	return pci_eth_init(bis);
 }
Signature · 1 line
1.6.1.3