power/battery: fake gauge support for rpmsg communication

realize a fake gauge to support powermanger

Signed-off-by: yezhonghui <yezhonghui@xiaomi.com>
This commit is contained in:
yezhonghui
2024-12-23 15:23:38 +08:00
committed by Alan C. Assis
parent dba108ae5c
commit db7f292709
7 changed files with 384 additions and 0 deletions
+4
View File
@@ -92,4 +92,8 @@ if(CONFIG_GOLDFISH_BATTERY)
list(APPEND SRCS goldfish_battery.c)
endif()
if(CONFIG_BATTERY_FAKE_GAUGE)
list(APPEND SRCS battery_fakegauge.c)
endif()
target_sources(drivers PRIVATE ${SRCS})