• Home
  • Raw
  • Download

Lines Matching refs:clksel

133 	u32 clksel;  in dw_mci_exynos_set_clksel_timing()  local
137 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksel_timing()
139 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksel_timing()
141 clksel = (clksel & ~SDMMC_CLKSEL_TIMING_MASK) | timing; in dw_mci_exynos_set_clksel_timing()
145 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksel_timing()
147 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksel_timing()
156 if (!SDMMC_CLKSEL_GET_DRV_WD3(clksel) && host->slot) in dw_mci_exynos_set_clksel_timing()
205 u32 clksel; in dw_mci_exynos_resume_noirq() local
214 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_resume_noirq()
216 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_resume_noirq()
218 if (clksel & SDMMC_CLKSEL_WAKEUP_INT) { in dw_mci_exynos_resume_noirq()
221 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_resume_noirq()
223 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_resume_noirq()
300 u32 timing = ios->timing, clksel; in dw_mci_exynos_set_ios() local
305 clksel = SDMMC_CLKSEL_UP_SAMPLE( in dw_mci_exynos_set_ios()
310 clksel = priv->ddr_timing; in dw_mci_exynos_set_ios()
317 clksel = (priv->sdr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
321 clksel = (priv->ddr_timing & 0xfff8ffff) | in dw_mci_exynos_set_ios()
325 clksel = priv->sdr_timing; in dw_mci_exynos_set_ios()
329 dw_mci_exynos_set_clksel_timing(host, clksel); in dw_mci_exynos_set_ios()
405 u32 clksel; in dw_mci_exynos_set_clksmpl() local
410 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_set_clksmpl()
412 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_set_clksmpl()
413 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_set_clksmpl()
416 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_set_clksmpl()
418 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_set_clksmpl()
424 u32 clksel; in dw_mci_exynos_move_next_clksmpl() local
429 clksel = mci_readl(host, CLKSEL64); in dw_mci_exynos_move_next_clksmpl()
431 clksel = mci_readl(host, CLKSEL); in dw_mci_exynos_move_next_clksmpl()
433 sample = (clksel + 1) & 0x7; in dw_mci_exynos_move_next_clksmpl()
434 clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample); in dw_mci_exynos_move_next_clksmpl()
438 mci_writel(host, CLKSEL64, clksel); in dw_mci_exynos_move_next_clksmpl()
440 mci_writel(host, CLKSEL, clksel); in dw_mci_exynos_move_next_clksmpl()