Lines Matching refs:sdhci_pdata
53 struct pic32_sdhci_priv *sdhci_pdata = sdhci_priv(host); in pic32_sdhci_get_max_clock() local
55 return clk_get_rate(sdhci_pdata->base_clk); in pic32_sdhci_get_max_clock()
141 struct pic32_sdhci_priv *sdhci_pdata; in pic32_sdhci_probe() local
153 sdhci_pdata = sdhci_pltfm_priv(pltfm_host); in pic32_sdhci_probe()
163 sdhci_pdata->sys_clk = devm_clk_get(&pdev->dev, "sys_clk"); in pic32_sdhci_probe()
164 if (IS_ERR(sdhci_pdata->sys_clk)) { in pic32_sdhci_probe()
165 ret = PTR_ERR(sdhci_pdata->sys_clk); in pic32_sdhci_probe()
170 ret = clk_prepare_enable(sdhci_pdata->sys_clk); in pic32_sdhci_probe()
176 sdhci_pdata->base_clk = devm_clk_get(&pdev->dev, "base_clk"); in pic32_sdhci_probe()
177 if (IS_ERR(sdhci_pdata->base_clk)) { in pic32_sdhci_probe()
178 ret = PTR_ERR(sdhci_pdata->base_clk); in pic32_sdhci_probe()
183 ret = clk_prepare_enable(sdhci_pdata->base_clk); in pic32_sdhci_probe()
193 pic32_sdhci_probe_platform(pdev, sdhci_pdata); in pic32_sdhci_probe()
203 clk_disable_unprepare(sdhci_pdata->base_clk); in pic32_sdhci_probe()
205 clk_disable_unprepare(sdhci_pdata->sys_clk); in pic32_sdhci_probe()
216 struct pic32_sdhci_priv *sdhci_pdata = sdhci_priv(host); in pic32_sdhci_remove() local
221 clk_disable_unprepare(sdhci_pdata->base_clk); in pic32_sdhci_remove()
222 clk_disable_unprepare(sdhci_pdata->sys_clk); in pic32_sdhci_remove()