Esempio n. 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(); */
}
Esempio n. 2
0
static void __init adm5120_generic_board_setup(void)
{
	adm5120_add_device_uart(0);
	adm5120_add_device_uart(1);

	adm5120_add_device_flash(0);
	adm5120_add_device_switch(6, NULL);
}
Esempio n. 3
0
static void __init cellvision_flash_setup(void)
{
	/* setup flash A20 line */
	gpio_request(CELLVISION_GPIO_FLASH_A20, NULL);
	gpio_direction_output(CELLVISION_GPIO_FLASH_A20, 0);

	adm5120_flash0_data.switch_bank = switch_bank_gpio5;
	adm5120_add_device_flash(0);
}
Esempio n. 4
0
void __init rb1xx_add_device_flash(void)
{
	/* setup data for flash0 device */
	adm5120_flash0_data.nr_parts = ARRAY_SIZE(rb1xx_nor_parts);
	adm5120_flash0_data.parts = rb1xx_nor_parts;
	adm5120_flash0_data.window_size = 128*1024;

	adm5120_add_device_flash(0);
}
Esempio n. 5
0
void __init rb1xx_add_device_flash(void)
{
	/* setup data for flash0 device */
#ifdef CONFIG_MTD_PARTITIONS
	adm5120_flash0_data.nr_parts = ARRAY_SIZE(rb1xx_nor_parts);
	adm5120_flash0_data.parts = rb1xx_nor_parts;
#endif /* CONFIG_MTD_PARTITIONS */
	adm5120_flash0_data.window_size = 128*1024;

	adm5120_add_device_flash(0);
}
Esempio n. 6
0
void __init easy_setup_bga(void)
{
	/* setup flash A20 line */
	gpio_request(ADM5120_GPIO_PIN5, NULL);
	gpio_direction_output(ADM5120_GPIO_PIN5, 0);
	adm5120_flash0_data.switch_bank = switch_bank_gpio5;

#ifdef CONFIG_MTD_PARTITIONS
	adm5120_flash0_data.nr_parts = ARRAY_SIZE(easy_partitions);
	adm5120_flash0_data.parts = easy_partitions;
#endif /* CONFIG_MTD_PARTITIONS */

	adm5120_add_device_uart(0);
	adm5120_add_device_uart(1);

	adm5120_add_device_flash(0);

	easy_setup_mac();
}
Esempio n. 7
0
void __init br61xx_generic_setup(void)
{

    adm5120_flash0_data.nr_parts = ARRAY_SIZE(br61xx_partitions);
    adm5120_flash0_data.parts = br61xx_partitions;
    adm5120_add_device_flash(0);

    adm5120_add_device_gpio(BR61XX_GPIO_DEV_MASK);

    adm5120_add_device_uart(0);
    adm5120_add_device_uart(1);

    adm5120_add_device_switch(5, br61xx_vlans);

    adm5120_register_gpio_buttons(-1, BR61XX_KEYS_POLL_INTERVAL,
                                  ARRAY_SIZE(br61xx_gpio_buttons),
                                  br61xx_gpio_buttons);

    br61xx_mac_setup();
}
Esempio n. 8
0
void __init pmugw_setup(void)
{
	/* setup flash A20 line */
	gpio_request(ADM5120_GPIO_PIN5, NULL);
	gpio_direction_output(ADM5120_GPIO_PIN5, 0);
	adm5120_flash0_data.switch_bank = switch_bank_gpio5;

#ifdef CONFIG_MTD_PARTITIONS
	adm5120_flash0_data.nr_parts = ARRAY_SIZE(pmugw_partitions);
	adm5120_flash0_data.parts = pmugw_partitions;
#endif /* CONFIG_MTD_PARTITIONS */

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

	adm5120_add_device_flash(0);

	pmugw_setup_mac();
	adm5120_add_device_switch(5, pmugw_vlans);
}