mirror of
https://github.com/genodelabs/genode.git
synced 2025-04-08 03:45:24 +00:00
Remove Qemu bug workaround in pl11x driver
Remove a workaround for Qemu <= 0.14.x which results in a wrong pixel format on Qemu >= 1.0. Fixes #243.
This commit is contained in:
parent
ba0b20054e
commit
7d86edc355
@ -131,15 +131,7 @@ namespace Framebuffer
|
||||
_timer.msleep(100);
|
||||
}
|
||||
|
||||
ctrl = CTRL_BGR | CTRL_ENABLED | CTRL_TFT | CTRL_VCOMP;
|
||||
|
||||
/*
|
||||
* QEmu (version <= 14.x) doesn't emulate pl11x properly,
|
||||
* set bpp16 although we actually use bbp16_565.
|
||||
* It doesn't set the system's identity register,
|
||||
* so we can detect it.
|
||||
*/
|
||||
ctrl |= (sys_reg_read(SP810_REG_ID) == 0) ? CTRL_BPP16 : CTRL_BPP16_565;
|
||||
ctrl = CTRL_BGR | CTRL_ENABLED | CTRL_TFT | CTRL_VCOMP | CTRL_BPP16_565;
|
||||
|
||||
/* init color-lcd oscillator */
|
||||
sys_reg_write(SP810_REG_LOCK, 0xa05f);
|
||||
|
Loading…
x
Reference in New Issue
Block a user