qemu-riscv.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v3 0/2]  Add the SiFive PWM device
@ 2021-09-09  3:54 Alistair Francis
  2021-09-09  3:55 ` [PATCH v3 1/2] hw/timer: Add SiFive PWM support Alistair Francis
  2021-09-09  3:55 ` [PATCH v3 2/2] sifive_u: Connect the SiFive PWM device Alistair Francis
  0 siblings, 2 replies; 6+ messages in thread
From: Alistair Francis @ 2021-09-09  3:54 UTC (permalink / raw)
  To: qemu-devel, qemu-riscv; +Cc: bmeng.cn, palmer, alistair.francis, alistair23

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.

v3:
 - Small fixups
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

 docs/system/riscv/sifive_u.rst |   1 +
 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 +
 9 files changed, 609 insertions(+), 2 deletions(-)
 create mode 100644 include/hw/timer/sifive_pwm.h
 create mode 100644 hw/timer/sifive_pwm.c

-- 
2.31.1



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

end of thread, other threads:[~2021-09-09  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-09  3:54 [PATCH v3 0/2] Add the SiFive PWM device Alistair Francis
2021-09-09  3:55 ` [PATCH v3 1/2] hw/timer: Add SiFive PWM support Alistair Francis
2021-09-09  4:36   ` Bin Meng
2021-09-09  3:55 ` [PATCH v3 2/2] sifive_u: Connect the SiFive PWM device Alistair Francis
2021-09-09  4:37   ` Bin Meng
2021-09-09  6:35     ` Alistair Francis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).