u-boot/drivers
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
..
adc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ata common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
axi common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
bios_emulator common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
block common: Drop linux/delay.h from common header 2020-05-18 21:19:23 -04:00
board common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
bootcount bootcount_ext: Add Ext4 build dependency 2020-06-02 17:27:04 -04:00
cache common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
clk clk: sifive: fu540-prci: Release ethernet clock reset 2020-06-04 09:44:09 +08:00
core dm: core: Reorder include files in read.c 2020-05-29 20:55:45 -06:00
cpu cpu: imx8: use intended cpu-thermal device when getting temp value 2020-05-22 13:27:46 +02:00
crypto drivers: crypto: mod_exp_sw: Re-add DM_FLAG_PRE_RELOC 2020-05-19 14:01:47 -04:00
ddr ddr: Rework errata A008109, A008378, 009942 workaround 2020-06-04 18:53:20 +05:30
demo common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dfu common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
dma common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
fastboot common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
firmware firmware: PSCI: Fix PSCI support for OF live trees 2020-06-18 13:14:50 -07:00
fpga common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
gpio gpio: mxc_gpio: change gpio index for i.MX8 2020-06-23 00:08:53 +02:00
hwspinlock common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
i2c i2c: observe scl_count in i2c_deblock_gpio_loop() 2020-05-28 05:52:46 +02:00
input kconfig: mark SPL/TPL options for DM_KEYBOARD 2020-06-02 17:27:04 -04:00
led common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mailbox common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc misc: add driver for the SiFive otp controller 2020-06-04 09:44:08 +08:00
mmc mmc: sdhci: Fix HISPD bit handling 2020-06-24 14:05:30 +08:00
mtd mtd: sf: Drop plat from sf_probe 2020-06-01 17:55:24 +05:30
net net: fec: Allow the PHY node to be retrieved 2020-06-22 17:40:49 +02:00
nvme common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pch common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
pci pci: Make Rockchip PCIe voltage regulators optional 2020-05-29 17:59:49 +08:00
pci_endpoint common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
phy Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-sunxi 2020-06-03 11:52:13 -04:00
pinctrl common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
power regulator: fix: enable gpio when requested 2020-06-15 16:37:01 -04:00
pwm common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
qe drivers: net: qe: deselect QE when DM_ETH is enabled 2020-06-03 12:14:27 +05:30
ram sifive: fu540: add ddr driver 2020-06-04 09:44:08 +08:00
remoteproc common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
reset common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rng common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
rtc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
scsi common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
serial serial: Add missing Kconfig dependencies for debug consoles 2020-06-04 15:05:45 -04:00
smem common: Drop linux/bug.h from common header 2020-05-18 21:19:23 -04:00
soc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
sound common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
spi spi: davinci: Drop non-dm code 2020-06-11 15:14:04 +05:30
spmi dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
sysreset common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tee common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
thermal thermal: imx_scu_thermal: prevent boot hang with zero pdata 2020-05-22 13:29:25 +02:00
timer common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
tpm common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
ufs common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
usb eth/r8152: update the firmware 2020-06-14 13:36:29 +02:00
video common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
virtio virtio: VIRTIO_RNG depends on DM_RNG 2020-06-05 04:04:41 +02:00
w1 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
w1-eeprom common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
watchdog common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
Kconfig dm: rng: Add random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
Makefile phy: rockchip: Add Rockchip USB2PHY driver 2020-05-29 18:13:19 +08:00