The dw_mmc library already assists in invoking mmc_of_parse() to
provide unified parsing for variant drivers. We can also call
mmc_of_parse_clk_phase() to help variant drivers achieve unified parsing.
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
if (ret)
return ret;
+ mmc_of_parse_clk_phase(host->dev, &host->phase_map);
+
ret = dw_mci_init_host_caps(host);
if (ret)
return ret;
* @pdev: platform_device registered
* @rstc: Reset controller for this host.
* @detect_delay_ms: Delay in mS before detecting cards after interrupt.
+ * @phase_map: The map for recording in and out phases for each timing
*
* Locking
* =======
struct platform_device *pdev;
struct reset_control *rstc;
u32 detect_delay_ms;
+ struct mmc_clk_phase_map phase_map;
};
/* DMA ops for Internal/External DMAC interface */