[PATCH v2 0/2] Add the SiFive PWM device

Alistair Francis posted 2 patches 2 years, 7 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/cover.1630625094.git.alistair.francis@wdc.com
Maintainers: Alistair Francis <Alistair.Francis@wdc.com>, Alistair Francis <alistair.francis@wdc.com>, Palmer Dabbelt <palmer@dabbelt.com>, Bin Meng <bin.meng@windriver.com>
There is a newer version of this series
include/hw/riscv/sifive_u.h   |  14 +-
include/hw/timer/sifive_pwm.h |  62 +++++
hw/riscv/sifive_u.c           |  55 +++-
hw/timer/sifive_pwm.c         | 468 ++++++++++++++++++++++++++++++++++
hw/riscv/Kconfig              |   1 +
hw/timer/Kconfig              |   3 +
hw/timer/meson.build          |   1 +
hw/timer/trace-events         |   6 +
8 files changed, 608 insertions(+), 2 deletions(-)
create mode 100644 include/hw/timer/sifive_pwm.h
create mode 100644 hw/timer/sifive_pwm.c
[PATCH v2 0/2] Add the SiFive PWM device
Posted by Alistair Francis 2 years, 7 months ago
From: Alistair Francis <alistair.francis@wdc.com>


This series adds a the SiFive PWM device and connects it to the
sifive_u machine. This has been tested as a timer with seL4.

v2:
 - Address Bin's comments
 - Expose PWM via the device tree


Alistair Francis (2):
  hw/timer: Add SiFive PWM support
  sifive_u: Connect the SiFive PWM device

 include/hw/riscv/sifive_u.h   |  14 +-
 include/hw/timer/sifive_pwm.h |  62 +++++
 hw/riscv/sifive_u.c           |  55 +++-
 hw/timer/sifive_pwm.c         | 468 ++++++++++++++++++++++++++++++++++
 hw/riscv/Kconfig              |   1 +
 hw/timer/Kconfig              |   3 +
 hw/timer/meson.build          |   1 +
 hw/timer/trace-events         |   6 +
 8 files changed, 608 insertions(+), 2 deletions(-)
 create mode 100644 include/hw/timer/sifive_pwm.h
 create mode 100644 hw/timer/sifive_pwm.c

-- 
2.31.1