diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-01 07:34:43 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-03-01 07:34:43 +0000 |
commit | ea92a8bef841f248669d42768ee0e25a55dc047a (patch) | |
tree | f77a114619c26882940b56b9f7e426a52d28823e /target/linux/ar71xx | |
parent | e7f38ddc4ffeeb612ce923046f0ddd759e3ce044 (diff) |
ar71xx: register DSA switch for the AP91 based boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19928 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-eth.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-eth.c b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-eth.c index d8dca1005..be48b8a9e 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-eth.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/dev-ap91-eth.c @@ -9,6 +9,20 @@ */ #include "devices.h" +#include "dev-dsa.h" + +static struct dsa_chip_data ap91_dsa_chip = { + .port_names[0] = "cpu", + .port_names[1] = "lan1", + .port_names[2] = "lan2", + .port_names[3] = "lan3", + .port_names[4] = "lan4", +}; + +static struct dsa_platform_data ap91_dsa_data = { + .nr_chips = 1, + .chip = &ap91_dsa_chip, +}; void __init ap91_eth_init(u8 *mac_addr) { @@ -36,4 +50,6 @@ void __init ap91_eth_init(u8 *mac_addr) ar71xx_add_device_mdio(0x0); ar71xx_add_device_eth(1); ar71xx_add_device_eth(0); + + ar71xx_add_device_dsa(1, &ap91_dsa_data); } |