• Home
  • Raw
  • Download

Lines Matching full:clksel

102 		return SDMMC_CLKSEL_GET_DIV(mci_readl(host, CLKSEL)) + 1;  in dw_mci_exynos_get_ciu_div()
160 u32 clksel; in dw_mci_exynos_set_clksel_timing() local
167 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksel_timing()
169 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksel_timing()
171 clksel = (clksel & ~SDMMC_CLKSEL_TIMING_MASK) | timing; in dw_mci_exynos_set_clksel_timing()
178 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksel_timing()
180 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksel_timing()
189 if (!SDMMC_CLKSEL_GET_DRV_WD3(clksel) && host->slot) in dw_mci_exynos_set_clksel_timing()
228 * WAKEUP_INT bit in the CLKSEL register asserted. This bit is 1 to indicate
238 u32 clksel; in dw_mci_exynos_resume_noirq() local
250 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_resume_noirq()
252 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_resume_noirq()
254 if (clksel & SDMMC_CLKSEL_WAKEUP_INT) { in dw_mci_exynos_resume_noirq()
260 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_resume_noirq()
262 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_resume_noirq()
340 u32 timing = ios->timing, clksel; in dw_mci_exynos_set_ios() local
345 clksel = SDMMC_CLKSEL_UP_SAMPLE( in dw_mci_exynos_set_ios()
350 clksel = priv->ddr_timing; in dw_mci_exynos_set_ios()
357 clksel = (priv->sdr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
361 clksel = (priv->ddr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
365 clksel = priv->sdr_timing; in dw_mci_exynos_set_ios()
369 dw_mci_exynos_set_clksel_timing(host, clksel); in dw_mci_exynos_set_ios()
443 return SDMMC_CLKSEL_CCLK_SAMPLE(mci_readl(host, CLKSEL)); in dw_mci_exynos_get_clksmpl()
448 u32 clksel; in dw_mci_exynos_set_clksmpl() local
456 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksmpl()
458 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksmpl()
459 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_set_clksmpl()
465 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksmpl()
467 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksmpl()
473 u32 clksel; in dw_mci_exynos_move_next_clksmpl() local
481 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_move_next_clksmpl()
483 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_move_next_clksmpl()
485 sample = (clksel + 1) & 0x7; in dw_mci_exynos_move_next_clksmpl()
486 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_move_next_clksmpl()
493 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_move_next_clksmpl()
495 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_move_next_clksmpl()