u-boot/drivers/mmc
Jagan Teki f12341a952 mmc: sdhci: Fix HISPD bit handling
SDHCI HISPD bits need to be configured based on desired mmc
timings mode and some HISPD quirks.

So, handle the HISPD bit based on the mmc computed selected
mode(timing parameter) rather than fixed mmc card clock
frequency.

Linux handle the HISPD similar like this in below commit but no
SDHCI_QUIRK_BROKEN_HISPD_MODE,

commit <501639bf2173> ("mmc: sdhci: fix SDHCI_QUIRK_NO_HISPD_BIT handling")

This eventually fixed the mmc write issue observed in
rk3399 sdhci controller.

Bug log for refernece,
=> gpt write mmc 0 $partitions
Writing GPT: mmc write failed
** Can't write to device 0 **
** Can't write to device 0 **
error!

Cc: Kever Yang <kever.yang@rock-chips.com>
Cc: Peng Fan <peng.fan@nxp.com>
Peng Fan: added back "ctrl &= ~SDHCI_CTRL_HISPD;" per Jaehoon's suggestion
Tested-by: Suniel Mahesh <sunil@amarulasolutions.com> # roc-rk3399-pc
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
2020-06-24 14:05:30 +08:00
..
am654_sdhci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
arm_pl180_mmci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
arm_pl180_mmci.h mmc: arm_pl180_mmci: Sync compatible with kernel 2019-04-23 15:31:30 +02:00
aspeed_sdhci.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
atmel_sdhci.c mmc: atmel_sdhci: Add sam9x60-sdhci compatibility string 2019-10-08 09:16:11 +03:00
bcm2835_sdhci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bcm2835_sdhost.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bcmstb_sdhci.c mmc: bcm: fix uninitialized pointer deref on probe 2019-08-09 13:45:25 +08:00
ca_dw_mmc.c mmc: ca_dw_mmc: Misc cleanup of driver 2020-06-15 09:45:22 +08:00
davinci_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
dw_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
exynos_dw_mmc.c ARM: Odroid XU3: Modify exynos dw_mmc driver to support Odroid XU3 in DM MMC 2018-08-06 10:53:53 +09:00
fsl_esdhc.c mmc: fsl_esdhc: workaround for hardware 3.3v IO reliability issue 2020-06-15 09:45:22 +08:00
fsl_esdhc_imx.c mmc: fsl_esdhc_imx: disable the CMD CRC check for standard tuning 2020-06-24 14:05:30 +08:00
fsl_esdhc_spl.c common: Move hang() to the same header as panic() 2020-01-17 17:53:40 -05:00
ftsdc010_mci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ftsdc010_mci.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
gen_atmel_mci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
hi6220_dw_mmc.c mmc: Add support for HI3660 SoC reusing hi6220_dw_mmc driver 2019-08-11 16:43:41 -04:00
iproc_sdhci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
jz_mmc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig mmc: fsl_esdhc: workaround for hardware 3.3v IO reliability issue 2020-06-15 09:45:22 +08:00
kona_sdhci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
Makefile drivers: mmc: rpmb: do not build for SPL 2020-04-22 20:41:57 +08:00
meson_gx_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
mmc-uclass.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc.c mmc: retry CMD1 in mmc_send_op_cond() until the eMMC is ready 2020-06-24 14:05:30 +08:00
mmc_boot.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc_legacy.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mmc_private.h mmc: add mmc_poll_for_busy() and change the purpose of mmc_send_status() 2019-07-15 10:16:49 +08:00
mmc_spi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mmc_write.c common: Drop part.h from common header 2020-05-18 17:33:33 -04:00
msm_sdhci.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mtk-sd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
mv_sdhci.c mmc: mv_sdhci: fix uninitialized pointer deref on probe 2019-07-31 15:31:36 +08:00
mvebu_mmc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mxcmmc.c common: Move get_ticks() function out of common.h 2019-12-02 18:23:13 -05:00
mxsmmc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
omap_hsmmc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
pci_mmc.c mmc: pci: fix uninitialized pointer deref on probe 2019-08-09 13:45:25 +08:00
pic32_sdhci.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pxa_mmc_gen.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
renesas-sdhi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rockchip_dw_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
rockchip_sdhci.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
rpmb.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
s5p_sdhci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sandbox_mmc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sdhci-cadence.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sdhci.c mmc: sdhci: Fix HISPD bit handling 2020-06-24 14:05:30 +08:00
sh_mmcif.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sh_mmcif.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sh_sdhi.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
snps_dw_mmc.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
socfpga_dw_mmc.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
sti_sdhci.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
stm32_sdmmc2.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sunxi_mmc.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tangier_sdhci.c mmc: tangier_sdhci: fix uninitialized pointer deref on probe 2019-08-09 13:45:25 +08:00
tegra_mmc.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tmio-common.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
tmio-common.h common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
uniphier-sd.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
xenon_sdhci.c common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
zynq_sdhci.c common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00