mfd: rtsx: Add shutdown callback in rtsx_pci_driver
[linux-block.git] / drivers / mfd / rts5209.c
index 2170449bd7e5a4facd93bc5a43a6ab86883ee9f5..c67935efd4f5b5de9219fd8964039cf1f2afbadb 100644 (file)
@@ -59,6 +59,11 @@ static void rts5209_fetch_vendor_settings(struct rtsx_pcr *pcr)
        }
 }
 
+static void rts5209_force_power_down(struct rtsx_pcr *pcr)
+{
+       rtsx_pci_write_register(pcr, FPDCTL, 0x07, 0x07);
+}
+
 static int rts5209_extra_init_hw(struct rtsx_pcr *pcr)
 {
        rtsx_pci_init_cmd(pcr);
@@ -197,6 +202,7 @@ static const struct pcr_ops rts5209_pcr_ops = {
        .switch_output_voltage = rts5209_switch_output_voltage,
        .cd_deglitch = NULL,
        .conv_clk_and_div_n = NULL,
+       .force_power_down = rts5209_force_power_down,
 };
 
 /* SD Pull Control Enable: