Skip to content

Unified peripheral emulation for Renesas chips

Yoshinori Sato qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest11 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11hw/char: Renesas SCI module.hw/char/renesas_sci.c include/hw/char/renesas_sci.h+966 -2023 replies
2/11hw/char: remove sh_serial.MAINTAINERS hw/char/Kconfig hw/char/meson.build +1 more+2 -4374 replies
3/11hw/timer: Renesas TMU/CMT module.hw/timer/Kconfig hw/timer/meson.build hw/timer/renesas_timer.c +1 more+744 -00 replies
4/11hw/timer: Remove sh_timer.MAINTAINERS hw/timer/Kconfig hw/timer/meson.build +2 more+2 -3980 replies
5/11hw/timer: Remove renesas_cmt.hw/timer/meson.build hw/timer/renesas_cmt.c include/hw/timer/renesas_cmt.h+0 -3270 replies
6/11hw/rx: Add RX62N Clock generatorhw/rx/meson.build hw/rx/rx62n-cpg.c hw/rx/rx62n.c +2 more+449 -160 replies
7/11hw/timer: Renesas 8bit timer.hw/timer/Kconfig hw/timer/meson.build hw/timer/renesas_tmr.c +3 more+609 -5561 reply
8/11hw/rx: rx62n use new hw modules.hw/rx/Kconfig hw/rx/rx62n.c include/hw/rx/rx62n.h+19 -130 replies
9/11hw/sh4: sh7750 Add CPG.hw/sh4/meson.build hw/sh4/sh7750.c hw/sh4/sh7751-cpg.c +1 more+577 -00 replies
10/11hw/sh4: sh7750 use new hw modules.hw/sh4/Kconfig hw/sh4/sh7750.c include/hw/sh4/sh.h+79 -200 replies
11/11hw/rx: rx-gdbsim Add bootstrup for linuxhw/rx/rx-gdbsim.c hw/rx/rx62n.c include/hw/rx/rx62n.h+59 -610 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/11] Unified peripheral emulation for Renesas chips

Renesas SH4 and RX have similar peripherals. Integrate the emulation code for these peripherals.

Migrate peripherals.
SH4 sh_timer(TMU) -> renesas_timer
SH4 sh_serial(SCI/SCIF) -> renesas_sci
RX renesas_cmt(CMT) -> renesas_timer
RX renesas_sci(SCIa) -> renesas_sci

I want to process the peripheral clocks of SH4 and RX in the same way, so I added a new clock generator. This will generate a peripheral clock from the master clock.

Yoshinori Sato (11):
hw/char: Renesas SCI module.
hw/char: remove sh_serial.
hw/timer: Renesas TMU/CMT module.
hw/timer: Remove sh_timer.
hw/timer: Remove renesas_cmt.
hw/rx: Add RX62N Clock generator
hw/timer: Renesas 8bit timer.
hw/rx: rx62n use new hw modules.
hw/sh4: sh7750 Add CPG.
hw/sh4: sh7750 use new hw modules.
hw/rx: rx-gdbsim Add bootstrup for linux

 include/hw/char/renesas_sci.h    |  129 +++-
 include/hw/rx/rx62n-cpg.h        |   72 +++
 include/hw/rx/rx62n.h            |   34 +-
 include/hw/sh4/sh.h              |    8 -
 include/hw/sh4/sh7751-cpg.h      |   94 +++
 include/hw/timer/renesas_cmt.h   |   43 --
 include/hw/timer/renesas_timer.h |   96 +++
 include/hw/timer/renesas_tmr.h   |   58 --
 include/hw/timer/renesas_tmr8.h  |   67 ++
 include/hw/timer/tmu012.h        |   23 -
 hw/char/renesas_sci.c            | 1039 +++++++++++++++++++++++++-----
 hw/char/sh_serial.c              |  431 -------------
 hw/rx/rx-gdbsim.c                |   89 +--
 hw/rx/rx62n-cpg.c                |  344 ++++++++++
 hw/rx/rx62n.c                    |   64 +-
 hw/sh4/sh7750.c                  |  110 +++-
 hw/sh4/sh7751-cpg.c              |  457 +++++++++++++
 hw/timer/renesas_cmt.c           |  283 --------
 hw/timer/renesas_timer.c         |  644 ++++++++++++++++++
 hw/timer/renesas_tmr.c           |  493 --------------
 hw/timer/renesas_tmr8.c          |  540 ++++++++++++++++
 hw/timer/sh_timer.c              |  368 -----------
 MAINTAINERS                      |    8 +-
 hw/char/Kconfig                  |    3 -
 hw/char/meson.build              |    1 -
 hw/rx/Kconfig                    |    4 +-
 hw/rx/meson.build                |    2 +-
 hw/sh4/Kconfig                   |    4 +-
 hw/sh4/meson.build               |    1 +
 hw/timer/Kconfig                 |   12 +-
 hw/timer/meson.build             |    5 +-
 31 files changed, 3501 insertions(+), 2025 deletions(-)
 create mode 100644 include/hw/rx/rx62n-cpg.h
 create mode 100644 include/hw/sh4/sh7751-cpg.h
 delete mode 100644 include/hw/timer/renesas_cmt.h
 create mode 100644 include/hw/timer/renesas_timer.h
 delete mode 100644 include/hw/timer/renesas_tmr.h
 create mode 100644 include/hw/timer/renesas_tmr8.h
 delete mode 100644 include/hw/timer/tmu012.h
 delete mode 100644 hw/char/sh_serial.c
 create mode 100644 hw/rx/rx62n-cpg.c
 create mode 100644 hw/sh4/sh7751-cpg.c
 delete mode 100644 hw/timer/renesas_cmt.c
 create mode 100644 hw/timer/renesas_timer.c
 delete mode 100644 hw/timer/renesas_tmr.c
 create mode 100644 hw/timer/renesas_tmr8.c
 delete mode 100644 hw/timer/sh_timer.c
Signature · 1 line
2.20.1