ar71xx: add v4.14 support
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / ath79 / mach-tl-wpa8630.c
index acdd7c3bb9dd910e3ab22cfc6e3083a399da09ca..a95a11c122781604976690a1293c1bd3d95de032 100644 (file)
 #define TL_WPA8630_WMAC_CALDATA_OFFSET 0x1000
 #define TL_WPA8630_PCI_CALDATA_OFFSET  0x5000
 
+static const char *tl_wpa8630_part_probes[] = {
+       "tp-link-64k",
+       NULL,
+};
+
 static struct flash_platform_data tl_wpa8630_flash_data = {
-       .type = "s25fl064k",
+       .part_probes    = tl_wpa8630_part_probes,
+       .type           = "s25fl064k",
 };
 
 static struct gpio_led tl_wpa8630_leds_gpio[] __initdata = {
@@ -122,7 +128,7 @@ static struct ar8327_platform_data tl_wpa8630_qca8337_data = {
 static struct mdio_board_info tl_wpa8630_mdio0_info[] = {
        {
                .bus_id = "ag71xx-mdio.0",
-               .phy_addr = 0,
+               .mdio_addr = 0,
                .platform_data = &tl_wpa8630_qca8337_data,
        },
 };
@@ -162,5 +168,5 @@ static void __init tl_wpa8630_setup(void)
                                        tl_wpa8630_gpio_keys);
 }
 
-MIPS_MACHINE(ATH79_MACH_TL_WPA8630, "TL-WPA8630", "TP-Link TL-WPA8630",
+MIPS_MACHINE(ATH79_MACH_TL_WPA8630, "TL-WPA8630", "TP-LINK TL-WPA8630",
        tl_wpa8630_setup);