]> git.sur5r.net Git - u-boot/commit
drivers/video/am335x-fb: Add support for 16bpp format
authorMartin Pietryka <martin.pietryka@chello.at>
Wed, 27 Apr 2016 19:39:15 +0000 (21:39 +0200)
committerAnatolij Gustschin <agust@denx.de>
Thu, 28 Apr 2016 14:50:52 +0000 (16:50 +0200)
commit7d045170ac1bf512ed148e97432b7a8d772943e9
tree2e5235a96a2ddcc409c07452827f3faa3a1b4f9e
parente25b369c048b51b1feb79587750e7e160fc0bd73
drivers/video/am335x-fb: Add support for 16bpp format

To support 16bpp we just need to change the raster_ctrl register
accordingly. Also 32bpp mode should work as well, but was not tested.
According to the TRM the uppermost byte will be ignored when
LCD_TFT_24BPP_UNPACK is set.

The switch logic is based on the Linux kernel tilcdc driver:
drivers/gpu/drm/tilcdc/tilcdc_crtc.c: lines 407 through 419
(kernel was checked out at commit: bcc981e9ed8)

Signed-off-by: Martin Pietryka <martin.pietryka@chello.at>
Reviewed-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Tested-by: Hannes Schmelzer <oe5hpm@oevsv.at>
drivers/video/am335x-fb.c