Skip to content
Commit ffe1c837 authored by Bin Meng's avatar Bin Meng Committed by Anatolij Gustschin
Browse files

video: bochs: Avoid using IO instructions to access VGA IO port



At present the driver uses IO instructions to access the legacy
VGA IO ports, which unfortunately limits the driver to work only
on x86. It turns out the IO instruction is not necessary as Bochs
VGA card remaps the legacy VGA IO ports (0x3c0 -> 0x3df) to its
memory mapped register space from offset 0x400.

Update the driver to use MMIO access for VGA IO port.

Signed-off-by: default avatarBin Meng <bmeng@tinylab.org>
Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>  # qemu-x86_64
parent caae795a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment