[PATCH v2 0/4] Additional NPCM7xx devices

Hao Wu via posted 4 patches 3 years, 4 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20201211222223.2252172-1-wuhaotsh@google.com
Maintainers: Havard Skinnemoen <hskinnemoen@google.com>, Thomas Huth <thuth@redhat.com>, Alistair Francis <alistair@alistair23.me>, Tyrone Ting <kfting@nuvoton.com>, Laurent Vivier <lvivier@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>
There is a newer version of this series
docs/system/arm/nuvoton.rst      |   4 +-
hw/adc/meson.build               |   1 +
hw/adc/npcm7xx_adc.c             | 318 +++++++++++++
hw/arm/npcm7xx.c                 |  55 ++-
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         |   4 +
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 +++++++++++++++++++
16 files changed, 2927 insertions(+), 30 deletions(-)
create mode 100644 hw/adc/npcm7xx_adc.c
create mode 100644 hw/misc/npcm7xx_pwm.c
create mode 100644 include/hw/adc/npcm7xx_adc.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
[PATCH v2 0/4] Additional NPCM7xx devices
Posted by Hao Wu via 3 years, 4 months ago
This patch series include a few more NPCM7XX devices including

- Analog Digital Converter (ADC)
- Pulse Width Modulation (PWM)

We also modified the CLK module to generate clock values using qdev_clock.
These clocks are used to determine various clocks in NPCM7XX devices.

Thank you for your review!

Changes since v1:
We removed the IPMI and KCS related code from this patch set.

Hao Wu (4):
  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

 docs/system/arm/nuvoton.rst      |   4 +-
 hw/adc/meson.build               |   1 +
 hw/adc/npcm7xx_adc.c             | 318 +++++++++++++
 hw/arm/npcm7xx.c                 |  55 ++-
 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         |   4 +
 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 +++++++++++++++++++
 16 files changed, 2927 insertions(+), 30 deletions(-)
 create mode 100644 hw/adc/npcm7xx_adc.c
 create mode 100644 hw/misc/npcm7xx_pwm.c
 create mode 100644 include/hw/adc/npcm7xx_adc.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

-- 
2.29.2.684.gfbc64c5ab5-goog