diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2007-08-01 16:54:51 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2007-08-01 16:54:51 +0000 |
commit | c2ed86a8598462a4993631491b9e733b963ff98f (patch) | |
tree | 4dfcda9c4a75ebceaea730c1182c576b994573c3 /target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c | |
parent | a3685c5251e40b654f57a02fdaacd081824e6843 (diff) | |
download | upstream-c2ed86a8598462a4993631491b9e733b963ff98f.tar.gz upstream-c2ed86a8598462a4993631491b9e733b963ff98f.tar.bz2 upstream-c2ed86a8598462a4993631491b9e733b963ff98f.zip |
add support for board specific vlan matrix, should fix #2132
SVN-Revision: 8309
Diffstat (limited to 'target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c')
-rw-r--r-- | target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c b/target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c index 723f27fe70..e3d0513605 100644 --- a/target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c +++ b/target/linux/adm5120-2.6/files/arch/mips/adm5120/platform.c @@ -47,6 +47,8 @@ static void adm5120_uart_set_mctrl(struct amba_device *dev, void __iomem *base, * converted into a real platform driver */ unsigned int adm5120_eth_num_ports = 6; +EXPORT_SYMBOL_GPL(adm5120_eth_num_ports); + unsigned char adm5120_eth_macs[6][6] = { {'\00', 'A', 'D', 'M', '\x51', '\x20' }, {'\00', 'A', 'D', 'M', '\x51', '\x21' }, @@ -55,9 +57,13 @@ unsigned char adm5120_eth_macs[6][6] = { {'\00', 'A', 'D', 'M', '\x51', '\x24' }, {'\00', 'A', 'D', 'M', '\x51', '\x25' } }; - -EXPORT_SYMBOL_GPL(adm5120_eth_num_ports); EXPORT_SYMBOL_GPL(adm5120_eth_macs); + +unsigned char adm5120_eth_vlans[6] = { + 0x41, 0x42, 0x44, 0x48, 0x50, 0x60 +}; +EXPORT_SYMBOL_GPL(adm5120_eth_vlans); + #else /* Built-in ethernet switch */ struct adm5120_switch_platform_data adm5120_switch_data; |