summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorJitao Shi <jitao.shi@mediatek.com>2020-05-07 18:44:19 +0800
committerPatrick Georgi <pgeorgi@google.com>2020-05-11 08:35:34 +0000
commit4d472a76c7c57b28c158cb731887a98ae2ff6807 (patch)
treeec3514acd78245bcdf1628e1257fc190b003a428 /src/mainboard
parented849ed82c8935c634b681952441ca69c36cdc21 (diff)
downloadcoreboot-4d472a76c7c57b28c158cb731887a98ae2ff6807.tar.xz
mb/google/kukui: Fix backlight flash white before show logo
Turn backlight off before panel poweron. BUG=b:155107047 TEST=make # board = kukui BRANCH=kukui Signed-off-by: Jitao Shi <jitao.shi@mediatek.com> Change-Id: I0f31923bd7c1dfa26d4b1bbd0a230ae400b08ca3 Reviewed-on: https://review.coreboot.org/c/coreboot/+/41146 Reviewed-by: Hung-Te Lin <hungte@chromium.org> Reviewed-by: Yu-Ping Wu <yupingso@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/kukui/panel_anx7625.c5
-rw-r--r--src/mainboard/google/kukui/panel_ps8640.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/src/mainboard/google/kukui/panel_anx7625.c b/src/mainboard/google/kukui/panel_anx7625.c
index c75f260e17..b900881bdb 100644
--- a/src/mainboard/google/kukui/panel_anx7625.c
+++ b/src/mainboard/google/kukui/panel_anx7625.c
@@ -14,6 +14,11 @@
static void power_on_anx7625(void)
{
+ /* Disable backlight before turning on bridge */
+ gpio_output(GPIO(PERIPHERAL_EN13), 0);
+ gpio_output(GPIO(DISP_PWM), 0);
+
+ /* Turn on bridge */
gpio_output(GPIO_MIPIBRDG_RST_L_1V8, 0);
gpio_output(GPIO_PP1200_MIPIBRDG_EN, 1);
gpio_output(GPIO_VDDIO_MIPIBRDG_EN, 1);
diff --git a/src/mainboard/google/kukui/panel_ps8640.c b/src/mainboard/google/kukui/panel_ps8640.c
index 43ea68e0cf..1f7506e060 100644
--- a/src/mainboard/google/kukui/panel_ps8640.c
+++ b/src/mainboard/google/kukui/panel_ps8640.c
@@ -13,6 +13,11 @@
static void power_on_ps8640(void)
{
+ /* Disable backlight before turning on bridge */
+ gpio_output(GPIO(PERIPHERAL_EN13), 0);
+ gpio_output(GPIO(DISP_PWM), 0);
+
+ /* Turn on bridge */
gpio_output(GPIO_MIPIBRDG_RST_L_1V8, 0);
gpio_output(GPIO_PP1200_MIPIBRDG_EN, 1);
gpio_output(GPIO_VDDIO_MIPIBRDG_EN, 1);