summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2019-05-28 18:24:50 +0800
committerchrome-bot <chrome-bot@chromium.org>2019-06-03 17:18:30 -0700
commit0036edd5f4f4215a2a8ed3c13a6c82ad0fc1f39f (patch)
treed71afe0b6e60a2161018b592991ccfafcd3fed31
parent2f8b5e86453449c729c1e61262b50467ec29ed33 (diff)
downloadchrome-ec-0036edd5f4f4215a2a8ed3c13a6c82ad0fc1f39f.tar.gz
krane: Enable display bias settings.
Krane's display bias is controlled by mt6370. Adjust the settings according to the panel which krane uses. Also, discharge VNEG/VPOS when the rails are disabled. TEST=i2cxfer r 0 0x68 0xb1; see output 0x36 i2xcfer r 0 0x68 0xb2; see output 0x68 i2xcfer r 0 0x68 0xb3; see output 0x64 i2xcfer r 0 0x68 0xb4; see output 0x64 BUG=b:125644770 BRANCH=None Change-Id: Ifdda9c9ccc2486009179cbc94cfbf79cb4d04926 Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/1632132 Commit-Ready: Yilun Lin <yllin@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: Ting Shen <phoenixshen@chromium.org> Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
-rw-r--r--board/kukui/board.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/board/kukui/board.c b/board/kukui/board.c
index 29263859e8..4341a1a0f2 100644
--- a/board/kukui/board.c
+++ b/board/kukui/board.c
@@ -241,6 +241,10 @@ static void board_init(void)
/* Enable pogo interrupt */
gpio_enable_interrupt(GPIO_POGO_ADC_INT_L);
+
+ if (IS_ENABLED(BOARD_KRANE))
+ /* Display bias settings. */
+ mt6370_db_set_voltages(6000, 5800, 5800);
}
DECLARE_HOOK(HOOK_INIT, board_init, HOOK_PRIO_DEFAULT);