static void __init cm_t35_init_ethernet(void) { regulator_register_fixed(0, cm_t35_smsc911x_supplies, ARRAY_SIZE(cm_t35_smsc911x_supplies)); regulator_register_fixed(1, sb_t35_smsc911x_supplies, ARRAY_SIZE(sb_t35_smsc911x_supplies)); gpmc_smsc911x_init(&cm_t35_smsc911x_cfg); gpmc_smsc911x_init(&sb_t35_smsc911x_cfg); }
static inline void __init omap3evm_init_smsc911x(void) { /* Configure ethernet controller reset gpio */ if (cpu_is_omap3430()) { if (get_omap3_evm_rev() == OMAP3EVM_BOARD_GEN_1) smsc911x_cfg.gpio_reset = OMAP3EVM_GEN1_ETHR_GPIO_RST; else smsc911x_cfg.gpio_reset = OMAP3EVM_GEN2_ETHR_GPIO_RST; } gpmc_smsc911x_init(&smsc911x_cfg); }
static inline void __init omap3stalker_init_eth(void) { struct clk *l3ck; unsigned int rate; l3ck = clk_get(NULL, "l3_ck"); if (IS_ERR(l3ck)) rate = 100000000; else rate = clk_get_rate(l3ck); omap_mux_init_gpio(19, OMAP_PIN_INPUT_PULLUP); gpmc_smsc911x_init(&smsc911x_cfg); }
static inline void __init board_smsc911x_init(void) { if (machine_is_omap3530_lv_som()) { /* OMAP3530 LV SOM board */ board_smsc911x_data.gpio_irq = OMAP3530_LV_SOM_SMSC911X_GPIO_IRQ; omap_mux_init_signal("gpio_152", OMAP_PIN_INPUT); } else if (machine_is_omap3_torpedo()) { /* OMAP3 Torpedo board */ board_smsc911x_data.gpio_irq = OMAP3_TORPEDO_SMSC911X_GPIO_IRQ; omap_mux_init_signal("gpio_129", OMAP_PIN_INPUT); } else { /* unsupported board */ printk(KERN_ERR "%s(): unknown machine type\n", __func__); return; } gpmc_smsc911x_init(&board_smsc911x_data); }
static inline void __init omap3evm_init_smsc911x(void) { struct clk *l3ck; unsigned int rate; l3ck = clk_get(NULL, "l3_ck"); if (IS_ERR(l3ck)) rate = 100000000; else rate = clk_get_rate(l3ck); /* Configure ethernet controller reset gpio */ if (cpu_is_omap3430()) { if (get_omap3_evm_rev() == OMAP3EVM_BOARD_GEN_1) smsc911x_cfg.gpio_reset = OMAP3EVM_GEN1_ETHR_GPIO_RST; else smsc911x_cfg.gpio_reset = OMAP3EVM_GEN2_ETHR_GPIO_RST; } gpmc_smsc911x_init(&smsc911x_cfg); }
static void __init overo_init_smsc911x(void) { gpmc_smsc911x_init(&smsc911x_cfg); gpmc_smsc911x_init(&smsc911x2_cfg); }
static inline void __init omap3stalker_init_eth(void) { omap_mux_init_gpio(19, OMAP_PIN_INPUT_PULLUP); gpmc_smsc911x_init(&smsc911x_cfg); }
static inline void __init igep2_init_smsc911x(void) { gpmc_smsc911x_init(&smsc911x_cfg); }
static inline void __init zoom_init_smsc911x(void) { gpmc_smsc911x_init(&zoom_smsc911x_cfg); }
static void __init cm_t35_init_ethernet(void) { gpmc_smsc911x_init(&cm_t35_smsc911x_cfg); gpmc_smsc911x_init(&sb_t35_smsc911x_cfg); }
static inline void __init pcm049_init_smsc911x(void) { omap_mux_init_gpio(OMAP4_PCM049_ETH_GPIO_IRQ, OMAP_PIN_INPUT); gpmc_smsc911x_init(&board_smsc911x_data); }