]> asedeno.scripts.mit.edu Git - linux.git/commit
video: fbdev: pmag-aa-fb: Adapt to current APIs
authorMaciej W. Rozycki <macro@linux-mips.org>
Mon, 22 Feb 2016 01:54:59 +0000 (01:54 +0000)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 26 Feb 2016 11:06:10 +0000 (13:06 +0200)
commit90c83176e5cfa666bb2e7643d74ca87e08e171cb
tree3b2334efb0cb1d0506cf8a653224672b818f1f6c
parentaf22f647b4a0b4a549ccbbc55a324edc54089564
video: fbdev: pmag-aa-fb: Adapt to current APIs

Rework the driver to use the current frambuffer and TURBOchannel APIs,
including proper resource management and using the new framework for
hardware cursor support.

NB two Bt431 cursor generators are included onboard, both responding at
the same TURBOchannel bus addresses and with their host data buses wired
to byte lanes #0 and #1 respectively of the 32-bit bus.  Therefore both
can be accessed simultaneously with 16-bit data transfers.  Cursor
outputs of the chip wired to lane #0 drive the respective overlay select
inputs of the Bt455 RAMDAC, whereas cursor outputs of the chip wired to
lane #1 drive the respective P3 pixel select inputs of the RAMDAC.

So 5 (out of 17) Bt455 color registers are usable with this board:
palette entries #0 and #1 for frame buffer pixel data driven while
neither cursor generator is active, palette entries #8 and #9 for frame
buffer pixel data driven while cursor generator #1 is active only and
the overlay entry while cursor generator #0 is active.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/fbdev/bt431.h
drivers/video/fbdev/pmag-aa-fb.c