diff options
author | Yakir Yang <ykk@rock-chips.com> | 2015-07-29 08:54:14 -0500 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-08-28 06:43:05 +0000 |
commit | 9a640597e698af45558be8bb7aaab6c3b6f28d39 (patch) | |
tree | cf445f34298f58cc8d6668f4bf59dfb076d9046f /src/soc/rockchip/rk3288/hdmi.c | |
parent | 04002a94f944037272e5946cc2233ba8dfcc423f (diff) | |
download | coreboot-9a640597e698af45558be8bb7aaab6c3b6f28d39.tar.xz |
rk3288: Set HDMI display mode to 480p
If an HDMI display is detected (EDID can be read), set the
display mode to 480p. If for some reason 480p is not supported
then we'll fall back to the automatically detected display mode.
BUG=chrome-os-partner:42946
BRANCH=firmware-veyron
TEST=dev mode screen shows up on Mickey at 480p resolution
Change-Id: I2c431eff6673392d3c09e1b66c66ba12ecc6eeb0
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Original-Commit-Id: 76203a683c4501f368c50fe24101f68746ddb7f0
Original-Change-Id: I90dea37daa2d78628230d7d47f7ef0e917cbd7bb
Original-Signed-off-by: David Hendricks <dhendrix@chromium.org>
Original-Reviewed-on: https://chromium-review.googlesource.com/290554
Original-Reviewed-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: http://review.coreboot.org/11392
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/soc/rockchip/rk3288/hdmi.c')
-rw-r--r-- | src/soc/rockchip/rk3288/hdmi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/soc/rockchip/rk3288/hdmi.c b/src/soc/rockchip/rk3288/hdmi.c index e5bebe37f5..a5203997d8 100644 --- a/src/soc/rockchip/rk3288/hdmi.c +++ b/src/soc/rockchip/rk3288/hdmi.c @@ -793,6 +793,10 @@ int rk_hdmi_get_edid(struct edid *edid) if (decode_edid(edid_buf, edid_size, edid)) hdmi_debug("failed to decode edid.\n"); + /* Try 480p for best compatibility. */ + if (set_display_mode(edid, EDID_MODE_640x480_60Hz)) + hdmi_debug("failed to set mode to 640x480@60Hz\n"); + return 0; } |