mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-15 16:12:28 -05:00
imx233: fix power irq storm
When bootloader is too intelligent, like on Creative devices, it might leave some unexpected IRQs sources on, this is problematic when those sources share the same IRQ line. Change-Id: Ie9333918eb1048b1f2de4ea738cddf556aa75ee2
This commit is contained in:
parent
898b760e59
commit
71c5a52add
1 changed files with 20 additions and 0 deletions
|
|
@ -120,6 +120,26 @@ void INT_VDD5V(void)
|
||||||
BF_CLR(POWER_CTRL, VDD5V_GT_VDDIO_IRQ);
|
BF_CLR(POWER_CTRL, VDD5V_GT_VDDIO_IRQ);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if IMX233_SUBTARGET >= 3700
|
||||||
|
/* this IRQ is shared by several sources, disable them */
|
||||||
|
if(BF_RD(POWER_CTRL, PSWITCH_IRQ))
|
||||||
|
{
|
||||||
|
BF_CLR(POWER_CTRL, ENIRQ_PSWITCH);
|
||||||
|
BF_CLR(POWER_CTRL, PSWITCH_IRQ);
|
||||||
|
}
|
||||||
|
#if IMX233_SUBTARGET < 3780
|
||||||
|
if(BF_RD(POWER_CTRL, LINREG_OK_IRQ))
|
||||||
|
{
|
||||||
|
BF_CLR(POWER_CTRL, ENIRQ_LINREG_OK);
|
||||||
|
BF_CLR(POWER_CTRL, LINREG_OK_IRQ);
|
||||||
|
}
|
||||||
|
#endif /* IMX233_SUBTARGET < 3780 */
|
||||||
|
if(BF_RD(POWER_CTRL, DC_OK_IRQ))
|
||||||
|
{
|
||||||
|
BF_CLR(POWER_CTRL, ENIRQ_DC_OK);
|
||||||
|
BF_CLR(POWER_CTRL, DC_OK_IRQ);
|
||||||
|
}
|
||||||
|
#endif /* IMX233_SUBTARGET >= 3700 */
|
||||||
}
|
}
|
||||||
|
|
||||||
void imx233_power_init(void)
|
void imx233_power_init(void)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue