summaryrefslogtreecommitdiff
path: root/src/mainboard/google/oak
diff options
context:
space:
mode:
authorDaniel Kurtz <djkurtz@chromium.org>2017-04-20 12:30:00 +0800
committerJulius Werner <jwerner@chromium.org>2017-04-25 02:34:54 +0200
commit2332adacaf9776f0eb8335c05bc0e65f9c1b2e3e (patch)
tree5a53517db55d30733d629aa1e62b0b04652b4ba5 /src/mainboard/google/oak
parenteef40eb2a9138035402873396368c34963688bfc (diff)
downloadcoreboot-2332adacaf9776f0eb8335c05bc0e65f9c1b2e3e.tar.xz
google/oak: Use edid_set_framebuffer_bits_per_pixel
This helper function was introduced so that mainboards don't need to manually fill in these struct edid fields. BRANCH=none BUG=b:35774871 TEST=Boot Rowan in developer mode and see output on the panel Change-Id: Ic9404a786a28b314b710e037dcae776be4b584ca Signed-off-by: Daniel Kurtz <djkurtz@chromium.org> Reviewed-on: https://review.coreboot.org/19388 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Julius Werner <jwerner@chromium.org>
Diffstat (limited to 'src/mainboard/google/oak')
-rw-r--r--src/mainboard/google/oak/mainboard.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mainboard/google/oak/mainboard.c b/src/mainboard/google/oak/mainboard.c
index 7cb6a68507..2e17678cb1 100644
--- a/src/mainboard/google/oak/mainboard.c
+++ b/src/mainboard/google/oak/mainboard.c
@@ -229,10 +229,7 @@ static void display_startup(void)
return;
}
- edid.x_resolution = edid.mode.ha;
- edid.y_resolution = edid.mode.va;
- edid.bytes_per_line = edid.mode.ha * edid.framebuffer_bits_per_pixel /
- 8;
+ edid_set_framebuffer_bits_per_pixel(&edid, 32, 0);
mtk_ddp_init();
ret = mtk_dsi_init(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_SYNC_PULSE,