This bit used bit[6:7].
We can assume the below values.
00 - 200ps
01 - 300ps
10 - 400ps
11 - 500ps
This bit is set to maximum value(0x3) to use 500ps.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
sample = (clksel + 1) & 0x7;
clksel = SDMMC_CLKSEL_UP_SAMPLE(clksel, sample) |
- SDMMC_CLKSEL_SAMPLE_CLK_TUNING;
+ SDMMC_CLKSEL_SAMPLE_CLK_TUNING(0x3);
if (priv->ctrl_type == DW_MCI_TYPE_EXYNOS7 ||
priv->ctrl_type == DW_MCI_TYPE_EXYNOS7_SMU)
SDMMC_CLKSEL_CCLK_DRIVE(y) | \
SDMMC_CLKSEL_CCLK_DIVIDER(z))
#define SDMMC_CLKSEL_TIMING_MASK SDMMC_CLKSEL_TIMING(0x7, 0x7, 0x7)
-#define SDMMC_CLKSEL_SAMPLE_CLK_TUNING BIT(6)
+#define SDMMC_CLKSEL_SAMPLE_CLK_TUNING(x) ((x) << 6)
#define SDMMC_CLKSEL_WAKEUP_INT BIT(11)
/* RCLK_EN register defines */