summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTing Shen <phoenixshen@google.com>2019-06-28 19:46:03 +0800
committerCommit Bot <commit-bot@chromium.org>2019-07-23 11:26:58 +0000
commit11a7759925b607ef9c68c0d40224194df194efc6 (patch)
tree6c965ca65a89ba85a8cf6b86388e5290ed979667
parent83fea7b419bcbad71d0d8495275b213e7553fa82 (diff)
downloadchrome-ec-11a7759925b607ef9c68c0d40224194df194efc6.tar.gz
krane: limit backlight current for all revisions.
Confirmed by HW eng, this fix should apply to all board revisions. BUG=b:133655155 TEST=none BRANCH=master Change-Id: I20a72ec744c6d6fbf08d0cf57ad78902e35c2df9 Signed-off-by: Ting Shen <phoenixshen@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1679784 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-by: Yilun Lin <yllin@chromium.org> Tested-by: Ting Shen <phoenixshen@chromium.org> Commit-Queue: Ting Shen <phoenixshen@chromium.org>
-rw-r--r--board/kukui/board.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c
index 12a46db970..23261f7089 100644
--- a/board/kukui/board.c
+++ b/board/kukui/board.c
@@ -273,10 +273,18 @@ static void board_init(void)
/* Enable pogo interrupt */
gpio_enable_interrupt(GPIO_POGO_ADC_INT_L);
- if (IS_ENABLED(BOARD_KRANE))
- /* Display bias settings. */
+ if (IS_ENABLED(BOARD_KRANE)) {
+ /* Display bias settings. */
mt6370_db_set_voltages(6000, 5800, 5800);
+ /*
+ * Fix backlight led maximum current:
+ * tolerance 120mA * 0.75 = 90mA.
+ * (b/133655155)
+ */
+ mt6370_backlight_set_dim(MT6370_BLDIM_DEFAULT * 3 / 4);
+ }
+
/* Enable pogo charging signal */
gpio_enable_interrupt(GPIO_POGO_VBUS_PRESENT);
}
@@ -577,12 +585,6 @@ static void fix_krane(void)
if (board_get_version() != 3)
return;
- /*
- * Fix backlight led maximum current: tolerance 120mA * 0.75 = 90mA.
- * (b/133655155)
- */
- mt6370_backlight_set_dim(MT6370_BLDIM_DEFAULT * 3 / 4);
-
#ifdef SECTION_IS_RW
/* Fix reference point */
motion_sensors[LID_ACCEL].rot_standard_ref = &lid_standard_ref_rev3;