The AXP2101 chip is a multi functional power chip offering a regulator, charge controller and a fuel gauge (battery percentage and voltage). Hereby, the fuel gauge provides much more reliable data compared to using an ADC. We implement minimal support for this chip (connected state, voltage and gauge) and bind it to the fuel gauge subsystem. Closes: #89158 Signed-off-by: Felix Moessbauer <felix.moessbauer@gmail.com>
28 lines
680 B
Text
28 lines
680 B
Text
# Copyright 2022 Google LLC
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig FUEL_GAUGE
|
|
bool "Battery fuel gauge drivers"
|
|
help
|
|
Enable battery fuel gauge driver configuration.
|
|
|
|
if FUEL_GAUGE
|
|
|
|
module = FUEL_GAUGE
|
|
module-str = fuel_gauge
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
config FUEL_GAUGE_INIT_PRIORITY
|
|
int "Battery Fuel Gauge init priority"
|
|
default 90
|
|
help
|
|
Battery fuel gauge initialization priority.
|
|
|
|
source "drivers/fuel_gauge/max17048/Kconfig"
|
|
source "drivers/fuel_gauge/sbs_gauge/Kconfig"
|
|
source "drivers/fuel_gauge/bq27z746/Kconfig"
|
|
source "drivers/fuel_gauge/composite/Kconfig"
|
|
source "drivers/fuel_gauge/axp2101/Kconfig"
|
|
|
|
endif # FUEL_GAUGE
|