1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-25 15:17:19 +00:00
hekate/bootloader/soc
CTCaer 5f142b4c86 main: Add empty battery screen
This disables low battery monitor shutdown (LBM shutdown) on boot and checks if battery is enough.

The logic is as follows:

If battery is not enough:
- If not charging and 15s pass, it will re enable LBM shutdown and power off.
- If charging, it will wait until it is charged above the limit.
 Screen will auto turn off to save power. A press on Power button or a change on charger, will enable it for another 15s.

If battery is enough:
- Enables LBM shutdown and continues with the boot process.
2020-04-06 05:54:45 +03:00
..
bpmp.c Update and add missing copyrights 2020-03-14 09:24:24 +02:00
bpmp.h Update and add missing copyrights 2020-03-14 09:24:24 +02:00
clock.c Update and add missing copyrights 2020-03-14 09:24:24 +02:00
clock.h Update and add missing copyrights 2020-03-14 09:24:24 +02:00
cluster.c Small refactor and bugfixes 2019-12-04 21:31:39 +02:00
cluster.h utils: Fix ms timer accuracy 2019-08-28 01:33:38 +03:00
fuse.c refactor: Remove all unwanted whitespace 2019-10-18 18:02:06 +03:00
fuse.h Small refactor and bugfixes 2019-12-04 21:31:39 +02:00
gpio.c
gpio.h
hw_init.c main: Add empty battery screen 2020-04-06 05:54:45 +03:00
hw_init.h
i2c.c Update and add missing copyrights 2020-03-14 09:24:24 +02:00
i2c.h Update and add missing copyrights 2020-03-14 09:24:24 +02:00
kfuse.c kfuse: Ensure that kfuse is ready 100% for tsec 2019-10-22 18:57:51 +03:00
kfuse.h kfuse: Ensure that kfuse is ready 100% for tsec 2019-10-22 18:57:51 +03:00
pinmux.c Fix debug uart 2018-12-08 12:38:59 +08:00
pinmux.h refactor: Remove all unwanted whitespace 2019-10-18 18:02:06 +03:00
pmc_lp0_t210.h
pmc.h Add more register names + refactoring 2019-09-09 16:56:37 +03:00
smmu.c Small refactor and bugfixes 2019-12-04 21:31:39 +02:00
smmu.h 6.2.0 support 2018-11-30 23:20:15 +02:00
t210.h Small refactor and bugfixes 2019-12-04 21:31:39 +02:00
uart.c uart: Add invert, get/set IIR and fifo empty functions 2019-12-16 22:16:40 +02:00
uart.h uart: Add invert, get/set IIR and fifo empty functions 2019-12-16 22:16:40 +02:00