1 /* Copyright (C) 2023 BeagleBoard.org Foundation 2 * Copyright (C) 2023 S Prashanth 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <stdint.h> 8 #include <zephyr/fatal.h> 9 10 #include "soc.h" 11 z_soc_irq_get_active(void)12unsigned int z_soc_irq_get_active(void) 13 { 14 return z_vim_irq_get_active(); 15 } 16 z_soc_irq_eoi(unsigned int irq)17void z_soc_irq_eoi(unsigned int irq) 18 { 19 z_vim_irq_eoi(irq); 20 } 21 z_soc_irq_init(void)22void z_soc_irq_init(void) 23 { 24 z_vim_irq_init(); 25 } 26 z_soc_irq_priority_set(unsigned int irq,unsigned int prio,uint32_t flags)27void z_soc_irq_priority_set(unsigned int irq, unsigned int prio, uint32_t flags) 28 { 29 /* Configure interrupt type and priority */ 30 z_vim_irq_priority_set(irq, prio, flags); 31 } 32 z_soc_irq_enable(unsigned int irq)33void z_soc_irq_enable(unsigned int irq) 34 { 35 /* Enable interrupt */ 36 z_vim_irq_enable(irq); 37 } 38 z_soc_irq_disable(unsigned int irq)39void z_soc_irq_disable(unsigned int irq) 40 { 41 /* Disable interrupt */ 42 z_vim_irq_disable(irq); 43 } 44 z_soc_irq_is_enabled(unsigned int irq)45int z_soc_irq_is_enabled(unsigned int irq) 46 { 47 /* Check if interrupt is enabled */ 48 return z_vim_irq_is_enabled(irq); 49 } 50