Skip to content

Additional NPCM7xx devices and IPMI BMC emulation support

Hao Wu via qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7hw/misc: Add clock converter in NPCM7XX CLK modulehw/misc/npcm7xx_clk.c include/hw/misc/npcm7xx_clk.h+927 -80 replies
2/7hw/timer: Refactor NPCM7XX Timer to use CLK clockhw/arm/npcm7xx.c hw/timer/npcm7xx_timer.c include/hw/misc/npcm7xx_clk.h +1 more+21 -160 replies
3/7hw/adc: Add an ADC module for NPCM7XXdocs/system/arm/nuvoton.rst hw/adc/meson.build hw/adc/npcm7xx_adc.c +5 more+819 -30 replies
4/7hw/misc: Add a PWM module for NPCM7XXdocs/system/arm/nuvoton.rst hw/arm/npcm7xx.c hw/misc/meson.build +5 more+1160 -30 replies
5/7hw/ipmi: Add an IPMI host interfacedefault-configs/devices/arm-softmmu.mak hw/ipmi/Kconfig hw/ipmi/ipmi_host.c +3 more+170 -00 replies
6/7hw/ipmi: Add a KCS Module for NPCM7XXdocs/system/arm/nuvoton.rst hw/arm/npcm7xx.c hw/ipmi/meson.build +3 more+688 -20 replies
7/7hw/ipmi: Add an IPMI external host devicehw/ipmi/ipmi_host_extern.c hw/ipmi/meson.build+436 -00 replies

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchHavard SkinnemoenTyrone Ting
1/7R-b R-b
2/7R-b R-b
3/7R-b R-b
4/7R-b R-b
5/7R-b R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] Additional NPCM7xx devices and IPMI BMC emulation support

This patch series include a few more NPCM7XX devices including

- Analog Digital Converter (ADC)
- Pulse Width Modulation (PWM)
- Keyboard Style Controller (KSC)

To utilize these modules we also add two extra functionalities:

1. We modified the CLK module to generate clock values using qdev_clock. These clocks are used to determine various clocks in NPCM7XX devices.
2. We added support for emulating IPMI responder devices in BMC machines, similar to the existing IPMI device support for CPU emulation. This allows a qemu instance running BMC firmware to serve as an external BMC for a qemu instance running server software. It utilizes the KCS module we implemented.

Hao Wu (7):
hw/misc: Add clock converter in NPCM7XX CLK module hw/timer: Refactor NPCM7XX Timer to use CLK clock hw/adc: Add an ADC module for NPCM7XX hw/misc: Add a PWM module for NPCM7XX hw/ipmi: Add an IPMI host interface hw/ipmi: Add a KCS Module for NPCM7XX hw/ipmi: Add an IPMI external host device

 default-configs/devices/arm-softmmu.mak |   2 +
 docs/system/arm/nuvoton.rst             |   6 +-
 hw/adc/meson.build                      |   1 +
 hw/adc/npcm7xx_adc.c                    | 318 ++++++++++
 hw/arm/npcm7xx.c                        |  65 +-
 hw/ipmi/Kconfig                         |   5 +
 hw/ipmi/ipmi_host.c                     |  40 ++
 hw/ipmi/ipmi_host_extern.c              | 435 +++++++++++++
 hw/ipmi/meson.build                     |   3 +
 hw/ipmi/npcm7xx_kcs.c                   | 570 +++++++++++++++++
 hw/misc/meson.build                     |   1 +
 hw/misc/npcm7xx_clk.c                   | 795 +++++++++++++++++++++++-
 hw/misc/npcm7xx_pwm.c                   | 535 ++++++++++++++++
 hw/timer/npcm7xx_timer.c                |  25 +-
 include/hw/adc/npcm7xx_adc.h            |  72 +++
 include/hw/arm/npcm7xx.h                |   6 +
 include/hw/ipmi/ipmi_host.h             |  56 ++
 include/hw/ipmi/ipmi_responder.h        |  66 ++
 include/hw/ipmi/npcm7xx_kcs.h           | 105 ++++
 include/hw/misc/npcm7xx_clk.h           | 146 ++++-
 include/hw/misc/npcm7xx_pwm.h           | 106 ++++
 include/hw/timer/npcm7xx_timer.h        |   1 +
 tests/qtest/meson.build                 |   4 +-
 tests/qtest/npcm7xx_adc-test.c          | 400 ++++++++++++
 tests/qtest/npcm7xx_pwm-test.c          | 490 +++++++++++++++
 25 files changed, 4221 insertions(+), 32 deletions(-)
 create mode 100644 hw/adc/npcm7xx_adc.c
 create mode 100644 hw/ipmi/ipmi_host.c
 create mode 100644 hw/ipmi/ipmi_host_extern.c
 create mode 100644 hw/ipmi/npcm7xx_kcs.c
 create mode 100644 hw/misc/npcm7xx_pwm.c
 create mode 100644 include/hw/adc/npcm7xx_adc.h
 create mode 100644 include/hw/ipmi/ipmi_host.h
 create mode 100644 include/hw/ipmi/ipmi_responder.h
 create mode 100644 include/hw/ipmi/npcm7xx_kcs.h
 create mode 100644 include/hw/misc/npcm7xx_pwm.h
 create mode 100644 tests/qtest/npcm7xx_adc-test.c
 create mode 100644 tests/qtest/npcm7xx_pwm-test.c
Signature · 1 line
2.29.2.684.gfbc64c5ab5-goog