Lines Matching +full:pull +full:- +full:down
1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Driver for Realtek PCI-Express card reader
4 * Copyright(c) 2009-2013 Realtek Semiconductor Corp. All rights reserved.
26 struct pci_dev *pdev = pcr->pci; in rts5209_fetch_vendor_settings()
34 pcr->flags |= PCR_MS_PMOS; in rts5209_fetch_vendor_settings()
35 pcr->aspm_en = rts5209_reg_to_aspm(reg); in rts5209_fetch_vendor_settings()
42 pcr->sd30_drive_sel_1v8 = in rts5209_fetch_vendor_settings()
44 pcr->sd30_drive_sel_3v3 = in rts5209_fetch_vendor_settings()
46 pcr->card_drive_sel = rts5209_reg_to_card_drive_sel(reg); in rts5209_fetch_vendor_settings()
69 0xFF, pcr->sd30_drive_sel_3v3); in rts5209_extra_init_hw()
108 if ((pcr->flags & PCR_MS_PMOS) && (card == RTSX_MS_CARD)) { in rts5209_card_power_on()
123 /* To avoid too large in-rush current */ in rts5209_card_power_on()
140 if ((pcr->flags & PCR_MS_PMOS) && (card == RTSX_MS_CARD)) { in rts5209_card_power_off()
159 SD30_DRIVE_SEL, 0x07, pcr->sd30_drive_sel_3v3); in rts5209_switch_output_voltage()
167 SD30_DRIVE_SEL, 0x07, pcr->sd30_drive_sel_1v8); in rts5209_switch_output_voltage()
174 return -EINVAL; in rts5209_switch_output_voltage()
196 /* SD Pull Control Enable:
197 * SD_DAT[3:0] ==> pull up
198 * SD_CD ==> pull up
199 * SD_WP ==> pull up
200 * SD_CMD ==> pull up
201 * SD_CLK ==> pull down
210 /* SD Pull Control Disable:
211 * SD_DAT[3:0] ==> pull down
212 * SD_CD ==> pull up
213 * SD_WP ==> pull down
214 * SD_CMD ==> pull down
215 * SD_CLK ==> pull down
224 /* MS Pull Control Enable:
225 * MS CD ==> pull up
226 * others ==> pull down
235 /* MS Pull Control Disable:
236 * MS CD ==> pull up
237 * others ==> pull down
248 pcr->extra_caps = EXTRA_CAPS_SD_SDR50 | in rts5209_init_params()
250 pcr->num_slots = 2; in rts5209_init_params()
251 pcr->ops = &rts5209_pcr_ops; in rts5209_init_params()
253 pcr->flags = 0; in rts5209_init_params()
254 pcr->card_drive_sel = RTS5209_CARD_DRIVE_DEFAULT; in rts5209_init_params()
255 pcr->sd30_drive_sel_1v8 = DRIVER_TYPE_B; in rts5209_init_params()
256 pcr->sd30_drive_sel_3v3 = DRIVER_TYPE_D; in rts5209_init_params()
257 pcr->aspm_en = ASPM_L1_EN; in rts5209_init_params()
258 pcr->aspm_mode = ASPM_MODE_CFG; in rts5209_init_params()
259 pcr->tx_initial_phase = SET_CLOCK_PHASE(27, 27, 16); in rts5209_init_params()
260 pcr->rx_initial_phase = SET_CLOCK_PHASE(24, 6, 5); in rts5209_init_params()
262 pcr->ic_version = rts5209_get_ic_version(pcr); in rts5209_init_params()
263 pcr->sd_pull_ctl_enable_tbl = rts5209_sd_pull_ctl_enable_tbl; in rts5209_init_params()
264 pcr->sd_pull_ctl_disable_tbl = rts5209_sd_pull_ctl_disable_tbl; in rts5209_init_params()
265 pcr->ms_pull_ctl_enable_tbl = rts5209_ms_pull_ctl_enable_tbl; in rts5209_init_params()
266 pcr->ms_pull_ctl_disable_tbl = rts5209_ms_pull_ctl_disable_tbl; in rts5209_init_params()