问题目前RK3576在配置uboot阶段关机充电遇到了背光没有被关闭解决办法是在显示图片后拉低背光的使能gpiou-boot/drivers/power$ git diff . diff --git a/drivers/power/charge_animation.c b/drivers/power/charge_animation.c index 89c5db231f..1ac5e9e300 100644 --- a/drivers/power/charge_animation.c b/drivers/power/charge_animation.c -43,6 43,8 DECLARE_GLOBAL_DATA_PTR; #define LED_CHARGING_NAME battery_charging #define LED_CHARGING_FULL_NAME battery_full static bool backlight_off_done false; struct charge_image { const char *name; int soc; -905,6 907,14 show_images: old_show_idx show_idx; debug(SHOW: %s\n, image[show_idx].name); charge_show_bmp(image[show_idx].name); if (!backlight_off_done) { printf(**** lcw: Turn off backlight now!\n); gpio_request(14, GPIO14); gpio_direction_output(14, 0); gpio_free(14); backlight_off_done true; } } /* Re-calculate timeout to off screen */ if (priv-auto_screen_off_timeout 0)
#RK3576Linux如何在uboot阶段关闭屏幕背光
问题目前RK3576在配置uboot阶段关机充电遇到了背光没有被关闭解决办法是在显示图片后拉低背光的使能gpiou-boot/drivers/power$ git diff . diff --git a/drivers/power/charge_animation.c b/drivers/power/charge_animation.c index 89c5db231f..1ac5e9e300 100644 --- a/drivers/power/charge_animation.c b/drivers/power/charge_animation.c -43,6 43,8 DECLARE_GLOBAL_DATA_PTR; #define LED_CHARGING_NAME battery_charging #define LED_CHARGING_FULL_NAME battery_full static bool backlight_off_done false; struct charge_image { const char *name; int soc; -905,6 907,14 show_images: old_show_idx show_idx; debug(SHOW: %s\n, image[show_idx].name); charge_show_bmp(image[show_idx].name); if (!backlight_off_done) { printf(**** lcw: Turn off backlight now!\n); gpio_request(14, GPIO14); gpio_direction_output(14, 0); gpio_free(14); backlight_off_done true; } } /* Re-calculate timeout to off screen */ if (priv-auto_screen_off_timeout 0)