vga: support for 15bpp

This is the default in qemu now

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Benjamin Herrenschmidt 2012-01-10 22:40:05 +11:00 committed by David Gibson
parent 2896f6cf73
commit 3a7cb8581e
1 changed files with 3 additions and 2 deletions

View File

@ -202,6 +202,7 @@ a CONSTANT VBE_DISPI_INDEX_NB
s" qemu,graphic-depth" get-chosen IF
decode-int nip nip
dup 8 =
over f = or
over 10 = or
over 20 = or IF
to disp-depth
@ -240,7 +241,7 @@ a CONSTANT VBE_DISPI_INDEX_NB
\ Shouldn't this be done from open ?
disp-width encode-int s" width" property
disp-height encode-int s" height" property
disp-width disp-depth 8 / * encode-int s" linebytes" property
disp-width disp-depth 7 + 8 / * encode-int s" linebytes" property
disp-depth encode-int s" depth" property
s" ISO8859-1" encode-string s" character-set" property \ i hope this is ok...
\ add "device_type" property
@ -263,7 +264,7 @@ a CONSTANT VBE_DISPI_INDEX_NB
set-font
disp-width disp-height
disp-width char-width / disp-height char-height /
disp-depth 8 / ( width height #lines #cols depth )
disp-depth 7 + 8 / ( width height #lines #cols depth )
fb-install
true to is-installed?
THEN