This patch refactors low-battery user notification logic (Kconfig, APIs to check if low-battery rendering is required, low-battery shutdown is required) outside FSP driver code to ensure in future non-FSP platforms might still be able to leverage this feature/logics to render the low-battery indicator icon during boot. Specifically, it: - Moves Kconfig options related to low-battery notifications from drivers/intel/fsp to lib/ - Relocates the low-battery check and shutdown APIs drivers/intel/fsp to bootsplash.h * Adjusts the vendor driver to utilize the new APIs for low-battery rendering decisions. * Drop the unwanted header file "fsp/api.h" from bmp_logo.c This change avoids tight coupling of low-battery functionality to FSP, promoting code reusability across platforms. BUG=b:400738815 TEST=Able to build and boot google/brox. Change-Id: Iaa730dac2bb4866183408b6390221f0bb8411a48 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/86756 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kapil Porwal <kapilporwal@google.com> |
||
|---|---|---|
| .. | ||
| acpi/thermal_zone | ||
| amd | ||
| ams | ||
| analogix/anx7625 | ||
| asmedia | ||
| aspeed | ||
| broadcom | ||
| camera | ||
| crb | ||
| efi | ||
| elog | ||
| emulation/qemu | ||
| generic | ||
| genesyslogic | ||
| gfx/generic | ||
| i2c | ||
| intel | ||
| ipmi | ||
| lenovo | ||
| maxim | ||
| mipi | ||
| mrc_cache | ||
| net | ||
| nxp/uwb | ||
| ocp | ||
| option | ||
| parade | ||
| pc80 | ||
| pcie | ||
| ricoh/rce822 | ||
| secunet/dmi | ||
| siemens/nc_fpga | ||
| sil/3114 | ||
| smbus | ||
| smmstore | ||
| sof | ||
| soundwire | ||
| spi | ||
| ti | ||
| tpm | ||
| uart | ||
| usb | ||
| vpd | ||
| wifi/generic | ||
| wwan/fm | ||