[PATCH v4 1/5] arm: x86: qemu: move qfw to DM uclass, add Arm support

Simon Glass sjg at chromium.org
Thu Feb 25 20:31:35 CET 2021


On Tue, 23 Feb 2021 at 22:24, Asherah Connor <ashe at kivikakk.ee> wrote:
>
> Updates the QFW driver to use the driver model, splitting the driver
> into qfw_pio and qfw_mmio (for non-x86) in their own uclass.
>
> Signed-off-by: Asherah Connor <ashe at kivikakk.ee>
> ---
>
> Changes in v4:
> - PIO definitions are now #defines
> - qfw_*_plat structs are no longer in header files
> - Remove yield/pause in DMA wait loop
> - Change struct udevice *qfw_get_dev(void) to int qfw_get_dev(struct
>   udevice **)
>
>  arch/arm/Kconfig         |   1 +
>  arch/x86/cpu/qemu/cpu.c  |   9 +-
>  arch/x86/cpu/qemu/qemu.c |  47 +-------
>  arch/x86/cpu/qfw_cpu.c   |  11 +-
>  cmd/qfw.c                |  52 ++++-----
>  common/Makefile          |   2 +
>  common/qfw.c             | 105 +++++++++++++++++
>  drivers/misc/Makefile    |   6 +-
>  drivers/misc/qfw.c       | 238 ++++++++++++++-------------------------
>  drivers/misc/qfw_mmio.c  | 119 ++++++++++++++++++++
>  drivers/misc/qfw_pio.c   |  69 ++++++++++++
>  include/dm/uclass-id.h   |   1 +
>  include/qfw.h            |  61 ++++++----
>  13 files changed, 466 insertions(+), 255 deletions(-)
>  create mode 100644 common/qfw.c
>  create mode 100644 drivers/misc/qfw_mmio.c
>  create mode 100644 drivers/misc/qfw_pio.c

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list