Lines Matching refs:clksel

143 	u32 clksel;  in dw_mci_exynos_set_clksel_timing()  local
148 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksel_timing()
150 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksel_timing()
152 clksel = (clksel & ~SDMMC_CLKSEL_TIMING_MASK) | timing; in dw_mci_exynos_set_clksel_timing()
157 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksel_timing()
159 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksel_timing()
168 if (!SDMMC_CLKSEL_GET_DRV_WD3(clksel) && host->slot) in dw_mci_exynos_set_clksel_timing()
217 u32 clksel; in dw_mci_exynos_resume_noirq() local
227 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_resume_noirq()
229 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_resume_noirq()
231 if (clksel & SDMMC_CLKSEL_WAKEUP_INT) { in dw_mci_exynos_resume_noirq()
235 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_resume_noirq()
237 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_resume_noirq()
315 u32 timing = ios->timing, clksel; in dw_mci_exynos_set_ios() local
320 clksel = SDMMC_CLKSEL_UP_SAMPLE( in dw_mci_exynos_set_ios()
325 clksel = priv->ddr_timing; in dw_mci_exynos_set_ios()
332 clksel = (priv->sdr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
336 clksel = (priv->ddr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
340 clksel = priv->sdr_timing; in dw_mci_exynos_set_ios()
344 dw_mci_exynos_set_clksel_timing(host, clksel); in dw_mci_exynos_set_ios()
421 u32 clksel; in dw_mci_exynos_set_clksmpl() local
427 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksmpl()
429 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksmpl()
430 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_set_clksmpl()
434 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksmpl()
436 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksmpl()
442 u32 clksel; in dw_mci_exynos_move_next_clksmpl() local
448 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_move_next_clksmpl()
450 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_move_next_clksmpl()
452 sample = (clksel + 1) & 0x7; in dw_mci_exynos_move_next_clksmpl()
453 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_move_next_clksmpl()
458 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_move_next_clksmpl()
460 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_move_next_clksmpl()