Skip to content

hw/arm: Add NPCM8XX Support

Hao Wu qemu-arm qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest17 patches 6 repliesIn review
  2. v417 patches 8 repliesSuperseded
  3. v317 patches 6 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v217 patches17 repliesSuperseded
v117 patches0 repliesSuperseded

Changes in v5 from the cover letter

1. Bump vmstate versions on NPCM CLK and GCR modules.
2. Remove "hw/boards.h" include in npcm8xx.h and add it in npcm8xx*.c
3. Use cpu_to_le32 instead of tswap32 in npcm8xx.c

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/17roms: Update vbootrom to 1287b6epc-bios/npcm7xx_bootrom.bin roms/vbootrom+1 -10 replies
2/17pc-bios: Add NPCM8XX vBootromMAINTAINERS pc-bios/README pc-bios/meson.build +2 more+12 -40 replies
3/17hw/ssi: Make flash size a property in NPCM7XX FIUhw/arm/npcm7xx.c hw/ssi/npcm7xx_fiu.c include/hw/ssi/npcm7xx_fiu.h+21 -21 reply
4/17hw/misc: Rename npcm7xx_gcr to npcm_gcrhw/misc/meson.build hw/misc/npcm_gcr.c include/hw/arm/npcm7xx.h +1 more+6 -60 replies
5/17hw/misc: Move NPCM7XX GCR to NPCM GCRhw/misc/npcm_gcr.c hw/misc/trace-events include/hw/arm/npcm7xx.h +1 more+59 -480 replies
6/17hw/misc: Add nr_regs and cold_reset_values to NPCM GCRhw/misc/npcm_gcr.c include/hw/misc/npcm_gcr.h+27 -133 replies
7/17hw/misc: Add support for NPCM8XX GCRhw/misc/npcm_gcr.c include/hw/misc/npcm_gcr.h+134 -50 replies
8/17hw/misc: Store DRAM size in NPCM8XX GCR Modulehw/misc/npcm_gcr.c include/hw/misc/npcm_gcr.h+25 -00 replies
9/17hw/misc: Support 8-bytes memop in NPCM GCR modulehw/misc/npcm_gcr.c hw/misc/trace-events+74 -240 replies
10/17hw/misc: Rename npcm7xx_clk to npcm_clkhw/misc/meson.build hw/misc/npcm_clk.c include/hw/arm/npcm7xx.h +1 more+6 -60 replies
11/17hw/misc: Move NPCM7XX CLK to NPCM CLKhw/misc/npcm_clk.c hw/misc/trace-events include/hw/arm/npcm7xx.h +1 more+76 -600 replies
12/17hw/misc: Add nr_regs and cold_reset_values to NPCM CLKhw/misc/npcm_clk.c hw/misc/npcm_gcr.c include/hw/misc/npcm_clk.h+22 -70 replies
13/17hw/misc: Support NPCM8XX CLK Module Registershw/misc/npcm_clk.c include/hw/misc/npcm_clk.h+119 -80 replies
14/17hw/net: Add NPCM8XX PCS Modulehw/net/meson.build hw/net/npcm_pcs.c hw/net/trace-events +1 more+455 -20 replies
15/17hw/arm: Add NPCM8XX SoCconfigs/devices/aarch64-softmmu/default.mak hw/arm/Kconfig hw/arm/meson.build +2 more+926 -00 replies
16/17hw/arm: Add NPCM845 Evaluation boardhw/arm/meson.build hw/arm/npcm8xx_boards.c include/hw/arm/npcm8xx.h+275 -10 replies
17/17docs/system/arm: Add Description for NPCM8XX SoCdocs/system/arm/nuvoton.rst hw/arm/npcm8xx_boards.c+21 -70 replies

Reviews trailers per patch

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

PatchPeter MaydellPhilippe Mathieu-DaudeTitus Rwantare
1/17R-b
2/17R-b
3/17R-b R-b
4/17R-b
5/17R-b
6/17R-b
7/17R-b
8/17R-b
9/17R-b R-b
10/17R-b
11/17R-b
12/17R-b
13/17R-b R-b
14/17R-b
15/17R-b
16/17R-b
17/17R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 00/17] hw/arm: Add NPCM8XX Support

Changes since v4:

1. Bump vmstate versions on NPCM CLK and GCR modules.
2. Remove "hw/boards.h" include in npcm8xx.h and add it in npcm8xx*.c
3. Use cpu_to_le32 instead of tswap32 in npcm8xx.c

Changes since v3:

1. Removed REGS_END constants according to code review.
2. Added a few asserts according to code review.
3. A few minor style changes.

Changes since v2:

1. Update doc to include npcm845-evb description
2. Add g_assert for register size in CLK and GCR enter_reset function
3. Fix various 8xx SoC and board file issues.

Changes since v1:

