summaryrefslogtreecommitdiff
path: root/driver/charger
diff options
context:
space:
mode:
authorJessy jiang <jiangchao5@huaqin.corp-partner.google.com>2019-02-15 14:08:33 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-02-27 01:13:52 -0800
commit56cd91fda92d1dc8147c487737444933a665852a (patch)
tree93f19b12352339f7df0df79c2abad8de9e4013f5 /driver/charger
parente4ac1eccf0920f53c1e3532b7ccbc3155c178508 (diff)
downloadchrome-ec-56cd91fda92d1dc8147c487737444933a665852a.tar.gz
flapjack: Enable backlight channel for Flapjackstabilize-11839.Bstabilize-11839.3.B
flapjack requires to enable LED Bias to control LCD backlight. For C18 boards, three channels are required, and each channel has a current of 24 mA. For C19 boards, four channels are required, each channel having a current of 23.5mA. BUG=b:124465980 BRANCH=none TEST=1:)When the system boots, the backlight will light up. 2:)Use the ectool commands to check the channel and current. channle: ectool i2cread 8 0 104 0xA0 current: ectool i2cread 8 0 104 0xA5 If it's C18 board, get 0xfa in channel command and 0xc8 in current command. If it's C19 board, get 0xfe in channel command and 0xc4 in current command. If the SKU value of the board is empty or incorrect, the default value is the data of the C18 board. Change-Id: I2e51feec830c4cfd46e3eaec0f9db0e1cfdd620c Reviewed-on: https://chromium-review.googlesource.com/1475094 Commit-Ready: Jessy Jiang <jiangchao5@huaqin.corp-partner.google.com> Tested-by: Jessy Jiang <jiangchao5@huaqin.corp-partner.google.com> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Diffstat (limited to 'driver/charger')
-rw-r--r--driver/charger/rt946x.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/driver/charger/rt946x.h b/driver/charger/rt946x.h
index 9f1d682901..d91def7b4c 100644
--- a/driver/charger/rt946x.h
+++ b/driver/charger/rt946x.h
@@ -136,6 +136,10 @@
#define MT6370_REG_RGBCHRINDCTRL 0x93
#define RT946X_REG_DPDMIRQ 0xC6
+/* backlight */
+#define MT6370_BACKLIGHT_BLEN 0xA0
+#define MT6370_BACKLIGHT_BLPWM 0xA2
+#define MT6370_BACKLIGHT_BLDIM 0xA5
/* status event */
#define MT6370_REG_CHGSTAT1 0xD0
#define RT946X_REG_CHGSTATC MT6370_REG_CHGSTAT1