RK开机动画主要是在uboot中进行动画播放,因此要同时配置dts以及uboot的config,
以下以3288 7.1为参考,其他系统版本大同小异
a/include/configs/rk32plat.h
+++ b/include/configs/rk32plat.h
@@ -381,7 +381,7 @@
#define CONFIG_RK3399_EDP
#endif
-#undef CONFIG_UBOOT_CHARGE
+#define CONFIG_UBOOT_CHARGE
#else
@@ -399,7 +399,7 @@
#ifdef CONFIG_UBOOT_CHARGE
#define CONFIG_CMD_CHARGE_ANIM
-#define CONFIG_CHARGE_DEEP_SLEEP
+#undef CONFIG_CHARGE_DEEP_SLEEP
#ifdef CONFIG_CHARGE_DEEP_SLEEP
#define CONFIG_CHARGE_TIMER_WAKEUP
dts
+ uboot-charge {
+ compatible = "rockchip,uboot-charge";
+ rockchip,uboot-charge-on = <1>;
+ rockchip,android-charge-on = <1>;
+ rockchip,uboot-exit-charge-voltage = <3700>;
+ rockchip,uboot-charge-brightness = <0>;
+ };
RK开机动画主要是在uboot中进行动画播放,因此要同时配置dts以及uboot的config,
以下以3288 7.1为参考,其他系统版本大同小异
a/include/configs/rk32plat.h
+++ b/include/configs/rk32plat.h
@@ -381,7 +381,7 @@
#define CONFIG_RK3399_EDP
#endif
-#undef CONFIG_UBOOT_CHARGE
+#define CONFIG_UBOOT_CHARGE
#else
@@ -399,7 +399,7 @@
#ifdef CONFIG_UBOOT_CHARGE
#define CONFIG_CMD_CHARGE_ANIM
-#define CONFIG_CHARGE_DEEP_SLEEP
+#undef CONFIG_CHARGE_DEEP_SLEEP
#ifdef CONFIG_CHARGE_DEEP_SLEEP
#define CONFIG_CHARGE_TIMER_WAKEUP
dts
+ uboot-charge {
+ compatible = "rockchip,uboot-charge";
+ rockchip,uboot-charge-on = <1>;
+ rockchip,android-charge-on = <1>;
+ rockchip,uboot-exit-charge-voltage = <3700>;
+ rockchip,uboot-charge-brightness = <0>;
+ };
举报