mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 13:12:37 -05:00
imx233: move icoll stuff to its own file
The icoll code now has an IRQ storm detection mechanism which will prevent the device from hard freezing in case it happen. Change-Id: I9861238dce61d29af1e48f9c534ec63a7f23465c
This commit is contained in:
parent
553aeae9c6
commit
9ced006c06
13 changed files with 272 additions and 174 deletions
|
|
@ -58,13 +58,13 @@ void imx233_setup_timer(unsigned timer_nr, bool reload, unsigned count,
|
|||
if(fn != NULL)
|
||||
{
|
||||
/* enable interrupt */
|
||||
imx233_enable_interrupt(INT_SRC_TIMER(timer_nr), true);
|
||||
imx233_icoll_enable_interrupt(INT_SRC_TIMER(timer_nr), true);
|
||||
/* clear irq bit and enable */
|
||||
__REG_CLR(HW_TIMROT_TIMCTRL(timer_nr)) = HW_TIMROT_TIMCTRL__IRQ;
|
||||
__REG_SET(HW_TIMROT_TIMCTRL(timer_nr)) = HW_TIMROT_TIMCTRL__IRQ_EN;
|
||||
}
|
||||
else
|
||||
imx233_enable_interrupt(INT_SRC_TIMER(timer_nr), false);
|
||||
imx233_icoll_enable_interrupt(INT_SRC_TIMER(timer_nr), false);
|
||||
/* finally update */
|
||||
__REG_SET(HW_TIMROT_TIMCTRL(timer_nr)) = HW_TIMROT_TIMCTRL__UPDATE;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue