Lines Matching +full:0 +full:x96
22 return val & 0x0F; in rts5227_get_ic_version()
28 {0x13, 0x13, 0x13}, in rts5227_fill_driving()
29 {0x96, 0x96, 0x96}, in rts5227_fill_driving()
30 {0x7F, 0x7F, 0x7F}, in rts5227_fill_driving()
31 {0x96, 0x96, 0x96}, in rts5227_fill_driving()
34 {0x99, 0x99, 0x99}, in rts5227_fill_driving()
35 {0xAA, 0xAA, 0xAA}, in rts5227_fill_driving()
36 {0xFE, 0xFE, 0xFE}, in rts5227_fill_driving()
37 {0xB3, 0xB3, 0xB3}, in rts5227_fill_driving()
50 0xFF, driving[drive_sel][0]); in rts5227_fill_driving()
52 0xFF, driving[drive_sel][1]); in rts5227_fill_driving()
54 0xFF, driving[drive_sel][2]); in rts5227_fill_driving()
63 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG1, reg); in rts5227_fetch_vendor_settings()
70 pcr->card_drive_sel &= 0x3F; in rts5227_fetch_vendor_settings()
74 pcr_dbg(pcr, "Cfg 0x%x: 0x%x\n", PCR_SETTING_REG2, reg); in rts5227_fetch_vendor_settings()
75 if (CHK_PCI_PID(pcr, 0x522A)) in rts5227_fetch_vendor_settings()
88 if (CHK_PCI_PID(pcr, 0x522A)) { in rts5227_init_from_cfg()
111 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, GPIO_CTL, 0x02, 0x02); in rts5227_extra_init_hw()
113 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, ASPM_FORCE_CTL, 0x3F, 0); in rts5227_extra_init_hw()
115 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, LDO_PWR_SEL, 0x03, 0x00); in rts5227_extra_init_hw()
116 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, LDO_PWR_SEL, 0x03, 0x01); in rts5227_extra_init_hw()
118 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, OLT_LED_CTL, 0x0F, 0x02); in rts5227_extra_init_hw()
122 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, LTR_CTL, 0xFF, 0xA3); in rts5227_extra_init_hw()
124 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, OBFF_CFG, 0x03, 0x03); in rts5227_extra_init_hw()
129 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PETXCFG, 0x30, 0x30); in rts5227_extra_init_hw()
131 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PETXCFG, 0x30, 0x00); in rts5227_extra_init_hw()
133 if (CHK_PCI_PID(pcr, 0x522A)) in rts5227_extra_init_hw()
138 if (CHK_PCI_PID(pcr, 0x522A)) { in rts5227_extra_init_hw()
139 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, RTS522A_PM_CTRL3, 0x01, 0x01); in rts5227_extra_init_hw()
140 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, RTS522A_PME_FORCE_CTL, 0x30, 0x30); in rts5227_extra_init_hw()
142 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PM_CTRL3, 0x01, 0x01); in rts5227_extra_init_hw()
143 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PME_FORCE_CTL, 0xFF, 0x33); in rts5227_extra_init_hw()
146 if (CHK_PCI_PID(pcr, 0x522A)) { in rts5227_extra_init_hw()
147 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, RTS522A_PM_CTRL3, 0x01, 0x00); in rts5227_extra_init_hw()
148 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, RTS522A_PME_FORCE_CTL, 0x30, 0x20); in rts5227_extra_init_hw()
150 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PME_FORCE_CTL, 0xFF, 0x30); in rts5227_extra_init_hw()
151 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, PM_CTRL3, 0x01, 0x00); in rts5227_extra_init_hw()
162 rtsx_pci_add_cmd(pcr, WRITE_REG_CMD, pcr->reg_pm_ctrl3, 0x10, 0x00); in rts5227_extra_init_hw()
171 err = rtsx_pci_write_register(pcr, PM_CTRL3, D3_DELINK_MODE_EN, 0x00); in rts5227_optimize_phy()
172 if (err < 0) in rts5227_optimize_phy()
176 return rtsx_pci_write_phy_register(pcr, 0x00, 0xBA42); in rts5227_optimize_phy()
181 return rtsx_pci_write_register(pcr, GPIO_CTL, 0x02, 0x02); in rts5227_turn_on_led()
186 return rtsx_pci_write_register(pcr, GPIO_CTL, 0x02, 0x00); in rts5227_turn_off_led()
191 return rtsx_pci_write_register(pcr, OLT_LED_CTL, 0x08, 0x08); in rts5227_enable_auto_blink()
196 return rtsx_pci_write_register(pcr, OLT_LED_CTL, 0x08, 0x00); in rts5227_disable_auto_blink()
211 LDO3318_PWR_MASK, 0x02); in rts5227_card_power_on()
214 if (err < 0) in rts5227_card_power_on()
224 LDO3318_PWR_MASK, 0x06); in rts5227_card_power_on()
240 rtsx_pci_write_register(pcr, PWR_GATE_CTRL, LDO3318_PWR_MASK, 0X00); in rts5227_card_power_off()
242 return 0; in rts5227_card_power_off()
250 err = rtsx_pci_write_phy_register(pcr, 0x08, 0x4FC0 | 0x24); in rts5227_switch_output_voltage()
251 if (err < 0) in rts5227_switch_output_voltage()
254 err = rtsx_pci_write_phy_register(pcr, 0x11, 0x3C02); in rts5227_switch_output_voltage()
255 if (err < 0) in rts5227_switch_output_voltage()
257 err = rtsx_pci_write_phy_register(pcr, 0x08, 0x4C80 | 0x24); in rts5227_switch_output_voltage()
258 if (err < 0) in rts5227_switch_output_voltage()
286 * SD_DAT[3:0] ==> pull up
293 RTSX_REG_PAIR(CARD_PULL_CTL2, 0xAA),
294 RTSX_REG_PAIR(CARD_PULL_CTL3, 0xE9),
295 0,
299 * SD_DAT[3:0] ==> pull down
306 RTSX_REG_PAIR(CARD_PULL_CTL2, 0x55),
307 RTSX_REG_PAIR(CARD_PULL_CTL3, 0xD5),
308 0,
316 RTSX_REG_PAIR(CARD_PULL_CTL5, 0x55),
317 RTSX_REG_PAIR(CARD_PULL_CTL6, 0x15),
318 0,
326 RTSX_REG_PAIR(CARD_PULL_CTL5, 0x55),
327 RTSX_REG_PAIR(CARD_PULL_CTL6, 0x15),
328 0,
337 pcr->flags = 0; in rts5227_init_params()
360 0x00); in rts522a_optimize_phy()
361 if (err < 0) in rts522a_optimize_phy()
364 if (is_version(pcr, 0x522A, IC_VER_A)) { in rts522a_optimize_phy()
376 return 0; in rts522a_optimize_phy()
390 rtsx_pci_write_register(pcr, PCLK_CTL, 0x04, 0x04); in rts522a_extra_init_hw()
392 rtsx_pci_write_register(pcr, PM_CLK_FORCE_CTL, 0xFF, 0x11); in rts522a_extra_init_hw()
394 return 0; in rts522a_extra_init_hw()
402 err = rtsx_pci_write_phy_register(pcr, 0x08, 0x57E4); in rts522a_switch_output_voltage()
403 if (err < 0) in rts522a_switch_output_voltage()
406 err = rtsx_pci_write_phy_register(pcr, 0x11, 0x3C02); in rts522a_switch_output_voltage()
407 if (err < 0) in rts522a_switch_output_voltage()
409 err = rtsx_pci_write_phy_register(pcr, 0x08, 0x54A4); in rts522a_switch_output_voltage()
410 if (err < 0) in rts522a_switch_output_voltage()
424 /* Set relink_time to 0 */ in rts522a_force_power_down()
425 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BASE + 1, MASK_8_BIT_DEF, 0); in rts522a_force_power_down()
426 rtsx_pci_write_register(pcr, AUTOLOAD_CFG_BASE + 2, MASK_8_BIT_DEF, 0); in rts522a_force_power_down()
428 RELINK_TIME_MASK, 0); in rts522a_force_power_down()
435 CD_RESUME_EN_MASK, 0); in rts522a_force_power_down()
436 rtsx_pci_write_register(pcr, RTS522A_PM_CTRL3, 0x01, 0x00); in rts522a_force_power_down()
437 rtsx_pci_write_register(pcr, RTS522A_PME_FORCE_CTL, 0x30, 0x20); in rts522a_force_power_down()
448 u8 val = 0; in rts522a_set_l1off_cfg_sub_d0()
503 option->ltr_l1off_sspwrgate = 0x7F; in rts522a_init_params()
504 option->ltr_l1off_snooze_sspwrgate = 0x78; in rts522a_init_params()