summaryrefslogtreecommitdiff
path: root/src/mainboard
diff options
context:
space:
mode:
authorVinod Polimera <vpolimer@codeaurora.org>2021-03-17 16:11:12 +0530
committerJulius Werner <jwerner@chromium.org>2021-05-08 00:13:13 +0000
commit6ea8033705a611518948e1f61cef2afed1b5341d (patch)
treed074cdceeb4681815c914a8cef6b5b1243e1b43e /src/mainboard
parente0dbeee40f9cfa0e43465db1a3f1c6c510b212ab (diff)
downloadcoreboot-6ea8033705a611518948e1f61cef2afed1b5341d.tar.xz
trogdor: Add backlight support for sn65dsi86bridge for Homestar
Add backlight support in sn65dsi86bridge through the AUX channel using eDP DPCD registers, which is needed on the GOOGLE_HOMESTAR board. Change-Id: Ie700080f1feabe2d3397c38088a64cff27bfbe55 Signed-off-by: Vinod Polimera <vpolimer@codeaurora.org> Signed-off-by: Julius Werner <jwerner@chromium.org> Reviewed-on: https://review.coreboot.org/c/coreboot/+/52663 Reviewed-by: Douglas Anderson <dianders@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/mainboard')
-rw-r--r--src/mainboard/google/trogdor/Kconfig5
-rw-r--r--src/mainboard/google/trogdor/mainboard.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/src/mainboard/google/trogdor/Kconfig b/src/mainboard/google/trogdor/Kconfig
index 5538205476..4a2630d599 100644
--- a/src/mainboard/google/trogdor/Kconfig
+++ b/src/mainboard/google/trogdor/Kconfig
@@ -7,6 +7,11 @@ if BOARD_GOOGLE_TROGDOR_COMMON
config TROGDOR_REV0
def_bool n
+config TROGDOR_HAS_BRIDGE_BACKLIGHT
+ bool
+ default y if BOARD_GOOGLE_HOMESTAR
+ default n
+
config TROGDOR_HAS_FINGERPRINT
bool
default y if BOARD_GOOGLE_COACHZ
diff --git a/src/mainboard/google/trogdor/mainboard.c b/src/mainboard/google/trogdor/mainboard.c
index 61a64f842e..864bd6daa6 100644
--- a/src/mainboard/google/trogdor/mainboard.c
+++ b/src/mainboard/google/trogdor/mainboard.c
@@ -83,6 +83,9 @@ static void display_init(struct edid *edid)
return;
sn65dsi86_bridge_configure(BRIDGE_BUS, BRIDGE_CHIP, edid, lanes, dsi_bpp);
+ if (CONFIG(TROGDOR_HAS_BRIDGE_BACKLIGHT))
+ sn65dsi86_backlight_enable(BRIDGE_BUS, BRIDGE_CHIP);
+
mdp_dsi_video_config(edid);
mdss_dsi_video_mode_config(edid, dsi_bpp);
mdp_dsi_video_on();