diff options
Diffstat (limited to 'drivers/mfd/rts5229.c')
-rw-r--r-- | drivers/mfd/rts5229.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/rts5229.c b/drivers/mfd/rts5229.c index 29d889cbb9c5..58af4dbe3586 100644 --- a/drivers/mfd/rts5229.c +++ b/drivers/mfd/rts5229.c | |||
@@ -119,10 +119,18 @@ static int rts5229_switch_output_voltage(struct rtsx_pcr *pcr, u8 voltage) | |||
119 | int err; | 119 | int err; |
120 | 120 | ||
121 | if (voltage == OUTPUT_3V3) { | 121 | if (voltage == OUTPUT_3V3) { |
122 | err = rtsx_pci_write_register(pcr, | ||
123 | SD30_DRIVE_SEL, 0x07, DRIVER_TYPE_D); | ||
124 | if (err < 0) | ||
125 | return err; | ||
122 | err = rtsx_pci_write_phy_register(pcr, 0x08, 0x4FC0 | 0x24); | 126 | err = rtsx_pci_write_phy_register(pcr, 0x08, 0x4FC0 | 0x24); |
123 | if (err < 0) | 127 | if (err < 0) |
124 | return err; | 128 | return err; |
125 | } else if (voltage == OUTPUT_1V8) { | 129 | } else if (voltage == OUTPUT_1V8) { |
130 | err = rtsx_pci_write_register(pcr, | ||
131 | SD30_DRIVE_SEL, 0x07, DRIVER_TYPE_B); | ||
132 | if (err < 0) | ||
133 | return err; | ||
126 | err = rtsx_pci_write_phy_register(pcr, 0x08, 0x4C40 | 0x24); | 134 | err = rtsx_pci_write_phy_register(pcr, 0x08, 0x4C40 | 0x24); |
127 | if (err < 0) | 135 | if (err < 0) |
128 | return err; | 136 | return err; |