OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 47... | Line 47... | |||
47 | #define TL_WR1043_V4_GPIO_LED_WPS 1 |
47 | #define TL_WR1043_V4_GPIO_LED_WPS 1 |
|
48 | #define TL_WR1043_V4_GPIO_LED_SYSTEM 6 |
48 | #define TL_WR1043_V4_GPIO_LED_SYSTEM 6 |
|
Line 49... | Line 49... | |||
49 | |
49 | |
|
Line 50... | Line -... | |||
50 | #define TL_WR1043_V4_GPIO_USB_POWER 8 |
- | ||
51 | |
50 | #define TL_WR1043_V4_GPIO_USB_POWER 8 |
|
52 | #define TL_WR1043_V4_GPIO_LED_INET 15 |
51 | |
|
53 | #define TL_WR1043_V4_GPIO_LED_WAN 16 |
52 | #define TL_WR1043_V4_GPIO_LED_WAN 15 |
|
54 | #define TL_WR1043_V4_GPIO_LED_LAN1 9 |
53 | #define TL_WR1043_V4_GPIO_LED_LAN1 9 |
|
55 | #define TL_WR1043_V4_GPIO_LED_LAN2 14 |
54 | #define TL_WR1043_V4_GPIO_LED_LAN2 14 |
|
Line 62... | Line 61... | |||
62 | #define TL_WR1043_V4_MAC_LOCATION 0x1ff50008 |
61 | #define TL_WR1043_V4_MAC_LOCATION 0x1ff50008 |
|
Line 63... | Line 62... | |||
63 | |
62 | |
|
64 | #define TL_WR1043_V4_EEPROM_ADDR 0x1fff0000 |
63 | #define TL_WR1043_V4_EEPROM_ADDR 0x1fff0000 |
|
Line 65... | Line 64... | |||
65 | #define TL_WR1043_V4_WMAC_CALDATA_OFFSET 0x1000 |
64 | #define TL_WR1043_V4_WMAC_CALDATA_OFFSET 0x1000 |
|
Line 66... | Line 65... | |||
66 | |
65 | |
|
67 | #define TL_WR1043_V5_MAC_LOCATION 0x1ff00008 |
66 | #define TL_WR1043N_V5_MAC_LOCATION 0x1ff00008 |
|
68 | |
67 | |
|
69 | static struct gpio_led tl_wr1043nd_v4_leds_gpio[] __initdata = { |
68 | static struct gpio_led tl_wr1043nd_v4_leds_gpio[] __initdata = { |
|
Line 87... | Line 86... | |||
87 | .gpio = TL_WR1043_V4_GPIO_LED_USB, |
86 | .gpio = TL_WR1043_V4_GPIO_LED_USB, |
|
88 | .active_low = 1, |
87 | .active_low = 1, |
|
89 | }, |
88 | }, |
|
90 | { |
89 | { |
|
91 | .name = "tp-link:green:wan", |
90 | .name = "tp-link:green:wan", |
|
92 | .gpio = TL_WR1043_V4_GPIO_LED_INET, |
- | ||
93 | .active_low = 1, |
- | ||
94 | }, |
- | ||
95 | { |
- | ||
96 | .name = "tp-link:orange:wan", |
- | ||
97 | .gpio = TL_WR1043_V4_GPIO_LED_WAN, |
91 | .gpio = TL_WR1043_V4_GPIO_LED_WAN, |
|
98 | .active_low = 1, |
92 | .active_low = 1, |
|
99 | }, |
93 | }, |
|
100 | { |
94 | { |
|
101 | .name = "tp-link:green:lan1", |
95 | .name = "tp-link:green:lan1", |
|
Line 155... | Line 149... | |||
155 | }; |
149 | }; |
|
Line 156... | Line 150... | |||
156 | |
150 | |
|
157 | static struct mdio_board_info tl_wr1043nd_v4_mdio0_info[] = { |
151 | static struct mdio_board_info tl_wr1043nd_v4_mdio0_info[] = { |
|
158 | { |
152 | { |
|
159 | .bus_id = "ag71xx-mdio.0", |
153 | .bus_id = "ag71xx-mdio.0", |
|
160 | .mdio_addr = 0, |
154 | .phy_addr = 0, |
|
161 | .platform_data = &tl_wr1043nd_v4_ar8327_data, |
155 | .platform_data = &tl_wr1043nd_v4_ar8327_data, |
|
162 | }, |
156 | }, |
|
Line 163... | Line 157... | |||
163 | }; |
157 | }; |
|
Line 214... | Line 208... | |||
214 | .gpio = TL_WR1043_V4_GPIO_LED_WLAN, |
208 | .gpio = TL_WR1043_V4_GPIO_LED_WLAN, |
|
215 | .active_low = 1, |
209 | .active_low = 1, |
|
216 | }, |
210 | }, |
|
217 | { |
211 | { |
|
218 | .name = "tp-link:green:wan", |
212 | .name = "tp-link:green:wan", |
|
219 | .gpio = TL_WR1043_V4_GPIO_LED_INET, |
- | ||
220 | .active_low = 1, |
- | ||
221 | }, |
- | ||
222 | { |
- | ||
223 | .name = "tp-link:orange:wan", |
- | ||
224 | .gpio = TL_WR1043_V4_GPIO_LED_WAN, |
213 | .gpio = TL_WR1043_V4_GPIO_LED_WAN, |
|
225 | .active_low = 1, |
214 | .active_low = 1, |
|
226 | }, |
215 | }, |
|
227 | { |
216 | { |
|
228 | .name = "tp-link:green:lan1", |
217 | .name = "tp-link:green:lan1", |
|
Line 249... | Line 238... | |||
249 | /* The 1043Nv5 is identical to the 1043NDv4, |
238 | /* The 1043Nv5 is identical to the 1043NDv4, |
|
250 | * only missing the usb and small firmware layout changes */ |
239 | * only missing the usb and small firmware layout changes */ |
|
251 | static void __init tl_wr1043nv5_setup(void) |
240 | static void __init tl_wr1043nv5_setup(void) |
|
252 | { |
241 | { |
|
253 | u8 *art = (u8 *) KSEG1ADDR(TL_WR1043_V4_EEPROM_ADDR); |
242 | u8 *art = (u8 *) KSEG1ADDR(TL_WR1043_V4_EEPROM_ADDR); |
|
254 | u8 *mac = (u8 *) KSEG1ADDR(TL_WR1043_V5_MAC_LOCATION); |
243 | u8 *mac = (u8 *) KSEG1ADDR(TL_WR1043N_V5_MAC_LOCATION); |
|
Line 255... | Line 244... | |||
255 | |
244 | |
|
Line 256... | Line 245... | |||
256 | ath79_register_m25p80(NULL); |
245 | ath79_register_m25p80(NULL); |
|
257 | |
246 | |