Pyra: print bq24297 current limit value
authorH. Nikolaus Schaller <hns@goldelico.com>
Thu, 7 Apr 2016 17:41:59 +0000 (19:41 +0200)
committernotaz <notasas@gmail.com>
Sun, 14 Aug 2016 13:43:32 +0000 (16:43 +0300)
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
board/pandora/pyra+lc15/pyra+lc15.c

index c6d708a..8e569b4 100644 (file)
@@ -196,6 +196,7 @@ int board_init(void)
                printf("bq24297: could not turn off 40 sec watchdog\n");
        /* set bq24297 current limit to 2 A if we operate from no battery and 100 mA if we have */
        ilim = bq2429x_battery_present() ? 100 : 2000;
+       printf("bq24297: set current limit to %u mA\n", ilim);
        bq2429x_set_iinlim(ilim);
 
 #if defined(CONFIG_TCA642X)