rk3399: display: Use edid_set_framebuffer_bits_per_pixel() helper
commite74f5eaa432b6483da56c5e964a6f5fbf29cbaed
authorJulius Werner <jwerner@chromium.org>
Tue, 18 Oct 2016 01:14:41 +0000 (17 18:14 -0700)
committerJulius Werner <jwerner@chromium.org>
Tue, 18 Oct 2016 17:52:44 +0000 (18 19:52 +0200)
treecec674ad1449b059753eab4e3e9dc962a0954840
parent0bc12abc2b26c0b4098ac76a6d42219b359c7a22
rk3399: display: Use edid_set_framebuffer_bits_per_pixel() helper

This refactoring was already carried into RK3288 with commit 6911219
(edid: Add helper function to calculate bits-per-pixel dependent values)
but it seems that the code for RK3399 was copy&pasted from it too early
to pick this up. Fix that so that future Rockchip SoCs can copy&paste
the right thing.

Change-Id: I5050c58d18db38fffabc7666e67a622d4a828590
Signed-off-by: Julius Werner <jwerner@chromium.org>
Reviewed-on: https://review.coreboot.org/17050
Tested-by: build bot (Jenkins)
Reviewed-by: David Hendricks <dhendrix@chromium.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
src/soc/rockchip/rk3399/display.c