Beispiel #1
0
static void __init eb214a_setup(void)
{
#ifdef CONFIG_MTD_PARTITIONS
	adm5120_flash0_data.nr_parts = ARRAY_SIZE(eb214a_partitions);
	adm5120_flash0_data.parts = eb214a_partitions;
#endif /* CONFIG_MTD_PARTITIONS */
	adm5120_add_device_flash(0);

	adm5120_add_device_gpio(EB214A_GPIO_DEV_MASK);

	adm5120_add_device_uart(0);
	/* adm5120_add_device_uart(1); */

	adm5120_add_device_switch(5, eb214a_vlans);

	eb214a_mac_setup();

	adm5120_add_device_gpio_buttons(ARRAY_SIZE(eb214a_gpio_buttons),
					eb214a_gpio_buttons);

	adm5120_add_device_gpio_leds(ARRAY_SIZE(eb214a_gpio_leds),
					eb214a_gpio_leds);

	adm5120_pci_set_irq_map(ARRAY_SIZE(eb214a_pci_irqs),
					eb214a_pci_irqs);
	/* adm5120_add_device_usb(); */
}
Beispiel #2
0
static void __init rb150_setup(void)
{
	rb1xx_gpio_buttons[0].gpio = RB150_GPIO_RESET_BUTTON;
	rb1xx_generic_setup();
	rb150_add_device_nand();

	adm5120_add_device_gpio_leds(ARRAY_SIZE(rb150_gpio_leds),
					rb150_gpio_leds);
	adm5120_add_device_switch(5, rb150_vlans);
}
Beispiel #3
0
static void __init rb153_setup(void)
{
	rb1xx_generic_setup();
	rb1xx_add_device_nand();
	rb153_add_device_cf();

	adm5120_add_device_gpio_leds(ARRAY_SIZE(rb153_gpio_leds),
					rb153_gpio_leds);
	adm5120_add_device_switch(5, rb153_vlans);
}
Beispiel #4
0
static void __init easy5120_rt_setup(void)
{
	easy_setup_bga();

	adm5120_add_device_switch(5, easy5120_rt_vlans);
	adm5120_add_device_usb();
	adm5120_add_device_gpio_leds(ARRAY_SIZE(easy5120_rt_gpio_leds),
					easy5120_rt_gpio_leds);
	adm5120_pci_set_irq_map(ARRAY_SIZE(easy5120_rt_pci_irqs),
				easy5120_rt_pci_irqs);
}
Beispiel #5
0
static void __init np28g_setup(void)
{
    compex_generic_setup();

    /* setup reset line */
    gpio_request(ADM5120_GPIO_PIN4, NULL);
    gpio_direction_output(ADM5120_GPIO_PIN4, 1);
    adm5120_board_reset = np28g_reset;

    adm5120_add_device_switch(4, np28g_vlans);
    adm5120_add_device_usb();

    adm5120_add_device_gpio_leds(ARRAY_SIZE(np28g_gpio_leds),
                                 np28g_gpio_leds);

    adm5120_pci_set_irq_map(ARRAY_SIZE(np28g_pci_irqs), np28g_pci_irqs);
}
Beispiel #6
0
static void __init wp54_setup(void)
{
	compex_generic_setup();

	/* setup reset line */
	gpio_request(ADM5120_GPIO_PIN3, NULL);
	gpio_direction_output(ADM5120_GPIO_PIN3, 1);
	adm5120_board_reset = wp54_reset;

	adm5120_add_device_switch(2, wp54_vlans);
	adm5120_add_device_gpio_buttons(ARRAY_SIZE(wp54_gpio_buttons),
					wp54_gpio_buttons);
	adm5120_add_device_gpio_leds(ARRAY_SIZE(wp54_gpio_leds),
					wp54_gpio_leds);

	adm5120_pci_set_irq_map(ARRAY_SIZE(wp54_pci_irqs), wp54_pci_irqs);
}
Beispiel #7
0
static void __init br6104k_setup(void)
{
	br61xx_generic_setup();
	adm5120_add_device_gpio_leds(ARRAY_SIZE(br6104k_gpio_leds),
					br6104k_gpio_leds);
}