drivers/interrupt_controller/intc_ite_it8xxx2: global ite_intc_isr_clear()

We need to clear interrupt status, before we enable the interrupt.
So I let ite_intc_isr_clear() to be global function.

Signed-off-by: Ruibin Chang <ruibin.chang@ite.com.tw>
This commit is contained in:
Ruibin Chang 2021-04-09 17:51:09 +08:00 committed by Anas Nashif
commit 37de0c4987
2 changed files with 2 additions and 1 deletions

View file

@ -69,7 +69,7 @@ inline void set_csr(unsigned long bit)
}
}
static void ite_intc_isr_clear(unsigned int irq)
void ite_intc_isr_clear(unsigned int irq)
{
uint32_t g, i;
volatile uint8_t *isr;

View file

@ -77,6 +77,7 @@ extern uint8_t ite_intc_get_irq_num(void);
extern int ite_intc_irq_is_enable(unsigned int irq);
extern void ite_intc_irq_priority_set(unsigned int irq,
unsigned int prio, unsigned int flags);
extern void ite_intc_isr_clear(unsigned int irq);
#endif /* CONFIG_ITE_IT8XXX2_INTC */
#endif /* !_ASMLANGUAGE */