[RAMEN9610-14534] [COMMON][MODAP-25597] s2mpu09: print PWRONSRC & OFFSRC registers...
authorJieun Yi <jieun.yi@samsung.com>
Fri, 19 Apr 2019 05:53:56 +0000 (14:53 +0900)
committerKim Gunho <gunho.kim@samsung.com>
Fri, 28 Jun 2019 14:45:23 +0000 (23:45 +0900)
Change-Id: Ibcb732de9a19d86e73a5396353d65043bea6f7f5
Signed-off-by: Jieun Yi <jieun.yi@samsung.com>
drivers/regulator/s2mpu09-regulator.c

index e296f33269cfae5decaf0ecb0f5a24a125f77a66..73dd0de1875da55481da9e801620ef09c93b7d44 100644 (file)
@@ -621,6 +621,7 @@ static int s2mpu09_pmic_probe(struct platform_device *pdev)
        struct regulator_config config = { };
        struct s2mpu09_info *s2mpu09;
        int i, ret;
+       u8 val;
 
        pr_info("%s s2mpu09 pmic driver Loading start\n", __func__);
 
@@ -687,6 +688,11 @@ static int s2mpu09_pmic_probe(struct platform_device *pdev)
        s2mpu09_update_reg(s2mpu09->i2c, S2MPU09_PMIC_REG_SELMIF1, 0xC7, 0xC7);
 #endif
 
+       s2mpu09_read_reg(s2mpu09->i2c, S2MPU09_PMIC_REG_PWRONSRC, &val);
+       pr_info("%s: PWRONSRC 0x%x ", __func__, val);
+       s2mpu09_read_reg(s2mpu09->i2c, S2MPU09_PMIC_REG_OFFSRC, &val);
+       pr_info("OFFSRC 0x%x\n", __func__, val);
+
        pr_info("%s s2mpu09 pmic driver Loading end\n", __func__);
        s2mpu09_update_reg(s2mpu09->i2c, S2MPU09_PMIC_REG_RTCBUF, 0x4, 0x4);