drivers/video: fsl-diu-fb: add hardware cursor support
authorTimur Tabi <timur@tabi.org>
Sat, 30 Mar 2013 00:36:00 +0000 (02:36 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 10 Apr 2013 12:03:32 +0000 (15:03 +0300)
commit38dd2daf297a4543344b6c473f3e80b362430a4b
treefac466c1472dc4c54abb3225cad7a12e7f99b338
parent3ccbf89f4d86cc8f4d6645fa5db0327ef835777b
drivers/video: fsl-diu-fb: add hardware cursor support

The Freescale DIU supports a 32x32 color hardware cursor.  Framebuffer
cursors are monochrome, so the driver converts the image data to the
format that the DIU expects and then programs to hardware accordingly.

The support cursor enabling/disabling, we provide two cursor image buffers.
One is always blank (all zeroes), and the other contains the real cursor
image data.  To disable the cursor (used typically for cursor blinking),
we just tell the hardware to use the blank cursor data.

Signed-off-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fsl-diu-fb.c