gmac: move drive strength control from driver to dts

This commit is contained in:
hwg
2014-08-12 10:49:04 +08:00
parent 0b68f87101
commit acbaa08812
2 changed files with 22 additions and 3 deletions

View File

@@ -220,6 +220,28 @@
//could add other pinctrl definition such as gpio
// gmac drive strength
gpio4_gmac {
mac_clk: mac-clk {
rockchip,drive = <VALUE_DRV_12MA>;
};
mac_txpins: mac-txpins {
rockchip,drive = <VALUE_DRV_12MA>;
};
mac_rxpins: mac-rxpins {
rockchip,drive = <VALUE_DRV_12MA>;
};
mac_crs: mac-crs {
rockchip,drive = <VALUE_DRV_12MA>;
};
mac_mdpins: mac-mdpins {
rockchip,drive = <VALUE_DRV_12MA>;
};
};
};
&nandc0 {

View File

@@ -162,9 +162,6 @@ int stmmc_pltfr_init(struct platform_device *pdev) {
grf_writel(GMAC_TXCLK_DLY_ENABLE, RK3288_GRF_SOC_CON3);
grf_writel(GMAC_CLK_RX_DL_CFG(0x10), RK3288_GRF_SOC_CON3);
grf_writel(GMAC_CLK_TX_DL_CFG(0x30), RK3288_GRF_SOC_CON3);
grf_writel(0xffffffff,RK3288_GRF_GPIO3D_E);
grf_writel(grf_readl(RK3288_GRF_GPIO4B_E) | 0x3<<2<<16 | 0x3<<2, RK3288_GRF_GPIO4B_E);
grf_writel(0xffffffff,RK3288_GRF_GPIO4A_E);
} else if (phy_iface == PHY_INTERFACE_MODE_RMII) {
pr_info("%s: init for RMII\n", __func__);