CHROMIUM: drm/rockchip: add support for gamma table

Introduce support for gamma table, 10 bit per component, 1024 entries.

Gamma table has to be uploaded when the LUT is disabled which only takes
effect at the end of a frame, therefore actual hardware updates is done
from a worker and can take more than one frame.

BUG=chromium:484831
TEST=emerge and deploy drm-tests; stop ui and kill frecon, run gamma_test

Change-Id: I662b5e5df9529fbcf39bbac6d0cf141e97d2d851
Signed-off-by: Dominik Behr <dbehr@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/272209
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
3 files changed