drivers: interrupt-controller: vim: Fix wrong address

On startup the VIM interrupt controller driver had a sys_read32 call with a
bitmask instead of an address. This has been fixed.

Signed-off-by: Mika Braunschweig <mika.braunschweig@siemens.com>
This commit is contained in:
Mika Braunschweig 2025-03-31 16:41:22 +02:00 committed by Benjamin Cabé
commit 2b7db7f395

View file

@ -1,5 +1,6 @@
/* Copyright (C) 2023 BeagleBoard.org Foundation
* Copyright (C) 2023 S Prashanth
* Copyright (C) 2025 Siemens Mobility GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
@ -56,8 +57,7 @@ void z_vim_irq_eoi(unsigned int irq)
void z_vim_irq_init(void)
{
uint32_t num_of_irqs = sys_read32(VIM_INFO_INTERRUPTS_MASK);
uint32_t num_of_irqs = sys_read32(VIM_INFO) & VIM_INFO_INTERRUPTS_MASK;
LOG_DBG("VIM: Number of IRQs = %u\n", num_of_irqs);
}