summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoy Cho <joy.cho@hardkernel.com>2020-09-24 06:57:36 +0300
committerJoy Cho <joy.cho@hardkernel.com>2020-12-02 10:27:47 +0300
commit1e16cd26c48304649150a8a3ee1a83e9265dcc29 (patch)
tree6d62505eebf279fbeae1a5d74ef0467a3941ee28
parentd1de35c0027f4313701dd3416c19c2b6a485c0f7 (diff)
downloadu-boot-1e16cd26c48304649150a8a3ee1a83e9265dcc29.tar.xz
ODROID-GO3: board: Fix power check logic
Change-Id: I767d6b2faac8eb68af1300c5f913ee18c532be3c
-rw-r--r--board/rockchip/odroidgo3/odroidgo3_power.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/board/rockchip/odroidgo3/odroidgo3_power.c b/board/rockchip/odroidgo3/odroidgo3_power.c
index 428774794c..813f8859e1 100644
--- a/board/rockchip/odroidgo3/odroidgo3_power.c
+++ b/board/rockchip/odroidgo3/odroidgo3_power.c
@@ -8,6 +8,7 @@
#include <dm.h>
#include <asm/gpio.h>
#include <power/fuel_gauge.h>
+#include "odroidgo3_status.h"
#define MIN_VOL_LEVEL 3500 /* 3.5V */
@@ -81,8 +82,8 @@ int board_check_power(void)
debug("low battery (%d) without dc jack connected\n", battery);
sprintf(str, "voltage level : %d.%dV", (battery / 1000), (battery % 1000));
- printf("%s - Low Battery!\n", __func__);
- /* odroid_wait_pwrkey(); */
+ odroid_display_status(LOGO_MODE_LOW_BATT, LOGO_STORAGE_ANYWHERE, str);
+ odroid_wait_pwrkey();
return -1;
}