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 6d6d416..e02ad7e 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,