zephyr/drivers/regulator/Kconfig.fixed
Johann Fischer b142a47f73 drivers: regulator: enable driver when compatible node is defined
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>
2021-04-16 09:45:35 +02:00

22 lines
485 B
Plaintext

# Copyright 2020 Peter Bigot Consulting, LLC
# SPDX-License-Identifier: Apache-2.0
DT_COMPAT_REGULATOR_FIXED := regulator-fixed
config REGULATOR_FIXED
bool "GPIO-controlled regulators"
default $(dt_compat_enabled,$(DT_COMPAT_REGULATOR_FIXED))
depends on GPIO
help
Enable the driver for GPIO-controlled regulators
if REGULATOR_FIXED
config REGULATOR_FIXED_INIT_PRIORITY
int "Init priority"
default 75
help
Device driver initialization priority
endif # REGULATOR_FIXED