ARM DaVinci: Remove extern phy_t declaration by moving
code to proper place.
Signed-off-by: Hugo Villeneuve <hugo.villeneuve@lyrtech.com>
extern void timer_init(void);
extern int eth_hw_init(void);
extern void timer_init(void);
extern int eth_hw_init(void);
/* Works on Always On power domain only (no PD argument) */
/* Works on Always On power domain only (no PD argument) */
printf("ethernet init failed!\n");
printf("ethernet init failed!\n");
- } else {
- printf("ETH PHY : %s\n", phy.name);
- }
i2c_read (0x39, 0x00, 1, (u_int8_t *)&i, 1);
i2c_read (0x39, 0x00, 1, (u_int8_t *)&i, 1);
extern void timer_init(void);
extern int eth_hw_init(void);
extern void timer_init(void);
extern int eth_hw_init(void);
/* Works on Always On power domain only (no PD argument) */
/* Works on Always On power domain only (no PD argument) */
forceenv("serial#", (char *)&tmp[0]);
}
forceenv("serial#", (char *)&tmp[0]);
}
printf("ethernet init failed!\n");
printf("ethernet init failed!\n");
- } else {
- printf("ETH PHY : %s\n", phy.name);
- }
extern void timer_init(void);
extern int eth_hw_init(void);
extern void timer_init(void);
extern int eth_hw_init(void);
/* Works on Always On power domain only (no PD argument) */
/* Works on Always On power domain only (no PD argument) */
printf("Ethernet init failed\n");
printf("Ethernet init failed\n");
- } else {
- printf("ETH PHY: %s\n", phy.name);
- }
/* On this platform, U-Boot is copied in RAM by the UBL,
* so we are always in the relocated state. */
/* On this platform, U-Boot is copied in RAM by the UBL,
* so we are always in the relocated state. */
extern void timer_init(void);
extern int eth_hw_init(void);
extern void timer_init(void);
extern int eth_hw_init(void);
/* Works on Always On power domain only (no PD argument) */
/* Works on Always On power domain only (no PD argument) */
printf("ethernet init failed!\n");
printf("ethernet init failed!\n");
- } else {
- printf("ETH PHY : %s\n", phy.name);
- }
phy.auto_negotiate = gen_auto_negotiate;
}
phy.auto_negotiate = gen_auto_negotiate;
}
+ printf("Ethernet PHY: %s\n", phy.name);
+