forked from Ivasoft/openwrt
ar71xx: add v4.14 support
adds v4.14 patches for testing but leaves v4.9 as default for now. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -86,12 +86,12 @@ static struct at803x_platform_data a60_at803x_data = {
|
||||
static struct mdio_board_info a60_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &a60_at803x_data,
|
||||
},
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 2,
|
||||
.mdio_addr = 2,
|
||||
.platform_data = &a60_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -83,7 +83,7 @@ static struct ar8327_platform_data ap120c_ar8327_data = {
|
||||
static struct mdio_board_info ap120c_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &ap120c_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -98,7 +98,7 @@ static struct ar8327_platform_data ap132_ar8327_data = {
|
||||
static struct mdio_board_info ap132_mdio1_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.1",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &ap132_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -97,7 +97,7 @@ static struct ar8327_platform_data ap152_ar8337_data = {
|
||||
static struct mdio_board_info ap152_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &ap152_ar8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -200,7 +200,7 @@ static struct ar8327_platform_data archer_c7_v4_ar8337_data = {
|
||||
static struct mdio_board_info archer_c7_v4_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &archer_c7_v4_ar8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -155,7 +155,7 @@ static struct ar8327_platform_data archer_c7_v5_ar8337_data = {
|
||||
static struct mdio_board_info archer_c7_v5_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &archer_c7_v5_ar8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -197,7 +197,7 @@ static struct ar8327_platform_data archer_c7_ar8327_data = {
|
||||
static struct mdio_board_info archer_c7_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &archer_c7_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -125,7 +125,7 @@ static struct ar8327_platform_data bhr_4grv2_ar8327_data = {
|
||||
static struct mdio_board_info bhr_4grv2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &bhr_4grv2_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -15,7 +15,11 @@
|
||||
#include <linux/pci.h>
|
||||
#include <linux/phy.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/mtd/physmap.h>
|
||||
#include <linux/platform_device.h>
|
||||
@@ -115,7 +119,7 @@ static struct ar8327_platform_data c60_ar8327_data = {
|
||||
static struct mdio_board_info c60_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &c60_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -243,7 +243,7 @@ static struct ar8327_platform_data cf_e375ac_ar8337_data = {
|
||||
static struct mdio_board_info cf_e375ac_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &cf_e375ac_ar8337_data,
|
||||
},
|
||||
};
|
||||
@@ -323,7 +323,7 @@ static struct at803x_platform_data cf_e380ac_v1v2_at803x_data = {
|
||||
static struct mdio_board_info cf_e380ac_v1v2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &cf_e380ac_v1v2_at803x_data,
|
||||
},
|
||||
};
|
||||
@@ -681,7 +681,7 @@ static struct ar8327_platform_data cf_e385ac_qca8337_data = {
|
||||
static struct mdio_board_info cf_e385ac_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &cf_e385ac_qca8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -128,7 +128,7 @@ static struct ar8327_platform_data cr5000_ar8327_data = {
|
||||
static struct mdio_board_info cr5000_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &cr5000_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -119,7 +119,7 @@ static struct ar8327_platform_data dap2695_ar8327_data = {
|
||||
static struct mdio_board_info dap2695_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dap2695_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -104,7 +104,7 @@ static struct ar8327_platform_data dgl_5500_a1_ar8327_data = {
|
||||
static struct mdio_board_info dgl_5500_a1_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dgl_5500_a1_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -114,7 +114,7 @@ static struct ar8327_platform_data dhp1565a1_ar8327_data = {
|
||||
static struct mdio_board_info dhp1565a1_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dhp1565a1_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -160,7 +160,7 @@ static struct ar8327_platform_data dir825c1_ar8327_data = {
|
||||
static struct mdio_board_info dir825c1_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dir825c1_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -118,7 +118,7 @@ static struct ar8327_platform_data dir869a1_ar8327_data = {
|
||||
static struct mdio_board_info dir869a1_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dir869a1_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -135,7 +135,7 @@ static struct ar8327_platform_data dlan_pro_1200_ac_ar8327_data = {
|
||||
static struct mdio_board_info dlan_pro_1200_ac_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dlan_pro_1200_ac_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -146,7 +146,7 @@ static struct ar8327_platform_data dlan_pro_500_wp_ar8327_data = {
|
||||
static struct mdio_board_info dlan_pro_500_wp_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dlan_pro_500_wp_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -21,7 +21,11 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/ar8216_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/platform/ar934x_nfc.h>
|
||||
|
||||
#include <asm/mach-ath79/ar71xx_regs.h>
|
||||
@@ -131,7 +135,7 @@ static struct ar8327_platform_data dw33d_qca8337_data = {
|
||||
static struct mdio_board_info dw33d_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dw33d_qca8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -139,7 +139,7 @@ static struct at803x_platform_data dr34x_at803x_data = {
|
||||
static struct mdio_board_info dr34x_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &dr34x_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -103,7 +103,7 @@ static struct ar8327_platform_data e1700ac_v2_qca8334_data = {
|
||||
static struct mdio_board_info e1700ac_v2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &e1700ac_v2_qca8334_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -120,7 +120,7 @@ static struct ar8327_platform_data e558_v2_ar8327_data = {
|
||||
static struct mdio_board_info e558_v2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &e558_v2_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -110,7 +110,7 @@ static struct ar8327_platform_data e750g_v8_ar8327_data = {
|
||||
static struct mdio_board_info e750g_v8_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &e750g_v8_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -114,7 +114,7 @@ static struct ar8327_platform_data epg5000_ar8327_data = {
|
||||
static struct mdio_board_info epg5000_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &epg5000_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -113,7 +113,7 @@ static struct ar8327_platform_data esr1750_ar8327_data = {
|
||||
static struct mdio_board_info esr1750_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &esr1750_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -136,7 +136,7 @@ static struct ar8327_platform_data esr900_ar8327_data = {
|
||||
static struct mdio_board_info esr900_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &esr900_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -129,7 +129,7 @@ static struct ar8327_platform_data f9k1115v2_ar8327_data = {
|
||||
static struct mdio_board_info f9k1115v2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &f9k1115v2_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -129,7 +129,7 @@ static struct at803x_platform_data fritz450E_at803x_data = {
|
||||
static struct mdio_board_info fritz450E_mdio_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.1",
|
||||
.phy_addr = FRITZ450E_PHY_ADDRESS,
|
||||
.mdio_addr = FRITZ450E_PHY_ADDRESS,
|
||||
.platform_data = &fritz450E_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -145,7 +145,7 @@ static struct ar8327_platform_data gl_ar750s_ar8327_data = {
|
||||
static struct mdio_board_info gl_ar750s_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &gl_ar750s_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -111,7 +111,7 @@ static struct ar8327_platform_data jwap230_qca8337_data = {
|
||||
static struct mdio_board_info jwap230_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &jwap230_qca8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -94,7 +94,7 @@ static struct at803x_platform_data koala_at803x_data = {
|
||||
static struct mdio_board_info koala_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 5,
|
||||
.mdio_addr = 5,
|
||||
.platform_data = &koala_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -103,7 +103,7 @@ static struct at803x_platform_data mr1750_at803x_data = {
|
||||
static struct mdio_board_info mr1750_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 5,
|
||||
.mdio_addr = 5,
|
||||
.platform_data = &mr1750_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -105,7 +105,7 @@ static struct at803x_platform_data mr900_at803x_data = {
|
||||
static struct mdio_board_info mr900_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 5,
|
||||
.mdio_addr = 5,
|
||||
.platform_data = &mr900_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -144,7 +144,7 @@ static struct ar8327_platform_data mynet_n750_ar8327_data = {
|
||||
static struct mdio_board_info mynet_n750_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &mynet_n750_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -135,7 +135,7 @@ static struct at803x_platform_data mynet_rext_at803x_data = {
|
||||
static struct mdio_board_info mynet_rext_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 4,
|
||||
.mdio_addr = 4,
|
||||
.platform_data = &mynet_rext_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
#include <linux/ar8216_platform.h>
|
||||
#include <linux/gpio.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/platform/ar934x_nfc.h>
|
||||
|
||||
#include <asm/mach-ath79/ar71xx_regs.h>
|
||||
@@ -242,7 +246,7 @@ static struct ar8327_platform_data nbg6716_ar8327_data = {
|
||||
static struct mdio_board_info nbg6716_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &nbg6716_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -160,7 +160,7 @@ static struct at803x_platform_data om5p_an_at803x_data = {
|
||||
static struct mdio_board_info om5p_an_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 7,
|
||||
.mdio_addr = 7,
|
||||
.platform_data = &om5p_an_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -107,12 +107,12 @@ static struct at803x_platform_data om5pac_at803x_data = {
|
||||
static struct mdio_board_info om5pac_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &om5pac_at803x_data,
|
||||
},
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 2,
|
||||
.mdio_addr = 2,
|
||||
.platform_data = &om5pac_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -119,12 +119,12 @@ static struct at803x_platform_data om5pacv2_an_at8031_data = {
|
||||
static struct mdio_board_info om5pacv2_an_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 4,
|
||||
.mdio_addr = 4,
|
||||
.platform_data = &om5pacv2_an_at803x_data,
|
||||
},
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.1",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &om5pacv2_an_at8031_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -39,7 +39,7 @@ static struct at803x_platform_data rambutan_ar8032_data = {
|
||||
static struct mdio_board_info rambutan_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rambutan_ar8032_data,
|
||||
},
|
||||
};
|
||||
@@ -52,7 +52,7 @@ static struct at803x_platform_data rambutan_ar8033_data = {
|
||||
static struct mdio_board_info rambutan_mdio1_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.1",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rambutan_ar8033_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -17,7 +17,11 @@
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include <linux/ar8216_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/spi/flash.h>
|
||||
@@ -156,7 +160,7 @@ static struct ar8327_platform_data rb2011_ar8327_data = {
|
||||
static struct mdio_board_info rb2011_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rb2011_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -199,7 +199,7 @@ static struct ar8327_platform_data rb750gr3_ar8327_data = {
|
||||
static struct mdio_board_info rb750g3_mdio_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rb750gr3_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -15,7 +15,11 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/spi/74x164.h>
|
||||
@@ -227,7 +231,7 @@ static struct at803x_platform_data rb91x_at803x_data = {
|
||||
static struct mdio_board_info rb91x_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rb91x_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -13,7 +13,11 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/spi/flash.h>
|
||||
@@ -108,7 +112,7 @@ static struct at803x_platform_data rb922gs_at803x_data = {
|
||||
static struct mdio_board_info rb922gs_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = RB922_PHY_ADDR,
|
||||
.mdio_addr = RB922_PHY_ADDR,
|
||||
.platform_data = &rb922gs_at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -18,7 +18,11 @@
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include <linux/ar8216_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/spi/flash.h>
|
||||
@@ -114,7 +118,7 @@ static struct ar8327_platform_data rb95x_ar8327_data = {
|
||||
static struct mdio_board_info rb95x_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rb95x_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -328,7 +328,7 @@ static struct ar8327_platform_data rb962_ar8327_data = {
|
||||
static struct mdio_board_info rb962_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &rb962_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -17,7 +17,11 @@
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/mtd/partitions.h>
|
||||
#include <linux/spi/spi.h>
|
||||
#include <linux/spi/flash.h>
|
||||
|
||||
@@ -95,7 +95,7 @@ static struct at803x_platform_data at803x_data = {
|
||||
static struct mdio_board_info sc1750_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -82,7 +82,7 @@ static struct at803x_platform_data at803x_data = {
|
||||
static struct mdio_board_info sc300m_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -99,7 +99,7 @@ static struct at803x_platform_data at803x_data = {
|
||||
static struct mdio_board_info sc450_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &at803x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -114,7 +114,7 @@ static struct ar8327_platform_data sr3200_xd3200_qca833x_data = {
|
||||
static struct mdio_board_info sr3200_xd3200_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &sr3200_xd3200_qca833x_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -122,7 +122,7 @@ static struct ar8327_platform_data tew_823dru_ar8327_data = {
|
||||
static struct mdio_board_info tew_823dru_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &tew_823dru_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -148,7 +148,7 @@ static struct ar8327_platform_data wdr4300_ar8327_data = {
|
||||
static struct mdio_board_info wdr4300_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wdr4300_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -128,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,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -115,7 +115,7 @@ static struct ar8327_platform_data db120_ar8327_data = {
|
||||
static struct mdio_board_info db120_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &db120_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -159,7 +159,7 @@ static struct ar8327_platform_data wr1043nd_v2_ar8327_data = {
|
||||
static struct mdio_board_info wr1043nd_v2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wr1043nd_v2_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -157,7 +157,7 @@ static struct ar8327_platform_data tl_wr1043nd_v4_ar8327_data = {
|
||||
static struct mdio_board_info tl_wr1043nd_v4_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &tl_wr1043nd_v4_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -131,7 +131,7 @@ static struct ar8327_platform_data ubnt_unifiac_pro_ar8327_data = {
|
||||
static struct mdio_board_info ubnt_unifiac_pro_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &ubnt_unifiac_pro_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -342,7 +342,7 @@ static struct ar8327_platform_data uap_pro_ar8327_data = {
|
||||
static struct mdio_board_info uap_pro_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &uap_pro_ar8327_data,
|
||||
},
|
||||
};
|
||||
@@ -489,7 +489,7 @@ static struct at803x_platform_data ubnt_loco_m_xw_at803x_data = {
|
||||
static struct mdio_board_info ubnt_loco_m_xw_mdio_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 1,
|
||||
.mdio_addr = 1,
|
||||
.platform_data = &ubnt_loco_m_xw_at803x_data,
|
||||
},
|
||||
};
|
||||
@@ -596,7 +596,7 @@ static struct at803x_platform_data ubnt_rocket_m_ti_at803_data = {
|
||||
static struct mdio_board_info ubnt_rocket_m_ti_mdio_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 4,
|
||||
.mdio_addr = 4,
|
||||
.platform_data = &ubnt_rocket_m_ti_at803_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -126,7 +126,7 @@ static struct ar8327_platform_data wlr8100_ar8327_data = {
|
||||
static struct mdio_board_info wlr8100_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wlr8100_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -16,7 +16,11 @@
|
||||
#include <linux/ath9k_platform.h>
|
||||
#include <linux/ar8216_platform.h>
|
||||
#include <linux/mtd/mtd.h>
|
||||
#if LINUX_VERSION_CODE < KERNEL_VERSION(4,14,0)
|
||||
#include <linux/mtd/nand.h>
|
||||
#else
|
||||
#include <linux/mtd/rawnand.h>
|
||||
#endif
|
||||
#include <linux/platform/ar934x_nfc.h>
|
||||
|
||||
#include <asm/mach-ath79/ar71xx_regs.h>
|
||||
@@ -158,7 +162,7 @@ static struct ar8327_platform_data wndr4300_ar8327_data = {
|
||||
static struct mdio_board_info wndr4300_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wndr4300_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -130,7 +130,7 @@ static struct ar8327_platform_data wpj342_ar8327_data = {
|
||||
static struct mdio_board_info wpj342_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wpj342_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -124,7 +124,7 @@ static struct ar8327_platform_data wpj344_ar8327_data = {
|
||||
static struct mdio_board_info wpj344_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wpj344_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -127,7 +127,7 @@ static struct ar8327_platform_data wpj558_ar8327_data = {
|
||||
static struct mdio_board_info wpj558_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wpj558_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -106,7 +106,7 @@ static struct ar8327_platform_data WPJ563_ar8337_data = {
|
||||
static struct mdio_board_info WPJ563_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &WPJ563_ar8337_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -168,7 +168,7 @@ static struct ar8327_platform_data wzr_450hp2_ar8327_data = {
|
||||
static struct mdio_board_info wzr_450hp2_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = 0,
|
||||
.mdio_addr = 0,
|
||||
.platform_data = &wzr_450hp2_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -114,7 +114,7 @@ static struct ar8327_platform_data z1_ar8327_data = {
|
||||
static struct mdio_board_info z1_mdio0_info[] = {
|
||||
{
|
||||
.bus_id = "ag71xx-mdio.0",
|
||||
.phy_addr = Z1_ETH_SWITCH_PHY,
|
||||
.mdio_addr = Z1_ETH_SWITCH_PHY,
|
||||
.platform_data = &z1_ar8327_data,
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user