summaryrefslogtreecommitdiff
path: root/driver/charger/rt946x.h
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2018-07-12 17:00:17 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-07-12 11:35:42 -0700
commit37ff3e662aacfbe796ee4e93771d25acde56aa7f (patch)
treeb4d1475797e3659f56eeeae28a18c44e3106095b /driver/charger/rt946x.h
parent4e0c9a26fe5024145d07c00790a93a892b34a12c (diff)
downloadchrome-ec-37ff3e662aacfbe796ee4e93771d25acde56aa7f.tar.gz
charger/mt6370: Fix led_set_color enables wrong LED.
The index of LED enable bit in the register is counting from the MSB. BRANCH=None TEST=mt6370_led_set_color() on EVB, checks the LED flash accordingly. BUG=b:80160408 Change-Id: I9c748b5f91a62746adaeab59899cd0222305e06b Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1134927 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'driver/charger/rt946x.h')
-rw-r--r--driver/charger/rt946x.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver/charger/rt946x.h b/driver/charger/rt946x.h
index 69e7b8b6af..d82d6e8e6d 100644
--- a/driver/charger/rt946x.h
+++ b/driver/charger/rt946x.h
@@ -393,7 +393,7 @@
#define MT6370_SHIFT_RGB_ISNK1DIM 7
#define MT6370_SHIFT_RGB_ISNK2DIM 6
#define MT6370_SHIFT_RGB_ISNK3DIM 5
-#define MT6370_SHIFT_RGB_ISNKDIM_BASE 4
+#define MT6370_SHIFT_RGB_ISNKDIM_BASE 8
#define MT6370_MASK_RGB_ISNK1DIM_EN (1 << MT6370_SHIFT_RGB_ISNK1DIM)
#define MT6370_MASK_RGB_ISNK2DIM_EN (1 << MT6370_SHIFT_RGB_ISNK2DIM)