mirror of
https://github.com/hanwckf/immortalwrt-mt798x.git
synced 2025-01-10 03:09:08 +08:00
add board specific UART registration
SVN-Revision: 12654
This commit is contained in:
parent
0513f7bd6e
commit
6ce27efe73
@ -127,6 +127,8 @@ void __init cas7xx_flash_setup(void)
|
|||||||
void __init cas6xx_setup(void)
|
void __init cas6xx_setup(void)
|
||||||
{
|
{
|
||||||
cas6xx_flash_setup();
|
cas6xx_flash_setup();
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
adm5120_add_device_switch(1, NULL);
|
adm5120_add_device_switch(1, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,8 +139,9 @@ ADM5120_BOARD(MACH_ADM5120_CAS670, "Cellvision CAS-670/670W", cas6xx_setup);
|
|||||||
void __init cas7xx_setup(void)
|
void __init cas7xx_setup(void)
|
||||||
{
|
{
|
||||||
cas7xx_flash_setup();
|
cas7xx_flash_setup();
|
||||||
|
|
||||||
cellvision_mac_setup();
|
cellvision_mac_setup();
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
adm5120_add_device_switch(1, NULL);
|
adm5120_add_device_switch(1, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -18,8 +18,10 @@ static u8 nfs101_vlans[6] __initdata = { /* TODO: not tested */
|
|||||||
static void __init nfs101_setup(void)
|
static void __init nfs101_setup(void)
|
||||||
{
|
{
|
||||||
cas6xx_flash_setup();
|
cas6xx_flash_setup();
|
||||||
|
|
||||||
cellvision_mac_setup();
|
cellvision_mac_setup();
|
||||||
|
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
adm5120_add_device_switch(5, nfs101_vlans);
|
adm5120_add_device_switch(5, nfs101_vlans);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,9 +66,6 @@ static int __init adm5120_board_setup(void)
|
|||||||
|
|
||||||
adm5120_gpio_init();
|
adm5120_gpio_init();
|
||||||
|
|
||||||
adm5120_add_device_uart(0);
|
|
||||||
adm5120_add_device_uart(1);
|
|
||||||
|
|
||||||
if (board->board_setup)
|
if (board->board_setup)
|
||||||
board->board_setup();
|
board->board_setup();
|
||||||
|
|
||||||
@ -83,6 +80,9 @@ void __init adm5120_board_register(struct adm5120_board *board)
|
|||||||
|
|
||||||
static void __init adm5120_generic_board_setup(void)
|
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_flash(0);
|
||||||
adm5120_add_device_switch(6, NULL);
|
adm5120_add_device_switch(6, NULL);
|
||||||
}
|
}
|
||||||
|
@ -55,6 +55,9 @@ void __init compex_generic_setup(void)
|
|||||||
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
|
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
|
||||||
adm5120_add_device_flash(0);
|
adm5120_add_device_flash(0);
|
||||||
|
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
|
|
||||||
adm5120_add_device_gpio(COMPEX_GPIO_DEV_MASK);
|
adm5120_add_device_gpio(COMPEX_GPIO_DEV_MASK);
|
||||||
|
|
||||||
compex_mac_setup();
|
compex_mac_setup();
|
||||||
|
@ -76,6 +76,9 @@ void __init br61xx_generic_setup(void)
|
|||||||
|
|
||||||
adm5120_add_device_gpio(BR61XX_GPIO_DEV_MASK);
|
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_add_device_switch(5, br61xx_vlans);
|
||||||
adm5120_add_device_gpio_buttons(ARRAY_SIZE(br61xx_gpio_buttons),
|
adm5120_add_device_gpio_buttons(ARRAY_SIZE(br61xx_gpio_buttons),
|
||||||
br61xx_gpio_buttons);
|
br61xx_gpio_buttons);
|
||||||
|
@ -73,6 +73,9 @@ void __init easy_setup_pqfp(void)
|
|||||||
adm5120_flash0_data.parts = easy_partitions;
|
adm5120_flash0_data.parts = easy_partitions;
|
||||||
#endif /* CONFIG_MTD_PARTITIONS */
|
#endif /* CONFIG_MTD_PARTITIONS */
|
||||||
|
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
|
|
||||||
adm5120_add_device_flash(0);
|
adm5120_add_device_flash(0);
|
||||||
|
|
||||||
easy_setup_mac();
|
easy_setup_mac();
|
||||||
@ -102,6 +105,9 @@ void __init easy_setup_bga(void)
|
|||||||
adm5120_flash0_data.parts = easy_partitions;
|
adm5120_flash0_data.parts = easy_partitions;
|
||||||
#endif /* CONFIG_MTD_PARTITIONS */
|
#endif /* CONFIG_MTD_PARTITIONS */
|
||||||
|
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
|
|
||||||
adm5120_add_device_flash(0);
|
adm5120_add_device_flash(0);
|
||||||
|
|
||||||
easy_setup_mac();
|
easy_setup_mac();
|
||||||
|
@ -141,6 +141,9 @@ void __init rb1xx_generic_setup(void)
|
|||||||
adm5120_pci_set_irq_map(ARRAY_SIZE(rb1xx_pci_irqs),
|
adm5120_pci_set_irq_map(ARRAY_SIZE(rb1xx_pci_irqs),
|
||||||
rb1xx_pci_irqs);
|
rb1xx_pci_irqs);
|
||||||
|
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
|
|
||||||
adm5120_add_device_gpio_buttons(ARRAY_SIZE(rb1xx_gpio_buttons),
|
adm5120_add_device_gpio_buttons(ARRAY_SIZE(rb1xx_gpio_buttons),
|
||||||
rb1xx_gpio_buttons);
|
rb1xx_gpio_buttons);
|
||||||
|
|
||||||
|
@ -77,6 +77,9 @@ void __init p33x_generic_setup(void)
|
|||||||
#endif /* CONFIG_MTD_PARTITIONS */
|
#endif /* CONFIG_MTD_PARTITIONS */
|
||||||
adm5120_add_device_flash(0);
|
adm5120_add_device_flash(0);
|
||||||
|
|
||||||
|
adm5120_add_device_uart(0);
|
||||||
|
adm5120_add_device_uart(1);
|
||||||
|
|
||||||
adm5120_add_device_gpio(P33X_GPIO_DEV_MASK);
|
adm5120_add_device_gpio(P33X_GPIO_DEV_MASK);
|
||||||
|
|
||||||
adm5120_setup_eth_macs(bootbase_info.mac);
|
adm5120_setup_eth_macs(bootbase_info.mac);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user