]> git.baikalelectronics.ru Git - kernel.git/commit
offb: Add palette hack for qemu "standard vga" framebuffer
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Dec 2011 13:58:29 +0000 (13:58 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 3 Jan 2012 01:09:23 +0000 (12:09 +1100)
commit27651cd99315b6ce5dc6774d5f332efac3084de0
tree5e4897dd6ee5aaad495a5da058fb5262eb0e01b7
parent1311519f50d21b8094e515c8f0d4be07dccb3636
offb: Add palette hack for qemu "standard vga" framebuffer

We rename the mach64 hack to "simple" since that's also applicable
to anything using VGA-style DAC IO ports (set to 8-bit DAC) and we
use it for qemu vga.

Note that this is keyed on a device-tree "compatible" property that
is currently only set by an upcoming version of SLOF when using the
qemu "pseries" platform. This is on purpose as other qemu ppc platforms
using OpenBIOS aren't properly setting the DAC to 8-bit at the time of
the writing of this patch.

We can fix OpenBIOS later to do that and add the required property, in
which case it will be matched by this change.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/video/offb.c