zephyr/drivers/regulator/Kconfig.fake
Gerard Marull-Paretas 1080afa680 drivers: regulator: add fake driver
Add FFF-based fake regulator driver. This driver can be used as a stub
or mock in testing.

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
2022-12-20 10:15:29 +00:00

27 lines
679 B
Plaintext

# Copyright (c) 2022 Nordic Semiconductor ASA
# SPDX-License-Identifier: Apache-2.0
config REGULATOR_FAKE
bool "Fake regulator driver"
default y
depends on DT_HAS_ZEPHYR_FAKE_REGULATOR_ENABLED
help
Enable support for the FFF-based fake regulator driver.
if REGULATOR_FAKE
config REGULATOR_FAKE_COMMON_INIT_PRIORITY
int "Fake regulator driver init priority (common part)"
default 75
help
Init priority for the fake regulator driver (common part).
config REGULATOR_FAKE_INIT_PRIORITY
int "Fake regulator driver init priority"
default 76
help
Init priority for the fake regulator driver. It must be
greater than REGULATOR_FAKE_COMMON_INIT_PRIORITY.
endif