mfd: rtsx: Add clock divider hook
Add callback function conv_clk_and_div_n to convert between SSC clock and its divider N. For rtl8411, the formula to calculate SSC clock divider N is different with the other card reader models. Signed-off-by: Wei WANG <wei_wang@realsil.com.cn> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
parent
ef85e736b1
commit
ab4e8f8b7b
6 changed files with 31 additions and 2 deletions
|
@ -704,6 +704,7 @@ struct pcr_ops {
|
|||
int (*switch_output_voltage)(struct rtsx_pcr *pcr,
|
||||
u8 voltage);
|
||||
unsigned int (*cd_deglitch)(struct rtsx_pcr *pcr);
|
||||
int (*conv_clk_and_div_n)(int clk, int dir);
|
||||
};
|
||||
|
||||
enum PDEV_STAT {PDEV_STAT_IDLE, PDEV_STAT_RUN};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue