1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-26 00:32:25 +02:00

[adm5120] add experimental support for the Cellvision NFS-101U device

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10307 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
juhosg 2008-01-29 08:37:40 +00:00
parent 5c7b26807e
commit d974268ae2
2 changed files with 29 additions and 0 deletions

View File

@ -120,6 +120,23 @@ static void __init cas7xx_setup(void)
/* TODO: setup mac address */ /* TODO: setup mac address */
} }
static void __init nfs_setup(void)
{
gpio_request(ADM5120_GPIO_PIN5, NULL); /* for flash A20 line */
gpio_direction_output(ADM5120_GPIO_PIN5, 0);
/* setup data for flash0 device */
adm5120_flash0_data.switch_bank = switch_bank_gpio5;
adm5120_flash0_data.nr_parts = ARRAY_SIZE(cas6xx_partitions);
adm5120_flash0_data.parts = cas6xx_partitions;
/* TODO: setup mac address */
}
unsigned char nfs_vlans[6] = { /* TODO: not tested */
0x41, 0x42, 0x44, 0x48, 0x50, 0x00
};
/*--------------------------------------------------------------------------*/ /*--------------------------------------------------------------------------*/
ADM5120_BOARD_START(CAS630, "Cellvision CAS-630/630W") ADM5120_BOARD_START(CAS630, "Cellvision CAS-630/630W")
@ -170,3 +187,12 @@ ADM5120_BOARD_START(CAS861, "Cellvision CAS-861/861W")
.devices = cas7xx_devices, .devices = cas7xx_devices,
/* TODO: PCI IRQ map */ /* TODO: PCI IRQ map */
ADM5120_BOARD_END ADM5120_BOARD_END
ADM5120_BOARD_START(NFS101U, "Cellvision NFS-101U/101WU")
.board_setup = nfs_setup,
.eth_num_ports = 5,
.eth_vlans = nfs_vlans,
.num_devices = ARRAY_SIZE(cas6xx_devices),
.devices = cas6xx_devices,
/* TODO: PCI IRQ map */
ADM5120_BOARD_END

View File

@ -54,15 +54,18 @@ static struct board_desc common_boards[] __initdata = {
/* Cellvision/SparkLAN boards */ /* Cellvision/SparkLAN boards */
DEFBOARD("CAS-630", MACH_ADM5120_CAS630), DEFBOARD("CAS-630", MACH_ADM5120_CAS630),
DEFBOARD("CAS-670", MACH_ADM5120_CAS670), DEFBOARD("CAS-670", MACH_ADM5120_CAS670),
DEFBOARD("CAS-700", MACH_ADM5120_CAS700),
DEFBOARD("CAS-771", MACH_ADM5120_CAS771), DEFBOARD("CAS-771", MACH_ADM5120_CAS771),
DEFBOARD("CAS-790", MACH_ADM5120_CAS790), DEFBOARD("CAS-790", MACH_ADM5120_CAS790),
DEFBOARD("CAS-861", MACH_ADM5120_CAS861), DEFBOARD("CAS-861", MACH_ADM5120_CAS861),
DEFBOARD("NFS-101U", MACH_ADM5120_NFS101U),
/* Compex boards */ /* Compex boards */
DEFBOARD("WP54G-WRT", MACH_ADM5120_WP54G_WRT), DEFBOARD("WP54G-WRT", MACH_ADM5120_WP54G_WRT),
/* Edimax boards */ /* Edimax boards */
DEFBOARD("BR-6104K", MACH_ADM5120_BR6104K), DEFBOARD("BR-6104K", MACH_ADM5120_BR6104K),
DEFBOARD("BR-6104KP", MACH_ADM5120_BR6104K), DEFBOARD("BR-6104KP", MACH_ADM5120_BR6104K),
DEFBOARD("BR-6104WG", MACH_ADM5120_BR61x4WG), DEFBOARD("BR-6104WG", MACH_ADM5120_BR61x4WG),
DEFBOARD("BR-6114WG", MACH_ADM5120_BR61x4WG),
/* Infineon boards */ /* Infineon boards */
DEFBOARD("EASY 5120P-ATA", MACH_ADM5120_EASY5120PATA), DEFBOARD("EASY 5120P-ATA", MACH_ADM5120_EASY5120PATA),
DEFBOARD("EASY 5120-RT", MACH_ADM5120_EASY5120RT), DEFBOARD("EASY 5120-RT", MACH_ADM5120_EASY5120RT),