]> git.ipfire.org Git - thirdparty/u-boot.git/commit
arm: stm32mp2: add multifunction timer support for stm32mp25
authorCheick Traore <cheick.traore@foss.st.com>
Fri, 20 Jun 2025 15:49:58 +0000 (17:49 +0200)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 29 Jul 2025 14:44:58 +0000 (16:44 +0200)
commit8e1fafb807dcc4304fc703a00bde034a2c1bbdbf
tree85dd41bee3ecf8e2eaeeeb8779f08cb16629d91a
parent182cb30084516c3085d2ca5dde3f105f7625d774
arm: stm32mp2: add multifunction timer support for stm32mp25

Add support for STM32MP25 SoC.
Identification and hardware configuration registers allow to read the
timer version and capabilities (counter width, ...).
So, rework the probe to avoid touching ARR register by simply read the
counter width when available. This may avoid messing with a possibly
running timer.
Also add useful bit fields to stm32-timers header file.

Signed-off-by: Cheick Traore <cheick.traore@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
arch/arm/mach-stm32mp/include/mach/timers.h
arch/arm/mach-stm32mp/timers.c