drm/tilcdc: implement palette loading for rev1
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 31 Oct 2016 14:19:26 +0000 (15:19 +0100)
committerJyri Sarha <jsarha@ti.com>
Wed, 30 Nov 2016 12:18:36 +0000 (14:18 +0200)
commit9345235e9c67c216af000631ba898c21e5a3f30d
tree0b76d253ab3beaa7b4d67ab149623c0924463e9c
parentcba8844a687e444f8af694f453de501c6e92e54d
drm/tilcdc: implement palette loading for rev1

Revision 1 of the IP doesn't work if we don't load the palette (even
if it's not used, which is the case for the RGB565 format).

Add a function called from tilcdc_crtc_enable() which performs all
required actions if we're dealing with a rev1 chip.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Jyri Sarha <jsarha@ti.com>
Tested-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpu/drm/tilcdc/tilcdc_crtc.c