ar71xx: rename ethernet pdata->builtin_switch to use_flow_control
[openwrt/openwrt.git] / target / linux / ar71xx / files / arch / mips / include / asm / mach-ath79 / ag71xx_platform.h
index 43e67557aec25ec0e88b6d83cd14de275e962489..5fd352c638a75063945adadb64b1043cd81b506c 100644 (file)
@@ -19,6 +19,7 @@
 
 struct ag71xx_switch_platform_data {
        u8              phy4_mii_en:1;
+       u8              phy_poll_mask;
 };
 
 struct ag71xx_platform_data {
@@ -35,6 +36,7 @@ struct ag71xx_platform_data {
        u8              is_ar7240:1;
        u8              is_ar724x:1;
        u8              has_ar8216:1;
+       u8              use_flow_control:1;
 
        struct ag71xx_switch_platform_data *switch_data;
 
@@ -44,11 +46,21 @@ struct ag71xx_platform_data {
        u32             fifo_cfg1;
        u32             fifo_cfg2;
        u32             fifo_cfg3;
+
+       unsigned int    max_frame_len;
+       unsigned int    desc_pktlen_mask;
 };
 
 struct ag71xx_mdio_platform_data {
        u32             phy_mask;
-       int             is_ar7240;
+       u8              builtin_switch:1;
+       u8              is_ar7240:1;
+       u8              is_ar9330:1;
+       u8              is_ar934x:1;
+       unsigned long   mdio_clock;
+       unsigned long   ref_clock;
+
+       void            (*reset)(struct mii_bus *bus);
 };
 
 #endif /* __ASM_MACH_ATH79_PLATFORM_H */