x86: qemu: move QFW to its own uclass
authorAsherah Connor <ashe@kivikakk.ee>
Fri, 19 Mar 2021 07:21:40 +0000 (18:21 +1100)
committerTom Rini <trini@konsulko.com>
Mon, 12 Apr 2021 21:44:55 +0000 (17:44 -0400)
commit5b0b43e0e25dbeed62a2155e7f3be562b9ceb9bd
tree309170036a9d09d9c65087c4b490f4605777abe6
parent2a3f161c8b16ed4fe4bd215dddfa21f4ddbd3e37
x86: qemu: move QFW to its own uclass

We move qfw into its own uclass and split the PIO functions into a
specific driver for that uclass.  The PIO driver is selected in the
qemu-x86 board config (this covers x86 and x86_64).

include/qfw.h is cleaned up and documentation added.

Signed-off-by: Asherah Connor <ashe@kivikakk.ee>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
13 files changed:
arch/x86/cpu/qemu/cpu.c
arch/x86/cpu/qemu/qemu.c
arch/x86/cpu/qfw_cpu.c
board/emulation/qemu-x86/Kconfig
cmd/qfw.c
common/Makefile
common/qfw.c [new file with mode: 0644]
drivers/misc/Kconfig
drivers/misc/Makefile
drivers/misc/qfw.c
drivers/misc/qfw_pio.c [new file with mode: 0644]
include/dm/uclass-id.h
include/qfw.h