]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
mxs: prevent lockup in endless loops waiting for HW bits to clear
authorLothar Waßmann <LW@KARO-electronics.de>
Mon, 15 Jul 2013 09:24:37 +0000 (11:24 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Mon, 15 Jul 2013 09:24:37 +0000 (11:24 +0200)
commit0f70411b7c8ef5112959acc1cb1e05f287e0abae
treee9c6b79a8068657c0d3454abd8774b992ba550d1
parent395e0a77c45b665077b36890773dfc0371bf7655
mxs: prevent lockup in endless loops waiting for HW bits to clear

The RTC unit of the i.MX28 can lockup when e.g. the
RTC_PERSISTENT0_CLOCKSOURCE bit is asserted but the XTAL32KHZ_PWRUP is
deasserted. In this case the original code would just lockup waiting
indefinitely for the STALE_REGS or NEW_REGS masks to clear.

The lockup can only be resolved by a real power-on-reset. Advising the
user to do a manual reset is the only thing we can do at this point.
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c