说明
该补丁需要修改 cmd_charge.c 文件的代码, 该文件位置在 uboot 文件夹下,
修改源码
diff --git a/include/configs/rk30plat.h b/include/configs/rk30plat.h
index 3a25fc7..d768832 100755
--- a/include/configs/rk30plat.h
+++ b/include/configs/rk30plat.h
@@ -215,7 +215,8 @@
#define CONFIG_RK32_DSI
#endif /* CONFIG_RKCHIP_RK3126 */
-#undef CONFIG_UBOOT_CHARGE
+/* #undef CONFIG_UBOOT_CHARGE */
+#define CONFIG_UBOOT_CHARGE
#else
diff --git a/common/cmd_charge.c b/common/cmd_charge.c
index f9ce5bd..6fb7980 100755
--- a/common/cmd_charge.c
+++ b/common/cmd_charge.c
@@ -22,7 +22,7 @@
#include <resource.h>
#include <asm/arch/rkplat.h>
-/*#define DEBUG*/
+//#define DEBUG
#define LOGE(fmt, args...) printf(fmt "\n", ##args)
#ifdef DEBUG
#define LOGD(fmt, args...) printf(fmt "\n", ##args)
@@ -50,6 +50,7 @@
#define NOT_EXIT 0
#define EXIT_BOOT 1
#define EXIT_SHUTDOWN 2
+#define EXIT_WITHOUT_BAT 3
#define DEF_CHARGE_DESC_PATH "charge_anim_desc.txt"
#define DEFAULT_ANIM_DELAY 80000 //us
@@ -78,6 +79,11 @@ u8 g_increment = 0;
int timer_interrup