generic: ar8216: add sgmii_delay_en field to ar8327_platform_data
authorGabor Juhos <juhosg@openwrt.org>
Tue, 25 Dec 2012 18:45:31 +0000 (18:45 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 25 Dec 2012 18:45:31 +0000 (18:45 +0000)
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
SVN-Revision: 34881

target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h
target/linux/generic/files/include/linux/ar8216_platform.h

index 8dcaf0a483549e9ae9e0190d0786f1f0a34893a8..b274b1366296bf977cd637f9a13c3446c0fef619 100644 (file)
@@ -917,6 +917,9 @@ ar8327_get_pad_cfg(struct ar8327_pad_cfg *cfg)
                if (cfg->txclk_delay_en)
                        t |= AR8327_PAD_RGMII_TXCLK_DELAY_EN;
 
+               if (cfg->sgmii_delay_en)
+                       t |= AR8327_PAD_SGMII_DELAY_EN;
+
                break;
 
        case AR8327_PAD_MAC2PHY_MII:
index d464101e8f780e2e2b21cb9c3a39e9fba6a1a81c..c83bf44e18fe2f3e363a64c6fa3674127ac67e50 100644 (file)
 #define   AR8327_PAD_PHYX_GMII_EN              BIT(16)
 #define   AR8327_PAD_PHYX_RGMII_EN             BIT(17)
 #define   AR8327_PAD_PHYX_MII_EN               BIT(18)
+#define   AR8327_PAD_SGMII_DELAY_EN            BIT(19)
 #define   AR8327_PAD_RGMII_RXCLK_DELAY_SEL     BITS(20, 2)
 #define   AR8327_PAD_RGMII_RXCLK_DELAY_SEL_S   20
 #define   AR8327_PAD_RGMII_TXCLK_DELAY_SEL     BITS(22, 2)
index 5c75777fc3f6335a9634f95fc18694bdeba8c18b..c6c6144e850ef7e9d35f2dbe9d2c3fbac2bbfdec 100644 (file)
@@ -44,6 +44,7 @@ struct ar8327_pad_cfg {
        bool pipe_rxclk_sel;
        bool txclk_delay_en;
        bool rxclk_delay_en;
+       bool sgmii_delay_en;
        enum ar8327_clk_delay_sel txclk_delay_sel;
        enum ar8327_clk_delay_sel rxclk_delay_sel;
 };