Skip to content

Commit fd9809e

Browse files
hehuaneswincomputingstorulf
authored andcommitted
mmc: sdhci-of-dwcmshc: Fix init for AXI clock for Eswin EIC7700
Accessing the High-Speed registers requires the AXI clock to be enabled. Signed-off-by: Huan He <hehuan1@eswincomputing.com> Acked-by: Adrian Hunter <adrian.hunter@intel.com> Fixes: 32b2633 ("mmc: sdhci-of-dwcmshc: Add support for Eswin EIC7700") Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
1 parent 1226102 commit fd9809e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

drivers/mmc/host/sdhci-of-dwcmshc.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,6 +1595,7 @@ static int eic7700_init(struct device *dev, struct sdhci_host *host, struct dwcm
15951595
{
15961596
u32 emmc_caps = MMC_CAP2_NO_SD | MMC_CAP2_NO_SDIO;
15971597
unsigned int val, hsp_int_status, hsp_pwr_ctrl;
1598+
static const char * const clk_ids[] = {"axi"};
15981599
struct of_phandle_args args;
15991600
struct eic7700_priv *priv;
16001601
struct regmap *hsp_regmap;
@@ -1612,6 +1613,11 @@ static int eic7700_init(struct device *dev, struct sdhci_host *host, struct dwcm
16121613
return ret;
16131614
}
16141615

1616+
ret = dwcmshc_get_enable_other_clks(mmc_dev(host->mmc), dwc_priv,
1617+
ARRAY_SIZE(clk_ids), clk_ids);
1618+
if (ret)
1619+
return ret;
1620+
16151621
ret = of_parse_phandle_with_fixed_args(dev->of_node, "eswin,hsp-sp-csr", 2, 0, &args);
16161622
if (ret) {
16171623
dev_err(dev, "Fail to parse 'eswin,hsp-sp-csr' phandle (%d)\n", ret);

0 commit comments

Comments
 (0)