diff options
author | Robert Jarzmik <robert.jarzmik@free.fr> | 2018-05-26 05:31:50 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2018-06-04 03:44:17 -0400 |
commit | 4eb1d7fcbc80ec3fc2d628ad8ab7324d8837205e (patch) | |
tree | 45ec65fce91281017534a63f9ca301c1dcad410d | |
parent | 5588bd59b216f1c913a7a693d2b7fc351e963512 (diff) |
mfd: asic3: Fix broken MMC card detection
The MMC framework requires the ocr_mask to be provided. Without it, the
SD card is not detected, especially on the hx4700 platform.
Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/asic3.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c index cf2e25ab2940..1531302a50ec 100644 --- a/drivers/mfd/asic3.c +++ b/drivers/mfd/asic3.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include <linux/mfd/ds1wm.h> | 31 | #include <linux/mfd/ds1wm.h> |
32 | #include <linux/mfd/tmio.h> | 32 | #include <linux/mfd/tmio.h> |
33 | 33 | ||
34 | #include <linux/mmc/host.h> | ||
35 | |||
34 | enum { | 36 | enum { |
35 | ASIC3_CLOCK_SPI, | 37 | ASIC3_CLOCK_SPI, |
36 | ASIC3_CLOCK_OWM, | 38 | ASIC3_CLOCK_OWM, |
@@ -719,6 +721,7 @@ static void asic3_mmc_clk_div(struct platform_device *pdev, int state) | |||
719 | 721 | ||
720 | static struct tmio_mmc_data asic3_mmc_data = { | 722 | static struct tmio_mmc_data asic3_mmc_data = { |
721 | .hclk = 24576000, | 723 | .hclk = 24576000, |
724 | .ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34, | ||
722 | .set_pwr = asic3_mmc_pwr, | 725 | .set_pwr = asic3_mmc_pwr, |
723 | .set_clk_div = asic3_mmc_clk_div, | 726 | .set_clk_div = asic3_mmc_clk_div, |
724 | }; | 727 | }; |