|
@@ -19,6 +19,7 @@
|
|
|
#include <linux/ata_platform.h>
|
|
#include <linux/ata_platform.h>
|
|
|
#include <linux/mv643xx_eth.h>
|
|
#include <linux/mv643xx_eth.h>
|
|
|
#include <linux/ethtool.h>
|
|
#include <linux/ethtool.h>
|
|
|
|
|
+#include <net/dsa.h>
|
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach-types.h>
|
|
|
#include <asm/mach/arch.h>
|
|
#include <asm/mach/arch.h>
|
|
|
#include <asm/mach/pci.h>
|
|
#include <asm/mach/pci.h>
|
|
@@ -74,6 +75,15 @@ static struct mv643xx_eth_platform_data rd88f6281_ge00_data = {
|
|
|
.duplex = DUPLEX_FULL,
|
|
.duplex = DUPLEX_FULL,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
|
|
+static struct dsa_platform_data rd88f6281_switch_data = {
|
|
|
|
|
+ .port_names[0] = "lan1",
|
|
|
|
|
+ .port_names[1] = "lan2",
|
|
|
|
|
+ .port_names[2] = "lan3",
|
|
|
|
|
+ .port_names[3] = "lan4",
|
|
|
|
|
+ .port_names[4] = "wan",
|
|
|
|
|
+ .port_names[5] = "cpu",
|
|
|
|
|
+};
|
|
|
|
|
+
|
|
|
static struct mv_sata_platform_data rd88f6281_sata_data = {
|
|
static struct mv_sata_platform_data rd88f6281_sata_data = {
|
|
|
.n_ports = 2,
|
|
.n_ports = 2,
|
|
|
};
|
|
};
|
|
@@ -87,6 +97,7 @@ static void __init rd88f6281_init(void)
|
|
|
|
|
|
|
|
kirkwood_ehci_init();
|
|
kirkwood_ehci_init();
|
|
|
kirkwood_ge00_init(&rd88f6281_ge00_data);
|
|
kirkwood_ge00_init(&rd88f6281_ge00_data);
|
|
|
|
|
+ kirkwood_ge00_switch_init(&rd88f6281_switch_data, NO_IRQ);
|
|
|
kirkwood_rtc_init();
|
|
kirkwood_rtc_init();
|
|
|
kirkwood_sata_init(&rd88f6281_sata_data);
|
|
kirkwood_sata_init(&rd88f6281_sata_data);
|
|
|
kirkwood_uart0_init();
|
|
kirkwood_uart0_init();
|