openwrt/target/linux/ramips/files-4.14/drivers/mmc/host/mtk-mmc
Chuanhong Guo fae125781e ramips: mtk-mmc: mt76x8: check ESD_MODE before applying AGPIO_CFG
Since mt76x8an ver1 eco2, SDXC pins can be switched to the
following pinmap:
sd_d1  -> PAD_I2S_SDI
sd_d0  -> PAD_I2S_WS
sd_cmd -> PAD_I2S_CLK
sd_d3  -> PAD_I2C_SCLK
sd_d2  -> PAD_I2C_SD
sd_clk -> PAD_GPIO0
sd_wp  -> PAD_TXD1
sd_cd  -> PAD_RXD1

To use this pinmap, one would need to set ESD_MODE bit (bit 15)
to 1 in GPIO1_MODE and switch other used pads into GPIO mode.
In this mode, we don't need to switch ethernet pins to digital
pad.

Check ESD_MODE bit before applying AGPIO_CFG and use rt_sysc_m32
to set it.

Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
2019-07-16 09:50:16 +08:00
..
board.h ramips: mmc: Sync with staging driver 2018-05-18 08:49:52 +02:00
dbg.c ramips: mmc: Sync with staging driver 2018-05-18 08:49:52 +02:00
dbg.h ramips: mmc: Sync with staging driver 2018-05-18 08:49:52 +02:00
Kconfig ramips: drop obsolete sd card driver code 2018-09-06 21:35:53 +02:00
Makefile
mt6575_sd.h Revert "ramips: mmc: Fix init for MT7628AN" 2018-08-30 13:19:26 +02:00
sd.c ramips: mtk-mmc: mt76x8: check ESD_MODE before applying AGPIO_CFG 2019-07-16 09:50:16 +08:00