mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Merge "mmc: sdhci-msm: configure sdcc clocks core memory"
This commit is contained in:
commit
26872d7115
1 changed files with 11 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
#include <linux/reset.h>
|
||||
#include <linux/pinctrl/consumer.h>
|
||||
#include <linux/pinctrl/qcom-pinctrl.h>
|
||||
#include <linux/clk/qcom.h>
|
||||
|
||||
#include "sdhci-pltfm.h"
|
||||
#include "cqhci.h"
|
||||
|
|
@ -4392,7 +4393,16 @@ static int sdhci_msm_probe(struct platform_device *pdev)
|
|||
msm_host->bulk_clks);
|
||||
if (ret)
|
||||
goto bus_clk_disable;
|
||||
|
||||
ret = qcom_clk_set_flags(msm_host->bulk_clks[0].clk,
|
||||
CLKFLAG_NORETAIN_MEM);
|
||||
if (ret)
|
||||
dev_err(&pdev->dev, "Failed to set core clk NORETAIN_MEM: %d\n",
|
||||
ret);
|
||||
ret = qcom_clk_set_flags(msm_host->bulk_clks[2].clk,
|
||||
CLKFLAG_RETAIN_MEM);
|
||||
if (ret)
|
||||
dev_err(&pdev->dev, "Failed to set ice clk RETAIN_MEM: %d\n",
|
||||
ret);
|
||||
/*
|
||||
* xo clock is needed for FLL feature of cm_dll.
|
||||
* In case if xo clock is not mentioned in DT, warn and proceed.
|
||||
|
|
|
|||
Loading…
Reference in a new issue