All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Add device STM32L4x5 RCC
@ 2024-01-13 10:29 Arnaud Minier
  2024-01-13 10:29 ` [PATCH 1/7] Implement STM32L4x5_RCC skeleton Arnaud Minier
                   ` (6 more replies)
  0 siblings, 7 replies; 11+ messages in thread
From: Arnaud Minier @ 2024-01-13 10:29 UTC (permalink / raw)
  To: qemu-devel
  Cc: Alistair Francis, Inès Varhol, qemu-arm, Samuel Tardieu,
	Arnaud Minier, Philipe Mathieu-Daudé, Peter Maydell

This patch adds a new device STM32L4x5 RCC (Reset and Clock Control) device and is part
of a series implementing the STM32L4x5 with a few peripherals.

Due to the high number of lines, I tried to split the patch into several independent commits.
Each commit compiles on its own but I had to add temporary workarounds in intermediary commits to allow them to compile even if some functions are not used. However, they have been removed once the functions were used. Tell me if this is ok or if I should remove them.

Also, the tests are not very exhaustive for the moment. I have not found a way to test the clocks' frequency from the qtests, which limits severely the exhaustiveness of the tests.

Thanks to Philippe Mathieu-Daudé and Luc Michel for guiding me toward the hw/misc/bcm2835_cprman.c implementation and answering my questions about clock emulation in qemu !

Based on 20240109194438.70934-1-ines.varhol@telecom-paris.fr
([PATCH v4 0/3] Add device STM32L4x5 SYSCFG)

Arnaud Minier (7):
  Implement STM32L4x5_RCC skeleton
  Add an internal clock multiplexer object
  Add an internal PLL Clock object
  Add initialization information for PLLs and clock multiplexers
  RCC: Handle Register Updates
  STM32L4x5: Use the RCC Sysclk
  Add tests for the STM32L4x5_RCC

 MAINTAINERS                               |    5 +-
 docs/system/arm/b-l475e-iot01a.rst        |    2 +-
 hw/arm/Kconfig                            |    1 +
 hw/arm/b-l475e-iot01a.c                   |   10 +-
 hw/arm/stm32l4x5_soc.c                    |   45 +-
 hw/misc/Kconfig                           |    3 +
 hw/misc/meson.build                       |    1 +
 hw/misc/stm32l4x5_rcc.c                   | 1298 +++++++++++++++++++++
 hw/misc/trace-events                      |   14 +
 include/hw/arm/stm32l4x5_soc.h            |    5 +-
 include/hw/misc/stm32l4x5_rcc.h           |  239 ++++
 include/hw/misc/stm32l4x5_rcc_internals.h | 1044 +++++++++++++++++
 tests/qtest/meson.build                   |    3 +-
 tests/qtest/stm32l4x5_rcc-test.c          |  211 ++++
 14 files changed, 2836 insertions(+), 45 deletions(-)
 create mode 100644 hw/misc/stm32l4x5_rcc.c
 create mode 100644 include/hw/misc/stm32l4x5_rcc.h
 create mode 100644 include/hw/misc/stm32l4x5_rcc_internals.h
 create mode 100644 tests/qtest/stm32l4x5_rcc-test.c

-- 
2.34.1


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

end of thread, other threads:[~2024-01-22  4:37 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-13 10:29 [PATCH 0/7] Add device STM32L4x5 RCC Arnaud Minier
2024-01-13 10:29 ` [PATCH 1/7] Implement STM32L4x5_RCC skeleton Arnaud Minier
2024-01-22  4:34   ` Alistair Francis
2024-01-13 10:29 ` [PATCH 2/7] Add an internal clock multiplexer object Arnaud Minier
2024-01-22  4:36   ` Alistair Francis
2024-01-13 10:29 ` [PATCH 3/7] Add an internal PLL Clock object Arnaud Minier
2024-01-13 10:29 ` [PATCH 4/7] Add initialization information for PLLs and clock multiplexers Arnaud Minier
2024-01-13 10:29 ` [PATCH 5/7] RCC: Handle Register Updates Arnaud Minier
2024-01-13 10:29 ` [PATCH 6/7] STM32L4x5: Use the RCC Sysclk Arnaud Minier
2024-01-13 10:29 ` [PATCH 7/7] Add tests for the STM32L4x5_RCC Arnaud Minier
2024-01-13 10:40   ` Samuel Tardieu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.