rts5229.c (4b4193256c8d3bc3a5397b5cd9494c2ad386317d) rts5229.c (3df4fce739e2b263120f528c5e0fe6b2f8937b5b)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Driver for Realtek PCI-Express card reader
3 *
4 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
5 *
6 * Author:
7 * Wei WANG <wei_wang@realsil.com.cn>
8 */

--- 232 unchanged lines hidden (view full) ---

241 pcr->num_slots = 2;
242 pcr->ops = &rts5229_pcr_ops;
243
244 pcr->flags = 0;
245 pcr->card_drive_sel = RTSX_CARD_DRIVE_DEFAULT;
246 pcr->sd30_drive_sel_1v8 = DRIVER_TYPE_B;
247 pcr->sd30_drive_sel_3v3 = DRIVER_TYPE_D;
248 pcr->aspm_en = ASPM_L1_EN;
1// SPDX-License-Identifier: GPL-2.0-or-later
2/* Driver for Realtek PCI-Express card reader
3 *
4 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
5 *
6 * Author:
7 * Wei WANG <wei_wang@realsil.com.cn>
8 */

--- 232 unchanged lines hidden (view full) ---

241 pcr->num_slots = 2;
242 pcr->ops = &rts5229_pcr_ops;
243
244 pcr->flags = 0;
245 pcr->card_drive_sel = RTSX_CARD_DRIVE_DEFAULT;
246 pcr->sd30_drive_sel_1v8 = DRIVER_TYPE_B;
247 pcr->sd30_drive_sel_3v3 = DRIVER_TYPE_D;
248 pcr->aspm_en = ASPM_L1_EN;
249 pcr->aspm_mode = ASPM_MODE_CFG;
249 pcr->tx_initial_phase = SET_CLOCK_PHASE(27, 27, 15);
250 pcr->rx_initial_phase = SET_CLOCK_PHASE(30, 6, 6);
251
252 pcr->ic_version = rts5229_get_ic_version(pcr);
253 if (pcr->ic_version == IC_VER_C) {
254 pcr->sd_pull_ctl_enable_tbl = rts5229_sd_pull_ctl_enable_tbl2;
255 pcr->sd_pull_ctl_disable_tbl = rts5229_sd_pull_ctl_disable_tbl2;
256 } else {
257 pcr->sd_pull_ctl_enable_tbl = rts5229_sd_pull_ctl_enable_tbl1;
258 pcr->sd_pull_ctl_disable_tbl = rts5229_sd_pull_ctl_disable_tbl1;
259 }
260 pcr->ms_pull_ctl_enable_tbl = rts5229_ms_pull_ctl_enable_tbl;
261 pcr->ms_pull_ctl_disable_tbl = rts5229_ms_pull_ctl_disable_tbl;
262}
250 pcr->tx_initial_phase = SET_CLOCK_PHASE(27, 27, 15);
251 pcr->rx_initial_phase = SET_CLOCK_PHASE(30, 6, 6);
252
253 pcr->ic_version = rts5229_get_ic_version(pcr);
254 if (pcr->ic_version == IC_VER_C) {
255 pcr->sd_pull_ctl_enable_tbl = rts5229_sd_pull_ctl_enable_tbl2;
256 pcr->sd_pull_ctl_disable_tbl = rts5229_sd_pull_ctl_disable_tbl2;
257 } else {
258 pcr->sd_pull_ctl_enable_tbl = rts5229_sd_pull_ctl_enable_tbl1;
259 pcr->sd_pull_ctl_disable_tbl = rts5229_sd_pull_ctl_disable_tbl1;
260 }
261 pcr->ms_pull_ctl_enable_tbl = rts5229_ms_pull_ctl_enable_tbl;
262 pcr->ms_pull_ctl_disable_tbl = rts5229_ms_pull_ctl_disable_tbl;
263}