- }
- else if (ralink_soc == MT762X_SOC_MT7628AN) {
- /* Fixed MT7628 SDXC init by zhangzf */
- reg &= ~((0x3 << 0)|(0x3 << 6)|(0x3 << 10)|(0x1 << 15)|(0x3 << 20)|(0x3 << 24));
- reg |= ((0x1 << 0)|(0x1 << 6)|(0x1 << 10)|(0x1 << 15)|(0x1 << 20)|(0x1 << 24));
-#if defined (CONFIG_MTK_MMC_EMMC_8BIT)
- reg |= 0x3 << 26 | 0x3 << 28 | 0x3 << 30;
-#endif
- reg1 = sdr_read32((void __iomem *)(RALINK_SYSCTL_BASE + 0x1340));
- reg1 |= (0x1 << 11); //Normal mode(AP mode), SDXC CLK=PAD_GPIO0=GPIO11, driving = 8mA
- sdr_write32((void __iomem *)(RALINK_SYSCTL_BASE + 0x1340), reg1);