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:
Amaury Pouly 2013-09-29 21:01:59 +02:00
parent 898b760e59
commit 71c5a52add

View file

@ -120,6 +120,26 @@ void INT_VDD5V(void)
BF_CLR(POWER_CTRL, VDD5V_GT_VDDIO_IRQ);
}
#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)