mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-10 06:52:53 +00:00
ramips: mtk-mmc: remove nt76x8 pinctrl hack
Now we can set the mt76x8 SDXC pinmux in device tree. Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/17446 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
This commit is contained in:
parent
0764e30082
commit
b4a9f85c13
@ -2210,12 +2210,6 @@ static int msdc_drv_probe(struct platform_device *pdev)
|
|||||||
struct msdc_hw *hw;
|
struct msdc_hw *hw;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
//FIXME: this should be done by pinconf and not by the sd driver
|
|
||||||
if ((ralink_soc == MT762X_SOC_MT7688 ||
|
|
||||||
ralink_soc == MT762X_SOC_MT7628AN) &&
|
|
||||||
(!(rt_sysc_r32(0x60) & BIT(15))))
|
|
||||||
rt_sysc_m32(0xf << 17, 0xf << 17, 0x3c);
|
|
||||||
|
|
||||||
hw = &msdc0_hw;
|
hw = &msdc0_hw;
|
||||||
|
|
||||||
if (of_property_read_bool(pdev->dev.of_node, "mtk,wp-en"))
|
if (of_property_read_bool(pdev->dev.of_node, "mtk,wp-en"))
|
||||||
|
Loading…
Reference in New Issue
Block a user