net: dsa: microchip: apply rgmii tx and rx delay in phylink mac config
[linux-2.6-microblaze.git] / drivers / net / dsa / microchip / ksz_common.h
index 24044fc..bf13f72 100644 (file)
@@ -79,6 +79,8 @@ struct ksz_port {
        struct ksz_port_mib mib;
        phy_interface_t interface;
        u16 max_frame;
+       u32 rgmii_tx_val;
+       u32 rgmii_rx_val;
 };
 
 struct ksz_device {
@@ -301,6 +303,7 @@ struct ksz_dev_ops {
                                    phy_interface_t interface,
                                    struct phy_device *phydev, int speed,
                                    int duplex, bool tx_pause, bool rx_pause);
+       void (*setup_rgmii_delay)(struct ksz_device *dev, int port);
        void (*config_cpu_port)(struct dsa_switch *ds);
        int (*enable_stp_addr)(struct ksz_device *dev);
        int (*reset)(struct ksz_device *dev);