The BQ274XX driver init function performs a lot i2c transfers that slow down booting the system. We can do this lazely on the first sample request to speed up the boot. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
21 lines
452 B
Plaintext
21 lines
452 B
Plaintext
# Copyright (c) 2020 Linumiz
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig BQ274XX
|
|
bool "BQ274xx Fuel Gauge"
|
|
depends on I2C
|
|
help
|
|
Enable I2C-based driver for BQ274xx Fuel Gauge.
|
|
|
|
if BQ274XX
|
|
|
|
config BQ274XX_LAZY_CONFIGURE
|
|
bool "Configure on first usage instead of init"
|
|
help
|
|
Configuring the sensor can take a long time, which
|
|
we can delay till the first sample request and keep
|
|
the boot time as short as possible.
|
|
|
|
endif # BQ274XX
|