[PATCH v2 0/9] sparc: Simplify clock drivers and CPU counter

Sebastian Huber sebastian.huber at embedded-brains.de
Thu Sep 21 15:19:25 UTC 2023


This patch set simplifies the clock drivers and CPU counter
implementations of the sparc BSPs.  For the GR712RC the Debug Support
Unit (DSU) is used as a performance optimization.

v2:

Improve code clarity.

Sebastian Huber (9):
  bsps/leon3: Optional IRQ(A)MP timestamp support
  sparc: Move CPU counter implementation
  bsps/leon3: Make GPTIMER fall back mandatory
  bsps/leon3: Simplify clock and CPU counter
  bsps/leon3: Use custom CPU counter implementation
  bsps/leon3: Move code blocks
  bsps/leon3: Statically initialize get timecount
  bsps/leon3: leon3_counter_use_irqamp_timestamp()
  bsps/leon3: Use DSU time tag for GR712RC

 bsps/include/bsp/fatal.h                      |   1 -
 bsps/sparc/erc32/clock/ckinit.c               |   8 +-
 .../sparc/include/bsp/sparc-counter.h         |  74 +++---
 bsps/sparc/leon2/clock/ckinit.c               |   8 +-
 bsps/sparc/leon3/clock/ckinit.c               | 163 ++----------
 bsps/sparc/leon3/include/bsp/leon3.h          |  37 ++-
 bsps/sparc/leon3/start/cpucounter.c           | 241 ++++++++++++++----
 .../sparc/shared/start}/sparc-counter-asm.S   |  54 ++--
 cpukit/score/cpu/sparc/cpu_asm.S              |   6 +-
 .../score/cpu/sparc/include/rtems/score/cpu.h |  26 +-
 .../cpu/sparc/include/rtems/score/cpuimpl.h   |   7 +
 spec/build/bsps/sparc/erc32/bsperc32.yml      |   2 +
 spec/build/bsps/sparc/leon2/obj.yml           |   2 +
 spec/build/bsps/sparc/leon3/grp.yml           |   2 +
 spec/build/bsps/sparc/leon3/optdsubase.yml    |  24 ++
 spec/build/cpukit/cpusparc.yml                |   2 -
 16 files changed, 347 insertions(+), 310 deletions(-)
 rename cpukit/score/cpu/sparc/include/rtems/score/sparcimpl.h => bsps/sparc/include/bsp/sparc-counter.h (54%)
 rename {cpukit/score/cpu/sparc => bsps/sparc/shared/start}/sparc-counter-asm.S (83%)
 create mode 100644 spec/build/bsps/sparc/leon3/optdsubase.yml

-- 
2.35.3



More information about the devel mailing list