zephyr/drivers/fuel_gauge/sbs_gauge/Kconfig.emul_sbs_gauge
Aaron Massey 07ee466591 emul: Migrate all emulation use to use DT_HAS_
Remove all enabling of CONFIG_EMUL_.* in favor of automatically enabling
peripheral emulators based on the compatible string presence in the device
tree and the one true CONFIG_EMUL.

Zephyr has long since moved to a model of enabling drivers based on the
presence of their associated IC's compatible string in the final devicetree
overlay. There is no reason that emulators can't align in just the same
way, and probably ought to to remove superfluous enabling of configs.

Signed-off-by: Aaron Massey <aaronmassey@google.com>
2023-04-28 08:37:33 -05:00

15 lines
482 B
Plaintext

# Copyright 2023 Google LLC
# SPDX-License-Identifier: Apache-2.0
# Keep this Kconfig separate from the fuel_gauge/sbs_gauge Kconfig so it may be shared with the
# sensor/sbs_gauge Kconfig.
config EMUL_SBS_GAUGE
bool "Emulate an SBS 1.1 compliant smart battery fuel gauge"
default y
depends on EMUL
depends on SBS_GAUGE_NEW_API || SBS_GAUGE
help
It provides readings which follow a simple sequence, thus allowing
test code to check that things are working as expected.