static void __init tl_wr941nd_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00); ar71xx_set_mac_base(mac); ar71xx_add_device_mdio(0x0); ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; ar71xx_eth0_data.phy_mask = 0x0; ar71xx_eth0_data.speed = SPEED_100; ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_add_device_eth(0); ar71xx_add_device_dsa(0, &tl_wr941nd_dsa_data); ar71xx_add_device_spi(NULL, tl_wr941nd_spi_info, ARRAY_SIZE(tl_wr941nd_spi_info)); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(tl_wr941nd_leds_gpio), tl_wr941nd_leds_gpio); ar71xx_add_device_gpio_buttons(-1, TL_WR941ND_BUTTONS_POLL_INTERVAL, ARRAY_SIZE(tl_wr941nd_gpio_buttons), tl_wr941nd_gpio_buttons); ar91xx_add_device_wmac(); }
static void __init mzk_w300nh_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1fff1000); ar71xx_set_mac_base(mac); ar71xx_add_device_mdio(0x0); ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; ar71xx_eth0_data.phy_mask = 0xf; ar71xx_eth0_data.speed = SPEED_100; ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_eth0_data.has_ar8216 = 1; ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; ar71xx_eth1_data.phy_mask = 0x10; ar71xx_add_device_eth(0); ar71xx_add_device_eth(1); ar71xx_add_device_spi(NULL, mzk_w300nh_spi_info, ARRAY_SIZE(mzk_w300nh_spi_info)); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(mzk_w300nh_leds_gpio), mzk_w300nh_leds_gpio); ar71xx_add_device_gpio_buttons(-1, MZK_W04NU_BUTTONS_POLL_INTERVAL, ARRAY_SIZE(mzk_w300nh_gpio_buttons), mzk_w300nh_gpio_buttons); ar91xx_add_device_wmac(); }
static void __init tew_632brp_setup(void) { ar71xx_add_device_mdio(0x0); ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; ar71xx_eth0_data.phy_mask = 0xf; ar71xx_eth0_data.speed = SPEED_100; ar71xx_eth0_data.duplex = DUPLEX_FULL; ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII; ar71xx_eth1_data.phy_mask = 0x10; ar71xx_add_device_eth(0); ar71xx_add_device_eth(1); ar71xx_add_device_spi(NULL, tew_632brp_spi_info, ARRAY_SIZE(tew_632brp_spi_info)); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(tew_632brp_leds_gpio), tew_632brp_leds_gpio); ar71xx_add_device_gpio_buttons(-1, TEW_632BRP_BUTTONS_POLL_INTERVAL, ARRAY_SIZE(tew_632brp_gpio_buttons), tew_632brp_gpio_buttons); ar91xx_add_device_wmac(); }
static void __init wrt160nl_setup(void) { /* TODO: ethernet, LEDs, buttons */ ar71xx_add_device_spi(NULL, wrt160nl_spi_info, ARRAY_SIZE(wrt160nl_spi_info)); ar71xx_add_device_usb(); ar91xx_add_device_wmac(); }
static void __init ap83_generic_setup(void) { u8 *mac = (u8 *) KSEG1ADDR(0x1fff1000); ar71xx_set_mac_base(mac); ar71xx_add_device_mdio(0xfffffffe); ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth0_data.phy_mask = 0x1; ar71xx_add_device_eth(0); ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth1_data.phy_mask = 0x0; ar71xx_eth1_data.speed = SPEED_1000; ar71xx_eth1_data.duplex = DUPLEX_FULL; ar71xx_eth1_pll_data.pll_1000 = 0x1f000000; ar71xx_add_device_eth(1); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(ap83_leds_gpio), ap83_leds_gpio); ar71xx_add_device_gpio_buttons(-1, 20, ARRAY_SIZE(ap83_gpio_buttons), ap83_gpio_buttons); ar71xx_add_device_usb(); ar91xx_add_device_wmac(); platform_device_register(&ap83_flash_device); spi_register_board_info(ap83_spi_info, ARRAY_SIZE(ap83_spi_info)); }