arch/tricore: initialize spinlock used by tricore systimer

Add explicit spin_lock_init in tricore_systimer_initialize() for the lock used by tricore systimer.

Signed-off-by: Haokun Dong <donghaokun@lixiang.com>
This commit is contained in:
donghaokun 2026-02-11 16:23:35 +08:00 committed by Alan C. Assis
parent 255618d838
commit cbe13affa1

View file

@ -303,6 +303,7 @@ tricore_systimer_initialize(volatile void *tbase, int irq, uint64_t freq)
struct tricore_systimer_lowerhalf_s *priv = &g_tricore_oneshot_lowerhalf;
priv->tbase = tbase;
spin_lock_init(&priv->lock);
ASSERT(freq <= UINT32_MAX);