mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
gmac: move drive strength control from driver to dts
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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__);
|
||||
|
||||
Reference in New Issue
Block a user