diff options
author | Rui Feng <rui_feng@realsil.com.cn> | 2020-04-15 04:37:17 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-23 16:55:24 +0200 |
commit | c18c1f103503981bfbb3b9c3cdf3d2ea14f8e010 (patch) | |
tree | ed5a202e118e5aaf5c3e67989387d940695b512a /drivers/misc/cardreader | |
parent | sgi-xp: make some symbols static in xpc_main.c (diff) | |
download | linux-c18c1f103503981bfbb3b9c3cdf3d2ea14f8e010.tar.xz linux-c18c1f103503981bfbb3b9c3cdf3d2ea14f8e010.zip |
misc: rtsx: Improve compatibility for rts5261
Change initial clock to improve compatibility for rts5261
Signed-off-by: Rui Feng <rui_feng@realsil.com.cn>
Link: https://lore.kernel.org/r/1586918237-3016-1-git-send-email-rui_feng@realsil.com.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/cardreader')
-rw-r--r-- | drivers/misc/cardreader/rts5261.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/drivers/misc/cardreader/rts5261.c b/drivers/misc/cardreader/rts5261.c index 78c3b1d424c3..4ed86122eaec 100644 --- a/drivers/misc/cardreader/rts5261.c +++ b/drivers/misc/cardreader/rts5261.c @@ -639,8 +639,13 @@ int rts5261_pci_switch_clock(struct rtsx_pcr *pcr, unsigned int card_clock, if (initial_mode) { /* We use 250k(around) here, in initial stage */ - clk_divider = SD_CLK_DIVIDE_128; - card_clock = 30000000; + if (is_version(pcr, PID_5261, IC_VER_D)) { + clk_divider = SD_CLK_DIVIDE_256; + card_clock = 60000000; + } else { + clk_divider = SD_CLK_DIVIDE_128; + card_clock = 30000000; + } } else { clk_divider = SD_CLK_DIVIDE_0; } |