]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mxs: Clarify why we poweroff in case of brownout in 5v conflict
authorOtavio Salvador <otavio@ossystems.com.br>
Sun, 5 Aug 2012 09:05:33 +0000 (09:05 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 1 Sep 2012 12:58:17 +0000 (14:58 +0200)
If VDDIO has a brownout, then the VDD5V_GT_VDDIO becomes unreliable
but this wasn't clear on code so a comment has been added to clarify
it.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c

index c341960f385598eb2d320c91f5fadc46422d596f..6dd3bfc9bc9dce7f59639820387a44bf7a8f458e 100644 (file)
@@ -577,6 +577,10 @@ void mxs_handle_5v_conflict(void)
                tmp = readl(&power_regs->hw_power_sts);
 
                if (tmp & POWER_STS_VDDIO_BO) {
                tmp = readl(&power_regs->hw_power_sts);
 
                if (tmp & POWER_STS_VDDIO_BO) {
+                       /*
+                        * VDDIO has a brownout, then the VDD5V_GT_VDDIO becomes
+                        * unreliable
+                        */
                        mxs_powerdown();
                        break;
                }
                        mxs_powerdown();
                        break;
                }