diff options
author | Wei WANG <wei_wang@realsil.com.cn> | 2013-01-23 09:51:06 +0800 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-27 01:30:20 +0100 |
commit | ab4e8f8b7bdfeff0c961fdbbdacb262d68f094c0 (patch) | |
tree | 543440d2656343141c14e565e795a655378a0f72 /include/linux/mfd/rtsx_pci.h | |
parent | ef85e736b1052d8c1e56990f0d08b6fce7cdbe41 (diff) | |
download | linux-ab4e8f8b7bdfeff0c961fdbbdacb262d68f094c0.tar.gz linux-ab4e8f8b7bdfeff0c961fdbbdacb262d68f094c0.tar.bz2 linux-ab4e8f8b7bdfeff0c961fdbbdacb262d68f094c0.zip |
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>
Diffstat (limited to 'include/linux/mfd/rtsx_pci.h')
-rw-r--r-- | include/linux/mfd/rtsx_pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mfd/rtsx_pci.h b/include/linux/mfd/rtsx_pci.h index 271b6e5654af..4b117a3f54d4 100644 --- a/include/linux/mfd/rtsx_pci.h +++ b/include/linux/mfd/rtsx_pci.h @@ -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}; |