mmc: sunxi: add support for automatic delay calibration
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 6 Nov 2018 04:24:28 +0000 (20:24 -0800)
committerVagrant Cascadian <vagrant@debian.org>
Wed, 14 Nov 2018 21:32:35 +0000 (21:32 +0000)
commit7dbd50ffef3d8053560f3c3bffd9820254ce138b
treea7a3d850676a88ea6d7e459f6c0f163258ba6e85
parent2b291e748bd79b73af95396cccbd84636157fb77
mmc: sunxi: add support for automatic delay calibration

A64 and H6 support automatic delay calibration and Linux driver uses it
instead of hardcoded delays. Add support for it to u-boot driver.

Fixes eMMC instability on Pinebook

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Tested-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Cc: Vagrant Cascadian <vagrant@debian.org>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Gbp-Pq: Topic pinebook
Gbp-Pq: Name 0007-mmc-sunxi-add-support-for-automatic-delay-calibratio.patch
arch/arm/include/asm/arch-sunxi/mmc.h
drivers/mmc/sunxi_mmc.c