Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions drivers/mmc/host/sdhci-msm.c
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ struct sdhci_msm_host {
/* core, iface, cal and sleep clocks */
struct clk_bulk_data bulk_clks[4];
#ifdef CONFIG_MMC_CRYPTO
struct clk *ice_clk; /* ICE clock */
struct qcom_ice *ice;
#endif
unsigned long clk_rate;
Expand Down Expand Up @@ -2659,6 +2660,17 @@ static int sdhci_msm_probe(struct platform_device *pdev)
return ret;
}

#ifdef CONFIG_MMC_CRYPTO
/* Setup ICE clock */
msm_host->ice_clk = devm_clk_get(&pdev->dev, "ice");
if (!IS_ERR(msm_host->ice_clk)) {
/* Vote for max. clk rate for max. performance */
ret = clk_set_rate(msm_host->ice_clk, INT_MAX);
if (ret)
dev_err(&pdev->dev, "ice clk set rate failed (%d)\n", ret);
}
#endif

/* Setup main peripheral bus clock */
clk = devm_clk_get(&pdev->dev, "iface");
if (IS_ERR(clk)) {
Expand Down