OpenWrt – Diff between revs 2 and 3
?pathlinks?
Rev 2 | Rev 3 | |||
---|---|---|---|---|
Line 10... | Line 10... | |||
10 | * by the Free Software Foundation. |
10 | * by the Free Software Foundation. |
|
11 | */ |
11 | */ |
|
Line 12... | Line 12... | |||
12 | |
12 | |
|
Line 13... | Line -... | |||
13 | #define pr_fmt(fmt) "rb95x: " fmt |
- | ||
14 | |
13 | #define pr_fmt(fmt) "rb95x: " fmt |
|
15 | #include <linux/version.h> |
14 | |
|
16 | #include <linux/phy.h> |
15 | #include <linux/phy.h> |
|
17 | #include <linux/delay.h> |
16 | #include <linux/delay.h> |
|
18 | #include <linux/platform_device.h> |
17 | #include <linux/platform_device.h> |
|
19 | #include <linux/ath9k_platform.h> |
18 | #include <linux/ath9k_platform.h> |
|
20 | #include <linux/ar8216_platform.h> |
- | ||
21 | #include <linux/mtd/mtd.h> |
19 | #include <linux/ar8216_platform.h> |
|
22 | #if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0) |
- | ||
23 | #include <linux/mtd/nand.h> |
- | ||
24 | #else |
- | ||
25 | #include <linux/mtd/rawnand.h> |
20 | #include <linux/mtd/mtd.h> |
|
26 | #endif |
21 | #include <linux/mtd/nand.h> |
|
27 | #include <linux/mtd/partitions.h> |
22 | #include <linux/mtd/partitions.h> |
|
28 | #include <linux/spi/spi.h> |
23 | #include <linux/spi/spi.h> |
|
29 | #include <linux/spi/flash.h> |
24 | #include <linux/spi/flash.h> |
|
Line 117... | Line 112... | |||
117 | }; |
112 | }; |
|
Line 118... | Line 113... | |||
118 | |
113 | |
|
119 | static struct mdio_board_info rb95x_mdio0_info[] = { |
114 | static struct mdio_board_info rb95x_mdio0_info[] = { |
|
120 | { |
115 | { |
|
121 | .bus_id = "ag71xx-mdio.0", |
116 | .bus_id = "ag71xx-mdio.0", |
|
122 | .mdio_addr = 0, |
117 | .phy_addr = 0, |
|
123 | .platform_data = &rb95x_ar8327_data, |
118 | .platform_data = &rb95x_ar8327_data, |
|
124 | }, |
119 | }, |
|
Line 125... | Line 120... | |||
125 | }; |
120 | }; |