aboutsummaryrefslogtreecommitdiff
path: root/src/mainboard/google/gru/mainboard.c
diff options
context:
space:
mode:
authorLin Huang <hl@rock-chips.com>2017-11-20 14:57:22 +0800
committerJulius Werner <jwerner@chromium.org>2017-11-28 19:16:17 +0000
commit18617bf21b22126f3f6761c5e0c35010362d791e (patch)
treecac16bce324a39fa00c226fc67fa28c46a8b87f9 /src/mainboard/google/gru/mainboard.c
parent25fb09b0684769bd010cde0aa60f1b32eddb2cba (diff)
google/gru: correct backlight gpio
it uses backlight enable pin as backlight gpio currently, correct it and define the right backlight gpio. Change-Id: I7c5abfd5bbbae015b899f3edc8892ea32bf82463 Signed-off-by: Lin Huang <hl@rock-chips.com> Reviewed-on: https://review.coreboot.org/22529 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/gru/mainboard.c')
-rw-r--r--src/mainboard/google/gru/mainboard.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mainboard/google/gru/mainboard.c b/src/mainboard/google/gru/mainboard.c
index 296d9ad56a..653e49af7c 100644
--- a/src/mainboard/google/gru/mainboard.c
+++ b/src/mainboard/google/gru/mainboard.c
@@ -369,7 +369,11 @@ static void prepare_backlight_i2c(void)
void mainboard_power_on_backlight(void)
{
- gpio_output(GPIO_BACKLIGHT, 1); /* BL_EN */
+ gpio_output(GPIO_BL_EN, 1); /* BL_EN */
+
+ /* Configure as output GPIO, to be toggled by payload. */
+ if (IS_ENABLED(CONFIG_GRU_BASEBOARD_SCARLET))
+ gpio_output(GPIO_BACKLIGHT, 0);
if (IS_ENABLED(CONFIG_BOARD_GOOGLE_GRU))
prepare_backlight_i2c();