projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ade3c6
)
[9610][ERD] drv: muic: init path open in kernel
author
Kim Taejeong
<tj.kim@samsung.com>
Fri, 18 May 2018 06:30:44 +0000
(15:30 +0900)
committer
Chungwoo Park
<cww.park@samsung.com>
Mon, 21 May 2018 08:08:55 +0000
(17:08 +0900)
Change-Id: I84a8756e8d8f7c5bf303f99af90664c65ef590ed
Signed-off-by: Kim Taejeong <tj.kim@samsung.com>
drivers/muic/s2mu004-muic.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/muic/s2mu004-muic.c
b/drivers/muic/s2mu004-muic.c
index 4ce270d10cc5754d04f9e7bff116c59bae13078b..aee2c2014524bb385278cd3e598918d22863eecd 100644
(file)
--- a/
drivers/muic/s2mu004-muic.c
+++ b/
drivers/muic/s2mu004-muic.c
@@
-1138,11
+1138,15
@@
static int s2mu004_muic_reg_init(struct s2mu004_muic_data *muic_data)
if (ret < 0)
pr_err("failed to write ctrl(%d)\n", ret);
+ data = s2mu004_i2c_read_byte(i2c, S2MU004_REG_MUIC_SW_CTRL);
+ pr_info("%s init path(0x%x)\n", __func__, data);
+ if (data)
+ s2mu004_muic_set_com_sw(muic_data, MANSW_OPEN);
+
/*
* These registers represents the RID ADC LDO voltage control.
* Low / High LDO initialized to 3V, 2.7V each.
*/
-
#ifdef CONFIG_MUIC_S2MU004_RID
s2mu004_muic_control_rid_adc(muic_data, S2MU004_ENABLE);