OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 9... | Line 9... | |||
9 | * by the Free Software Foundation. |
9 | * by the Free Software Foundation. |
|
10 | */ |
10 | */ |
|
Line 11... | Line 11... | |||
11 | |
11 | |
|
Line 12... | Line -... | |||
12 | #define pr_fmt(fmt) "rb2011: " fmt |
- | ||
13 | |
12 | #define pr_fmt(fmt) "rb2011: " fmt |
|
14 | #include <linux/version.h> |
13 | |
|
15 | #include <linux/phy.h> |
14 | #include <linux/phy.h> |
|
16 | #include <linux/delay.h> |
15 | #include <linux/delay.h> |
|
17 | #include <linux/platform_device.h> |
16 | #include <linux/platform_device.h> |
|
18 | #include <linux/ath9k_platform.h> |
17 | #include <linux/ath9k_platform.h> |
|
19 | #include <linux/ar8216_platform.h> |
- | ||
20 | #include <linux/mtd/mtd.h> |
18 | #include <linux/ar8216_platform.h> |
|
21 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) |
- | ||
22 | #include <linux/mtd/nand.h> |
- | ||
23 | #else |
- | ||
24 | #include <linux/mtd/rawnand.h> |
19 | #include <linux/mtd/mtd.h> |
|
25 | #endif |
20 | #include <linux/mtd/nand.h> |
|
26 | #include <linux/mtd/partitions.h> |
21 | #include <linux/mtd/partitions.h> |
|
27 | #include <linux/spi/spi.h> |
22 | #include <linux/spi/spi.h> |
|
28 | #include <linux/spi/flash.h> |
23 | #include <linux/spi/flash.h> |
|
Line 159... | Line 154... | |||
159 | }; |
154 | }; |
|
Line 160... | Line 155... | |||
160 | |
155 | |
|
161 | static struct mdio_board_info rb2011_mdio0_info[] = { |
156 | static struct mdio_board_info rb2011_mdio0_info[] = { |
|
162 | { |
157 | { |
|
163 | .bus_id = "ag71xx-mdio.0", |
158 | .bus_id = "ag71xx-mdio.0", |
|
164 | .mdio_addr = 0, |
159 | .phy_addr = 0, |
|
165 | .platform_data = &rb2011_ar8327_data, |
160 | .platform_data = &rb2011_ar8327_data, |
|
166 | }, |
161 | }, |
|
Line 167... | Line 162... | |||
167 | }; |
162 | }; |