All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] Move qfw to DM, add Arm support
@ 2021-02-23 11:43 Asherah Connor
  2021-02-23 11:43 ` [PATCH v3 1/4] arm: x86: qemu: move qfw to DM, include " Asherah Connor
                   ` (3 more replies)
  0 siblings, 4 replies; 18+ messages in thread
From: Asherah Connor @ 2021-02-23 11:43 UTC (permalink / raw)
  To: u-boot

Version 3 of this series moves the QFW driver into a uclass, UCLASS_QFW,
and splits the driver into qfw_pio and qfw_mmio.  The ugly arch-specific
ifdefs are now gone, since regular Makefile conditional compilation of
each driver takes care of it for us.

As before, on x86 a U_BOOT_DRVINFO is used to configure the qfw_pio
driver, otherwise we configure qfw_mmio from device tree if present.

I continue to test this on arm64 and x86_64 qemu.  A sandbox driver is
also included, and a DM unit test for it.

A test that runs in the qemu platform is still yet to come -- I wanted
to submit this ahead of that for more feedback.  One question: how much
should I roll these patches together?  The first introduces a few
changes that are immediately superceded by the second, but maybe it's
helpful for review?

To view the changes online, see:
https://git.src.kameliya.ee/~kameliya/u-boot/log/qfw-priv

Changes in v3:
- ARCH_QEMU now implies CMD_QFW, not QFW
- rename qemu_fwcfg_read_entry_pio to ..._io

Asherah Connor (4):
  arm: x86: qemu: move qfw to DM, include Arm support
  arm: x86: qemu: add UCLASS_QFW, split driver into _pio and _mmio
  arm: x86: qemu: unify qfw driver functions as qfw_
  qemu: add sandbox driver and tests

 arch/arm/Kconfig              |   1 +
 arch/sandbox/dts/sandbox.dtsi |   4 +
 arch/sandbox/dts/test.dts     |   4 +
 arch/x86/cpu/qemu/cpu.c       |   7 +-
 arch/x86/cpu/qemu/qemu.c      |  52 ++------
 arch/x86/cpu/qfw_cpu.c        |  11 +-
 cmd/qfw.c                     |  56 ++++----
 common/Makefile               |   2 +
 common/qfw.c                  | 111 ++++++++++++++++
 drivers/misc/Makefile         |   7 +-
 drivers/misc/qfw.c            | 239 ++++++++++++----------------------
 drivers/misc/qfw_mmio.c       | 101 ++++++++++++++
 drivers/misc/qfw_pio.c        |  66 ++++++++++
 drivers/misc/qfw_sandbox.c    | 129 ++++++++++++++++++
 include/dm/uclass-id.h        |   1 +
 include/qfw.h                 |  90 +++++++++----
 test/dm/Makefile              |   1 +
 test/dm/qfw.c                 |  42 ++++++
 18 files changed, 665 insertions(+), 259 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

-- 
2.20.1

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2021-02-24  0:22 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-23 11:43 [PATCH v3 0/4] Move qfw to DM, add Arm support Asherah Connor
2021-02-23 11:43 ` [PATCH v3 1/4] arm: x86: qemu: move qfw to DM, include " Asherah Connor
2021-02-23 12:59   ` Heinrich Schuchardt
2021-02-23 14:53     ` Tom Rini
2021-02-23 15:54       ` Heinrich Schuchardt
2021-02-23 16:03         ` Tom Rini
2021-02-23 16:15           ` Heinrich Schuchardt
2021-02-23 16:33             ` Tom Rini
2021-02-23 23:54               ` Asherah Connor
2021-02-23 23:58                 ` Tom Rini
2021-02-24  0:12                   ` Asherah Connor
2021-02-24  0:22     ` Asherah Connor
2021-02-23 11:43 ` [PATCH v3 2/4] arm: x86: qemu: add UCLASS_QFW, split driver into _pio and _mmio Asherah Connor
2021-02-23 15:58   ` Simon Glass
2021-02-23 11:43 ` [PATCH v3 3/4] arm: x86: qemu: unify qfw driver functions as qfw_ Asherah Connor
2021-02-23 11:43 ` [PATCH v3 4/4] qemu: add sandbox driver and tests Asherah Connor
2021-02-23 12:26   ` Asherah Connor
2021-02-23 15:58   ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.