mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 21:00:37 +02:00
generic: ar8216: add sgmii_delay_en field to ar8327_platform_data
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34881 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
ffbe131263
commit
a735287d68
@ -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:
|
||||
|
@ -281,6 +281,7 @@
|
||||
#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)
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user