Пример #1
0
static void __init rt_v11st_fe_init(void)
{
	rt288x_gpio_init(RT2880_GPIO_MODE_UART0);

	rt288x_register_flash(0);

	ramips_register_gpio_leds(-1, ARRAY_SIZE(v11st_fe_leds_gpio),
				  v11st_fe_leds_gpio);

	ramips_register_gpio_buttons(-1, V11ST_FE_KEYS_POLL_INTERVAL,
				     ARRAY_SIZE(v11st_fe_gpio_buttons),
				     v11st_fe_gpio_buttons);

	rt288x_register_wifi();

	/* Board is connected to an IC+ IP175C Fast Ethernet switch */
	rt288x_eth_data.speed = SPEED_100;
	rt288x_eth_data.duplex = DUPLEX_FULL;
	rt288x_eth_data.tx_fc = 1;
	rt288x_eth_data.rx_fc = 1;
	rt288x_eth_data.phy_mask = BIT(0);
	rt288x_register_ethernet();

	rt288x_register_wdt();
	rt288x_register_pci();
}
Пример #2
0
static void __init f5d8235_init(void)
{
    rt288x_gpio_init(RT2880_GPIO_MODE_UART0 | RT2880_GPIO_MODE_I2C);

    rt288x_register_flash(0, &f5d8235_flash_data);
    rt288x_register_wifi();
    rt288x_register_wdt();

    ramips_register_gpio_leds(-1, ARRAY_SIZE(f5d8235_leds_gpio),
                              f5d8235_leds_gpio);

    ramips_register_gpio_buttons(-1, F5D8235_BUTTONS_POLL_INTERVAL,
                                 ARRAY_SIZE(f5d8235_gpio_buttons),
                                 f5d8235_gpio_buttons);

    platform_device_register(&f5d8235_rtl8366s_device);

    rt288x_eth_data.speed = SPEED_1000;
    rt288x_eth_data.duplex = DUPLEX_FULL;
    rt288x_eth_data.tx_fc = 1;
    rt288x_eth_data.rx_fc = 1;
    rt288x_register_ethernet();
}