Lines Matching +full:pull +full:- +full:up
1 /* Driver for Realtek PCI-Express card reader
3 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
46 pcr->aspm_en = rtsx_reg_to_aspm(reg); in rts5229_fetch_vendor_settings()
47 pcr->sd30_drive_sel_1v8 = in rts5229_fetch_vendor_settings()
49 pcr->card_drive_sel &= 0x3F; in rts5229_fetch_vendor_settings()
50 pcr->card_drive_sel |= rtsx_reg_to_card_drive_sel(reg); in rts5229_fetch_vendor_settings()
54 pcr->sd30_drive_sel_3v3 = in rts5229_fetch_vendor_settings()
80 0xFF, pcr->sd30_drive_sel_3v3); in rts5229_extra_init_hw()
124 /* To avoid too large in-rush current */ in rts5229_card_power_on()
152 SD30_DRIVE_SEL, 0x07, pcr->sd30_drive_sel_3v3); in rts5229_switch_output_voltage()
160 SD30_DRIVE_SEL, 0x07, pcr->sd30_drive_sel_1v8); in rts5229_switch_output_voltage()
167 return -EINVAL; in rts5229_switch_output_voltage()
189 /* SD Pull Control Enable:
190 * SD_DAT[3:0] ==> pull up
191 * SD_CD ==> pull up
192 * SD_WP ==> pull up
193 * SD_CMD ==> pull up
194 * SD_CLK ==> pull down
209 /* SD Pull Control Disable:
210 * SD_DAT[3:0] ==> pull down
211 * SD_CD ==> pull up
212 * SD_WP ==> pull down
213 * SD_CMD ==> pull down
214 * SD_CLK ==> pull down
229 /* MS Pull Control Enable:
230 * MS CD ==> pull up
231 * others ==> pull down
239 /* MS Pull Control Disable:
240 * MS CD ==> pull up
241 * others ==> pull down
251 pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | EXTRA_CAPS_SD_SDR104; in rts5229_init_params()
252 pcr->num_slots = 2; in rts5229_init_params()
253 pcr->ops = &rts5229_pcr_ops; in rts5229_init_params()
255 pcr->flags = 0; in rts5229_init_params()
256 pcr->card_drive_sel = RTSX_CARD_DRIVE_DEFAULT; in rts5229_init_params()
257 pcr->sd30_drive_sel_1v8 = DRIVER_TYPE_B; in rts5229_init_params()
258 pcr->sd30_drive_sel_3v3 = DRIVER_TYPE_D; in rts5229_init_params()
259 pcr->aspm_en = ASPM_L1_EN; in rts5229_init_params()
260 pcr->tx_initial_phase = SET_CLOCK_PHASE(27, 27, 15); in rts5229_init_params()
261 pcr->rx_initial_phase = SET_CLOCK_PHASE(30, 6, 6); in rts5229_init_params()
263 pcr->ic_version = rts5229_get_ic_version(pcr); in rts5229_init_params()
264 if (pcr->ic_version == IC_VER_C) { in rts5229_init_params()
265 pcr->sd_pull_ctl_enable_tbl = rts5229_sd_pull_ctl_enable_tbl2; in rts5229_init_params()
266 pcr->sd_pull_ctl_disable_tbl = rts5229_sd_pull_ctl_disable_tbl2; in rts5229_init_params()
268 pcr->sd_pull_ctl_enable_tbl = rts5229_sd_pull_ctl_enable_tbl1; in rts5229_init_params()
269 pcr->sd_pull_ctl_disable_tbl = rts5229_sd_pull_ctl_disable_tbl1; in rts5229_init_params()
271 pcr->ms_pull_ctl_enable_tbl = rts5229_ms_pull_ctl_enable_tbl; in rts5229_init_params()
272 pcr->ms_pull_ctl_disable_tbl = rts5229_ms_pull_ctl_disable_tbl; in rts5229_init_params()