diff options
Diffstat (limited to 'arch/arm/mach-orion5x/rd88f5181l-ge-setup.c')
-rw-r--r-- | arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c index ebde81416499..8ad3934399d4 100644 --- a/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c +++ b/arch/arm/mach-orion5x/rd88f5181l-ge-setup.c | |||
@@ -17,6 +17,7 @@ | |||
17 | #include <linux/mv643xx_eth.h> | 17 | #include <linux/mv643xx_eth.h> |
18 | #include <linux/ethtool.h> | 18 | #include <linux/ethtool.h> |
19 | #include <linux/i2c.h> | 19 | #include <linux/i2c.h> |
20 | #include <net/dsa.h> | ||
20 | #include <asm/mach-types.h> | 21 | #include <asm/mach-types.h> |
21 | #include <asm/gpio.h> | 22 | #include <asm/gpio.h> |
22 | #include <asm/leds.h> | 23 | #include <asm/leds.h> |
@@ -94,6 +95,15 @@ static struct mv643xx_eth_platform_data rd88f5181l_ge_eth_data = { | |||
94 | .duplex = DUPLEX_FULL, | 95 | .duplex = DUPLEX_FULL, |
95 | }; | 96 | }; |
96 | 97 | ||
98 | static struct dsa_platform_data rd88f5181l_ge_switch_data = { | ||
99 | .port_names[0] = "lan2", | ||
100 | .port_names[1] = "lan1", | ||
101 | .port_names[2] = "wan", | ||
102 | .port_names[3] = "cpu", | ||
103 | .port_names[5] = "lan4", | ||
104 | .port_names[7] = "lan3", | ||
105 | }; | ||
106 | |||
97 | static struct i2c_board_info __initdata rd88f5181l_ge_i2c_rtc = { | 107 | static struct i2c_board_info __initdata rd88f5181l_ge_i2c_rtc = { |
98 | I2C_BOARD_INFO("ds1338", 0x68), | 108 | I2C_BOARD_INFO("ds1338", 0x68), |
99 | }; | 109 | }; |
@@ -112,6 +122,7 @@ static void __init rd88f5181l_ge_init(void) | |||
112 | */ | 122 | */ |
113 | orion5x_ehci0_init(); | 123 | orion5x_ehci0_init(); |
114 | orion5x_eth_init(&rd88f5181l_ge_eth_data); | 124 | orion5x_eth_init(&rd88f5181l_ge_eth_data); |
125 | orion5x_eth_switch_init(&rd88f5181l_ge_switch_data, gpio_to_irq(8)); | ||
115 | orion5x_i2c_init(); | 126 | orion5x_i2c_init(); |
116 | orion5x_uart0_init(); | 127 | orion5x_uart0_init(); |
117 | 128 | ||