/* * Routine: board_eth_init * Description: initialize module and base-board Ethernet chips */ int board_eth_init(bd_t *bis) { int rc = 0, rc1 = 0; rc1 = handle_mac_address(); if (rc1) printf("No MAC address found! "); rc1 = cl_omap3_smc911x_init(0, 5, CM_T3X_SMC911X_BASE, cm_t3x_reset_net_chip, -EINVAL); if (rc1 > 0) rc++; rc1 = cl_omap3_smc911x_init(1, 4, SB_T35_SMC911X_BASE, NULL, -EINVAL); if (rc1 > 0) rc++; return rc; }
/* * Routine: board_eth_init * Description: initialize module and base-board Ethernet chips */ int board_eth_init(bd_t *bis) { int rc = 0, rc1 = 0; rc1 = cm_t3517_handle_mac_address(); if (rc1) printf("No MAC address found! "); rc1 = cm_t3517_init_emac(bis); if (rc1 > 0) rc++; rc1 = cl_omap3_smc911x_init(0, 4, CONFIG_SMC911X_BASE, NULL, SB_T35_ETH_RST_GPIO); if (rc1 > 0) rc++; return rc; }