Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2963070a authored by Chen-Yu Tsai's avatar Chen-Yu Tsai Committed by Ulf Hansson
Browse files

mmc: sunxi: Disable eMMC HS-DDR (MMC_CAP_1_8V_DDR) for Allwinner A80



eMMC HS-DDR no longer works on the A80, despite it working when support
for this developed.

Disable it for now.

Signed-off-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 6e1c7d61
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1129,6 +1129,11 @@ static int sunxi_mmc_probe(struct platform_device *pdev)
				  MMC_CAP_1_8V_DDR |
				  MMC_CAP_ERASE | MMC_CAP_SDIO_IRQ;

	/* TODO MMC DDR is not working on A80 */
	if (of_device_is_compatible(pdev->dev.of_node,
				    "allwinner,sun9i-a80-mmc"))
		mmc->caps &= ~MMC_CAP_1_8V_DDR;

	ret = mmc_of_parse(mmc);
	if (ret)
		goto error_free_dma;