[RAMEN9610-19595]muic: Support India Turbo-charger (SC-25)
authorKeunho Hwang <keunho.hwang@samsung.com>
Tue, 9 Jul 2019 08:46:50 +0000 (17:46 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Mon, 9 Sep 2019 11:08:08 +0000 (20:08 +0900)
- Set VNMON Vref 0.5V -> 0.4V
- Set DP_src 0.6 -> 0.75

Change-Id: Iac23950c195a0097f3f0b3ef8e611188ffb204f5
Signed-off-by: Keunho Hwang <keunho.hwang@samsung.com>
Signed-off-by: Kim Gunho <gunho.kim@samsung.com>
drivers/muic/s2mu106-muic-afc.c

index ca558cd2f4ad0a55b19e5a98951cd154c2888d1b..35dfac6f878538141d96348af034b0b2b1cf499a 100644 (file)
@@ -307,6 +307,10 @@ static void _s2mu106_hv_muic_reset(struct s2mu106_muic_data *muic_data)
 
        pr_info("%s enter\n", __func__);
        /* set reg default value */
+#if defined(CONFIG_HV_MUIC_TURBO_CHARGER)
+       s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_OTP3, 0x21);
+       s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_OTP4, 0x02);
+#endif
        s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_CTRL1, 0);
        s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_CTRL2, 0);
        s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_TX_BYTE, 0);
@@ -380,6 +384,10 @@ static void s2mu106_if_hv_muic_dcp_charger(void *mdata)
 
        pr_info("%s\n", __func__);
 
+#if defined(CONFIG_HV_MUIC_TURBO_CHARGER)
+       s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_OTP3, 0x41);
+       s2mu106_hv_muic_write_reg(muic_data, S2MU106_REG_AFC_OTP4, 0x80);
+#endif
        msleep(200);
 
        /* Enable Afc Block */