rk3288: Auto-detect display

Hardware / Coreboot - David Hendricks [chromium.org] - 6 July 2015 02:40 UTC

We currently select either HDMI or EDP (default). This patch allows us to use HDMI as a fallback for devices that may have a display connected on either interface. It also renames the enums to sound a little more sensible in other contexts (more on that in the follow-up patches).

VOP_MODE_AUTO is added to the mode enum which will make it explicit that a board can support either. In AUTO_MODE we will try EDP first and then fallback to HDMI. Other modes can be set to force a certain behavior such as HDMI-only on Mickey where it doesn't make sense to try EDP.

A follow-up patch will add logic for when we explicitly don't want to probe for any display (headless devices).

BUG=none BRANCH=none TEST=On veyron_danger, connected EDP and HDMI displays and saw dev mode screen appear on EDP display. Unplugged EDP and then dev mode screen showed up on HDMI.

Change-Id: I22b38031c4ab3d79fbb182f7a906da1197f35543

af42f06 rk3288: Auto-detect display.
src/soc/rockchip/rk3288/chip.h | 1 +
src/soc/rockchip/rk3288/display.c | 54 +++++++++++++++++++----------
src/soc/rockchip/rk3288/include/soc/vop.h | 12 +++++--
src/soc/rockchip/rk3288/vop.c | 4 +--
4 files changed, 47 insertions(+), 24 deletions(-)

Upstream: review.coreboot.org


  • Share