ramips: mtk-mmc: remove nt76x8 pinctrl hack
authorShiji Yang <yangshiji66@qq.com>
Wed, 1 Jan 2025 08:17:53 +0000 (16:17 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 4 Jan 2025 13:47:53 +0000 (14:47 +0100)
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>
target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c

index df95900a26ed27278d2fb6f05c7a1c89827bc7ca..a9c242bfd36840e84e8eedbc1a8bbc02ce657afc 100644 (file)
@@ -2210,12 +2210,6 @@ static int msdc_drv_probe(struct platform_device *pdev)
        struct msdc_hw *hw;
        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;
 
        if (of_property_read_bool(pdev->dev.of_node, "mtk,wp-en"))