summaryrefslogtreecommitdiff
path: root/driver/ln9310.h
diff options
context:
space:
mode:
authorWai-Hong Tam <waihong@google.com>2020-09-22 19:46:00 -0700
committerCommit Bot <commit-bot@chromium.org>2020-09-24 06:33:25 +0000
commit7928c23272ecc4bf551b1e4dcb96a0d9b4a46ec7 (patch)
treeb1b64dee32464cf2722ab802acb1ff4b920427c7 /driver/ln9310.h
parent19007dd5773dbba6b599c3a01b92b493510af58c (diff)
downloadchrome-ec-7928c23272ecc4bf551b1e4dcb96a0d9b4a46ec7.tar.gz
ln9310: Fix the register of LN9310_REG_LB_CTRL
The existing code sets it to a wrong register, LN9310_REG_SYS_CTRL. Correct it. Also override the LN9310_REG_SYS_CTRL to 0. BRANCH=None BUG=b:163867792, b:169127324 TEST=Verified the power-on sequence worked. Change-Id: Idb96e5510eb47b7f652d9ea38be5a5a7eb84e88f Signed-off-by: Wai-Hong Tam <waihong@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2425454
Diffstat (limited to 'driver/ln9310.h')
-rw-r--r--driver/ln9310.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/driver/ln9310.h b/driver/ln9310.h
index e63dbcc238..2208b0624f 100644
--- a/driver/ln9310.h
+++ b/driver/ln9310.h
@@ -61,9 +61,6 @@
#define LN9310_PWR_OP_MODE_MANUAL_UPDATE_OFF 0x00
#define LN9310_REG_SYS_CTRL 0x1e
-#define LN9310_SYS_CTRL_LB_DELTA_MASK 0x38
-#define LN9310_SYS_CTRL_LB_DELTA_2S 0x4
-#define LN9310_SYS_CTRL_LB_DELTA_3S 0x4
#define LN9310_REG_STARTUP_CTRL 0x1f
#define LN9310_STANDBY_EN 0x01
@@ -90,7 +87,12 @@
#define LN9310_TIMER_OP_SELF_SYNC_EN_ON 0x08
#define LN9310_REG_RECOVERY_CTRL 0x25
+
#define LN9310_REG_LB_CTRL 0x26
+#define LN9310_LB_DELTA_MASK 0x38
+#define LN9310_LB_DELTA_2S 0x20
+#define LN9310_LB_DELTA_3S 0x20
+
#define LN9310_REG_SC_OUT_OV_CTRL 0x29
#define LN9310_REG_STS_CTRL 0x2d