1. Updated vbootrom and pc-bios
2. Split out CLK/GCR patches into refactoring and adding new features
3. Fixed a few misc items from the patches.

---

NPCM8XX BMCs are the successors of the NPCM7XX BMCs. They feature quad-core ARM Cortex A35 that supports both 32 bits and 64 bits operations. This patch set aims to support basic functionalities of the NPCM7XX BMCs. The patch set includes:

1. We derive most devices from the 7XX models and
made some modifications.
2. We have constructed a minimum vBootROM similar to the 7XX one at
https://github.com/google/vbootrom/tree/master/npcm8xx
and included it in the patch set.
3. We added a new NPCM8XX SOC and an evaluation
board machine npcm845-evb.

The OpenBMC for NPCM845 evaluation board can be found at:
https://github.com/Nuvoton-Israel/openbmc/tree/npcm-v2.10/meta-evb/meta-evb-nuvoton/meta-evb-npcm845

The patch set can boot the evaluation board image built from the source above to login prompt.

Hao Wu (17):
roms: Update vbootrom to 1287b6e
pc-bios: Add NPCM8XX vBootrom
hw/ssi: Make flash size a property in NPCM7XX FIU hw/misc: Rename npcm7xx_gcr to npcm_gcr hw/misc: Move NPCM7XX GCR to NPCM GCR hw/misc: Add nr_regs and cold_reset_values to NPCM GCR hw/misc: Add support for NPCM8XX GCR
hw/misc: Store DRAM size in NPCM8XX GCR Module hw/misc: Support 8-bytes memop in NPCM GCR module hw/misc: Rename npcm7xx_clk to npcm_clk hw/misc: Move NPCM7XX CLK to NPCM CLK hw/misc: Add nr_regs and cold_reset_values to NPCM CLK hw/misc: Support NPCM8XX CLK Module Registers hw/net: Add NPCM8XX PCS Module
hw/arm: Add NPCM8XX SoC
hw/arm: Add NPCM845 Evaluation board docs/system/arm: Add Description for NPCM8XX SoC

 MAINTAINERS                                   |   1 +
 configs/devices/aarch64-softmmu/default.mak   |   1 +
 docs/system/arm/nuvoton.rst                   |  27 +-
 hw/arm/Kconfig                                |  13 +
 hw/arm/meson.build                            |   1 +
 hw/arm/npcm7xx.c                              |   6 +
 hw/arm/npcm8xx.c                              | 805 ++++++++++++++++++
 hw/arm/npcm8xx_boards.c                       | 254 ++++++
 hw/misc/meson.build                           |   4 +-
 hw/misc/npcm7xx_gcr.c                         | 264 ------
 hw/misc/{npcm7xx_clk.c => npcm_clk.c}         | 235 +++--
 hw/misc/npcm_gcr.c                            | 482 +++++++++++
 hw/misc/trace-events                          |  12 +-
 hw/net/meson.build                            |   1 +
 hw/net/npcm_pcs.c                             | 410 +++++++++
 hw/net/trace-events                           |   4 +-
 hw/ssi/npcm7xx_fiu.c                          |  16 +-
 include/hw/arm/npcm7xx.h                      |   8 +-
 include/hw/arm/npcm8xx.h                      | 127 +++
 include/hw/misc/{npcm7xx_clk.h => npcm_clk.h} |  43 +-
 include/hw/misc/{npcm7xx_gcr.h => npcm_gcr.h} |  29 +-
 include/hw/net/npcm_pcs.h                     |  42 +
 include/hw/ssi/npcm7xx_fiu.h                  |   1 +
 pc-bios/README                                |   8 +-
 pc-bios/meson.build                           |   1 +
 pc-bios/npcm7xx_bootrom.bin                   | Bin 768 -> 768 bytes
 pc-bios/npcm8xx_bootrom.bin                   | Bin 0 -> 608 bytes
 roms/Makefile                                 |   6 +
 roms/vbootrom                                 |   2 +-
 29 files changed, 2434 insertions(+), 369 deletions(-)
 create mode 100644 hw/arm/npcm8xx.c
 create mode 100644 hw/arm/npcm8xx_boards.c
 delete mode 100644 hw/misc/npcm7xx_gcr.c
 rename hw/misc/{npcm7xx_clk.c => npcm_clk.c} (82%)
 create mode 100644 hw/misc/npcm_gcr.c
 create mode 100644 hw/net/npcm_pcs.c
 create mode 100644 include/hw/arm/npcm8xx.h
 rename include/hw/misc/{npcm7xx_clk.h => npcm_clk.h} (83%)
 rename include/hw/misc/{npcm7xx_gcr.h => npcm_gcr.h} (76%)
 create mode 100644 include/hw/net/npcm_pcs.h
 create mode 100644 pc-bios/npcm8xx_bootrom.bin
Signature · 1 line
2.48.1.601.g30ceb7b040-goog