Commit c18c1f10 authored by Rui Feng's avatar Rui Feng Committed by Greg Kroah-Hartman
Browse files

misc: rtsx: Improve compatibility for rts5261

parent 19df2f8e
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -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 */
		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;
	}