rockchip: rk3399: initialize display for eDP

Hardware / Coreboot - Shunqian Zheng [rock-chips.com] - 3 June 2016 11:08 UTC

This patch adds functions to init the display. To set up the display, initialize the eDP and read the EDID. Based on these, we then set the clock for VOP, and finally enable VOP and backlight.

For a mainboard, it should set the vop_id, vop_mode and framebuffer_bits_per_pixel in devicetree.cb.

For VOP_MODE_AUTO_DETECT, it will try eDP first and then HDMI (which is not supported yet).

EDIT: Updated Makefile to only build in new files if MAINBOARD_DO_NATIVE_VGA_INIT is enabled. All of these platforms should have it enabled, so this shouldn't make any difference except now, before the platform code is in place.

BRANCH=none BUG=chrome-os-partner:51537 TEST=test with the other patch

Change-Id: If935415026c945ab6ee128bd6bbdd792890aa24a

d1cec75 rockchip: rk3399: initialize display for eDP
src/soc/rockchip/rk3399/Makefile.inc | 3 +
src/soc/rockchip/rk3399/chip.h | 32 ++++++
src/soc/rockchip/rk3399/display.c | 122 ++++++++++++++++++++++
src/soc/rockchip/rk3399/include/soc/addressmap.h | 5 +
src/soc/rockchip/rk3399/include/soc/display.h | 25 +++++
src/soc/rockchip/rk3399/include/soc/memlayout.ld | 1 +
src/soc/rockchip/rk3399/soc.c | 8 ++
7 files changed, 196 insertions(+)

Upstream: review.coreboot.org


  • Share