Lines Matching full:clksel

91 		return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL)) + 1;  in dw_mci_exynos_get_ciu_div()
142 u32 clksel; in dw_mci_exynos_set_clksel_timing() local
147 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksel_timing()
149 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksel_timing()
151 clksel = (clksel & ~SDMMC_CLKSEL_TIMING_MASK) | timing; in dw_mci_exynos_set_clksel_timing()
156 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksel_timing()
158 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksel_timing()
167 if (!SDMMC_CLKSEL_GET_DRV_WD3(clksel) && host->slot) in dw_mci_exynos_set_clksel_timing()
206 * WAKEUP_INT bit in the CLKSEL register asserted. This bit is 1 to indicate
216 u32 clksel; in dw_mci_exynos_resume_noirq() local
226 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_resume_noirq()
228 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_resume_noirq()
230 if (clksel & SDMMC_CLKSEL_WAKEUP_INT) { in dw_mci_exynos_resume_noirq()
234 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_resume_noirq()
236 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_resume_noirq()
314 u32 timing = ios->timing, clksel; in dw_mci_exynos_set_ios() local
319 clksel = SDMMC_CLKSEL_UP_SAMPLE( in dw_mci_exynos_set_ios()
324 clksel = priv->ddr_timing; in dw_mci_exynos_set_ios()
331 clksel = (priv->sdr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
335 clksel = (priv->ddr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
339 clksel = priv->sdr_timing; in dw_mci_exynos_set_ios()
343 dw_mci_exynos_set_clksel_timing(host, clksel); in dw_mci_exynos_set_ios()
415 return SDMMC_CLKSEL_CCLK_SAMPLE(mci_readl(host, CLKSEL)); in dw_mci_exynos_get_clksmpl()
420 u32 clksel; in dw_mci_exynos_set_clksmpl() local
426 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksmpl()
428 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksmpl()
429 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_set_clksmpl()
433 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksmpl()
435 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksmpl()
441 u32 clksel; in dw_mci_exynos_move_next_clksmpl() local
447 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_move_next_clksmpl()
449 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_move_next_clksmpl()
451 sample = (clksel + 1) & 0x7; in dw_mci_exynos_move_next_clksmpl()
452 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_move_next_clksmpl()
457 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_move_next_clksmpl()
459 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_move_next_clksmpl()