Skip to content

Add device STM32L4x5 SYSCFG

~inesvarhol qemu-arm qemu-devel 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 3 repliesSuperseded

Changes in v2 from the cover letter

- explain in 3rd commit why SYSCFG input GPIOs aren't connected and add a TODO comment in stm32l4x5_soc.c
- use macros NUM_GPIOS and GPIO_NUM_PINS in stm32l4x5_syscfg_set_irq
- rename STM32L4XX to STM32L4X5, Stm32l4xx to Stm32l4x5
(the SYSCFG implementation is only valid for STM32L4x5 and STM32L4x6 but not for STM32L41xx/42xx/43xx/44xx)
- refactor STM32L4x5SyscfgState to Stm32l4x5SyscfgState to be consistent with other peripherals

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3hw/misc: Implement STM32L4x5 SYSCFGhw/misc/Kconfig hw/misc/meson.build hw/misc/stm32l4x5_syscfg.c +2 more+329 -00 replies
2/3tests/qtest: Add STM32L4x5 SYSCFG QTest testcasetests/qtest/meson.build tests/qtest/stm32l4x5_syscfg-test.c+410 -10 replies
3/3hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoChw/arm/Kconfig hw/arm/stm32l4x5_soc.c include/hw/arm/stm32l4x5_soc.h+25 -10 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchAlistair Francis
1/3
2/3A-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH qemu v2 0/3] Add device STM32L4x5 SYSCFG

Hello Alistair, thank you for your comments.

Changes from v1 to v2:
- explain in 3rd commit why SYSCFG input GPIOs aren't connected and add a TODO comment in stm32l4x5_soc.c
- use macros NUM_GPIOS and GPIO_NUM_PINS in stm32l4x5_syscfg_set_irq
- rename STM32L4XX to STM32L4X5, Stm32l4xx to Stm32l4x5
(the SYSCFG implementation is only valid for STM32L4x5 and STM32L4x6 but not for STM32L41xx/42xx/43xx/44xx)
- refactor STM32L4x5SyscfgState to Stm32l4x5SyscfgState to be consistent with other peripherals

Based-on: <[email protected]> ([PATCH qemu v3 0/3] Add device STM32L4x5 EXTI)

Inès Varhol (3):
hw/misc: Implement STM32L4x5 SYSCFG tests/qtest: Add STM32L4x5 SYSCFG QTest testcase hw/arm: Connect STM32L4x5 SYSCFG to STM32L4x5 SoC

 hw/arm/Kconfig                      |   1 +
 hw/arm/stm32l4x5_soc.c              |  23 +-
 hw/misc/Kconfig                     |   3 +
 hw/misc/meson.build                 |   1 +
 hw/misc/stm32l4x5_syscfg.c          | 265 ++++++++++++++++++
 hw/misc/trace-events                |   6 +
 include/hw/arm/stm32l4x5_soc.h      |   2 +
 include/hw/misc/stm32l4x5_syscfg.h  |  54 ++++
 tests/qtest/meson.build             |   3 +-
 tests/qtest/stm32l4x5_syscfg-test.c | 408 ++++++++++++++++++++++++++++
 10 files changed, 764 insertions(+), 2 deletions(-)
 create mode 100644 hw/misc/stm32l4x5_syscfg.c
 create mode 100644 include/hw/misc/stm32l4x5_syscfg.h
 create mode 100644 tests/qtest/stm32l4x5_syscfg-test.c
Signature · 1 line
2.38.5