diff --git a/src/lib/Kconfig b/src/lib/Kconfig index 0c8fc454ff..d70374d758 100644 --- a/src/lib/Kconfig +++ b/src/lib/Kconfig @@ -270,6 +270,23 @@ config SPLASH_SCREEN_FOOTER_LOGO_PATH depends on SPLASH_SCREEN_FOOTER default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/logo.bmp" +config PLATFORM_HAS_OFF_MODE_CHARGING_INDICATOR + bool "Display off-mode charging indicator" + default n + depends on BMP_LOGO + help + Enable an off-mode charging splash screen to notify the user that + the device is charging. This prevents user confusion when a + device autoboots into a charging state upon the + insertion of a power cable, rather than performing a full OS boot. + + This feature requires a functional display and depends on the + BMP_LOGO infrastructure to render the charging assets. + +config PLATFORM_OFF_MODE_CHARGING_INDICATOR_LOGO_PATH + string "Path to off-mode charging logo file" + default "3rdparty/blobs/mainboard/\$(MAINBOARDDIR)/off_mode_charging.bmp" + endmenu config HAVE_EARLY_POWEROFF_SUPPORT diff --git a/src/lib/Makefile.mk b/src/lib/Makefile.mk index d7cf8455b1..0405cbeb5b 100644 --- a/src/lib/Makefile.mk +++ b/src/lib/Makefile.mk @@ -449,3 +449,5 @@ $(eval $(call add_bmp_logo_file_to_cbfs,CONFIG_PLATFORM_HAS_LOW_BATTERY_INDICATO low_battery.bmp,CONFIG_PLATFORM_LOW_BATTERY_INDICATOR_LOGO_PATH)) $(eval $(call add_bmp_logo_file_to_cbfs,CONFIG_SPLASH_SCREEN_FOOTER, \ footer_logo.bmp,CONFIG_SPLASH_SCREEN_FOOTER_LOGO_PATH)) +$(eval $(call add_bmp_logo_file_to_cbfs,CONFIG_PLATFORM_HAS_OFF_MODE_CHARGING_INDICATOR, \ + off_mode_charging.bmp,CONFIG_PLATFORM_OFF_MODE_CHARGING_INDICATOR_LOGO_PATH))