]> git.baikalelectronics.ru Git - uboot.git/commit
video: bochs: Avoid using IO instructions to access VGA IO port
authorBin Meng <bmeng@tinylab.org>
Sun, 23 Jul 2023 04:40:27 +0000 (12:40 +0800)
committerAnatolij Gustschin <agust@denx.de>
Tue, 1 Aug 2023 11:31:29 +0000 (13:31 +0200)
commit4f32e78485531d7d247901541737c261e45c5f9b
tree2d7b8e62572f7a1791894182b48146c109f0c4bb
parentca4975604b13dd04bba886731ce7bcec788f5cb9
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: Bin Meng <bmeng@tinylab.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org> # qemu-x86_64
drivers/video/bochs.c
drivers/video/bochs.h