]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
mxs: spl: print the actual battery brownout level rather than the constant string...
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 30 Jun 2016 09:44:30 +0000 (11:44 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 30 Jun 2016 09:44:30 +0000 (11:44 +0200)
arch/arm/cpu/arm926ejs/mxs/spl_power_init.c

index 6d6d416bcf00a07a2d2caae5823ba9dbc2d58ff4..e02ad7e8859a2a2f9c2d60657c2836484ff2dcc0 100644 (file)
@@ -893,7 +893,9 @@ static void mxs_fixed_batt_boot(void)
  */
 static void mxs_init_batt_bo(void)
 {
-       debug("SPL: Initialising battery brown-out level to 3.0V\n");
+       debug("SPL: Initialising battery brown-out level to %u.%uV\n",
+               (BATT_BO_VAL * 40 + 2400) / 1000,
+               (BATT_BO_VAL * 40 + 2400) / 100 % 10);
 
        /* Brownout at 3V */
        clrsetbits_le32(&power_regs->hw_power_battmonitor,