
This series moves the QFW driver into a uclass, UCLASS_QFW, and splits the driver into qfw_pio and qfw_mmio. A sandbox driver is also added, and a DM unit test against that driver.
On x86 a U_BOOT_DRVINFO is used to configure the qfw_pio (with compiled- in constants used for PIO ports), otherwise we configure qfw_mmio from device tree if present.
Version 4 of this series adds a test for the qfw command, exercising it on QEMU in test/py/tests/test_qfw.py. The introductory "move QFW to DM" commit has been rolled into the uclass split one. Documentation is added.
To view the changes online, see: https://git.src.kameliya.ee/~kameliya/u-boot/log/qfw-priv
Asherah Connor (5): arm: x86: qemu: move qfw to DM uclass, add Arm support arm: x86: qemu: unify qfw driver functions as qfw_ qemu: add sandbox driver and tests test: qemu: add simple test for cmd_qfw qemu: add documentation to qfw.h
arch/arm/Kconfig | 1 + arch/sandbox/dts/sandbox.dtsi | 4 + arch/sandbox/dts/test.dts | 4 + arch/x86/cpu/qemu/cpu.c | 9 +- arch/x86/cpu/qemu/qemu.c | 47 +------ arch/x86/cpu/qfw_cpu.c | 11 +- cmd/qfw.c | 56 ++++---- common/Makefile | 2 + common/qfw.c | 105 +++++++++++++++ drivers/misc/Makefile | 7 +- drivers/misc/qfw.c | 242 ++++++++++++---------------------- drivers/misc/qfw_mmio.c | 119 +++++++++++++++++ drivers/misc/qfw_pio.c | 69 ++++++++++ drivers/misc/qfw_sandbox.c | 129 ++++++++++++++++++ include/dm/uclass-id.h | 1 + include/qfw.h | 145 ++++++++++++++++---- test/dm/Makefile | 1 + test/dm/qfw.c | 42 ++++++ test/py/tests/test_qfw.py | 21 +++ 19 files changed, 752 insertions(+), 263 deletions(-) create mode 100644 common/qfw.c create mode 100644 drivers/misc/qfw_mmio.c create mode 100644 drivers/misc/qfw_pio.c create mode 100644 drivers/misc/qfw_sandbox.c create mode 100644 test/dm/qfw.c create mode 100644 test/py/tests/test_qfw.py