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:
parent
cb8b1cdc74
commit
2b7db7f395
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
||||||
/* Copyright (C) 2023 BeagleBoard.org Foundation
|
/* Copyright (C) 2023 BeagleBoard.org Foundation
|
||||||
* Copyright (C) 2023 S Prashanth
|
* Copyright (C) 2023 S Prashanth
|
||||||
|
* Copyright (C) 2025 Siemens Mobility GmbH
|
||||||
*
|
*
|
||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
@ -56,8 +57,7 @@ void z_vim_irq_eoi(unsigned int irq)
|
||||||
|
|
||||||
void z_vim_irq_init(void)
|
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);
|
LOG_DBG("VIM: Number of IRQs = %u\n", num_of_irqs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue