mmc: sunxi: Fix DDR MMC timings for A80

The MMC clock timings were incorrectly calculated, when the conversion
from delay value to delay phase was done.

The 50M DDR and 50M DDR 8bit timings are off, and make eMMC DDR
unusable. Unfortunately it seems different controllers on the same SoC
have different timings. The new settings are taken from mmc2, which is
commonly used with eMMC.

The settings for the slower timing modes seem to work despite being
wrong, so leave them be.

Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>

authored by Chen-Yu Tsai and committed by Ulf Hansson 0175249e f7414943

Changed files
+2 -2
drivers
mmc
+2 -2
drivers/mmc/host/sunxi-mmc.c
··· 970 970 [SDXC_CLK_400K] = { .output = 180, .sample = 180 }, 971 971 [SDXC_CLK_25M] = { .output = 180, .sample = 75 }, 972 972 [SDXC_CLK_50M] = { .output = 150, .sample = 120 }, 973 - [SDXC_CLK_50M_DDR] = { .output = 90, .sample = 120 }, 974 - [SDXC_CLK_50M_DDR_8BIT] = { .output = 90, .sample = 120 }, 973 + [SDXC_CLK_50M_DDR] = { .output = 54, .sample = 36 }, 974 + [SDXC_CLK_50M_DDR_8BIT] = { .output = 72, .sample = 72 }, 975 975 }; 976 976 977 977 static int sunxi_mmc_resource_request(struct sunxi_mmc_host *host,