Add regulator compatibility string to Kconfig.fixed file and allow fixed regulator driver to be enabled when compatible node is defined. However, remove this option from common Kconfig as it is legitimate to enable/disable regulator support. Change menuconfig REGULATOR_FIXED to config since this menu nesting is not necessary. Signed-off-by: Johann Fischer <johann.fischer@nordicsemi.no>
18 lines
374 B
Plaintext
18 lines
374 B
Plaintext
# Copyright 2020 Peter Bigot Consulting, LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig REGULATOR
|
|
bool "Regulator drivers"
|
|
help
|
|
Include drivers for current/voltage regulators in system config
|
|
|
|
if REGULATOR
|
|
|
|
module = REGULATOR
|
|
module-str = regulator
|
|
source "subsys/logging/Kconfig.template.log_config"
|
|
|
|
source "drivers/regulator/Kconfig.fixed"
|
|
|
|
endif # REGULATOR
|