static void __init cus227_setup(void) { ath79_register_leds_gpio(-1, ARRAY_SIZE(cus227_leds_gpio), cus227_leds_gpio); ath79_register_gpio_keys_polled(-1, CUS227_KEYS_POLL_INTERVAL, ARRAY_SIZE(cus227_gpio_keys), cus227_gpio_keys); ath79_register_usb(); ath79_register_nand(); ath79_mtd_caldata_fixup(&cus227_caldata); cus227_register_spi_devices(cus227_spi_info); ath79_register_wmac(NULL, NULL); /* GMAC1 is connected to the internal switch */ ath79_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_GMII; ath79_eth1_data.speed = SPEED_1000; ath79_eth1_data.duplex = DUPLEX_FULL; ath79_register_mdio(1, 0x0); ath79_register_eth(1); /* Audio initialization: PCM/I2S and CODEC */ cus227_audio_setup(); ath79_audio_device_register(); }
static void __init ap135_dual_setup(void) { ap135_setup(); ath79_register_nand(); }