net: stmmac: replace the has_sun8i field with a flag
[platform/kernel/linux-rpi.git] / include / linux / stmmac.h
index 15fb07c..66dcf84 100644 (file)
@@ -207,6 +207,7 @@ struct dwmac4_addrs {
 #define STMMAC_FLAG_HAS_INTEGRATED_PCS         BIT(0)
 #define STMMAC_FLAG_SPH_DISABLE                        BIT(1)
 #define STMMAC_FLAG_USE_PHY_WOL                        BIT(2)
+#define STMMAC_FLAG_HAS_SUN8I                  BIT(3)
 
 struct plat_stmmacenet_data {
        int bus_id;
@@ -270,7 +271,6 @@ struct plat_stmmacenet_data {
        struct reset_control *stmmac_ahb_rst;
        struct stmmac_axi *axi;
        int has_gmac4;
-       bool has_sun8i;
        bool tso_en;
        int rss_en;
        int mac_port_sel_speed;