summaryrefslogtreecommitdiff
path: root/target/linux/ramips/files-4.14
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-06-01 11:41:04 +0200
committerJohn Crispin <john@phrozen.org>2018-06-01 11:42:03 +0200
commit8a570921b5ba49a2d3824f1220e4c53809063468 (patch)
tree3e02b4b2a83a5147b576d2af182528b1ff1925b7 /target/linux/ramips/files-4.14
parent1d3c2863815c9f48de16643b845a6bc2716cfc33 (diff)
downloadmtk-20170518-8a570921b5ba49a2d3824f1220e4c53809063468.zip
mtk-20170518-8a570921b5ba49a2d3824f1220e4c53809063468.tar.gz
mtk-20170518-8a570921b5ba49a2d3824f1220e4c53809063468.tar.bz2
Revert "ramips: Add back some non-mt7621 code that staging removed"
This reverts commit 048e41f6496697863cc7d73ab95fa89a6ddf2470. Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ramips/files-4.14')
-rw-r--r--target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c
index 97ae927..2a032fc 100644
--- a/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c
+++ b/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc/sd.c
@@ -2209,23 +2209,7 @@ static int msdc_drv_probe(struct platform_device *pdev)
// Set the pins for sdxc to sdxc mode
//FIXME: this should be done by pinctl and not by the sd driver
- if (ralink_soc == MT762X_SOC_MT7620A ||
- ralink_soc == MT762X_SOC_MT7621AT) {
- reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE +
- 0x60)) & ~(0x3 << 18);
- if (ralink_soc == MT762X_SOC_MT7620A)
- reg |= 0x1 << 18;
- } else {
- reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + 0x3c));
- reg |= 0x1e << 16;
- sdr_write32((void __iomem *)(RALINK_SYSCTL_BASE + 0x3c), reg);
- reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE +
- 0x60)) & ~(0x3 << 10);
-#if defined(CONFIG_MTK_MMC_EMMC_8BIT)
- reg |= 0x3 << 26 | 0x3 << 28 | 0x3 << 30;
-#endif
- }
-
+ reg = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + 0x60)) & ~(0x3 << 18);
sdr_write32((void __iomem *)(RALINK_SYSCTL_BASE + 0x60), reg);
hw = &msdc0_hw;