zephyr/drivers/gpio/Kconfig.emul
Kumar Gala 957e263120 drivers: gpio: Update drivers to use devicetree Kconfig symbol
Update gpio drivers to use DT_HAS_<compat>_ENABLED Kconfig symbol
to expose the driver and enable it by default based on devicetree.

We remove 'depend on' Kconfig for symbols that would be implied by
the devicetree node existing.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-07-23 09:26:09 -05:00

20 lines
773 B
Plaintext

# Emulated GPIO configuration options
# Copyright (c) 2020 Friedt Professional Engineering Services, Inc
# SPDX-License-Identifier: Apache-2.0
config GPIO_EMUL
bool "Emulated GPIO driver"
default y
depends on DT_HAS_ZEPHYR_GPIO_EMUL_ENABLED
help
Enable the emulated GPIO driver. Mainly used for testing, this
driver allows for an arbitrary number of emulated GPIO controllers
to be instantiated. Furthermore, the emulated pins can be "wired"
using the regular GPIO callback API and the additional API
available in drivers/gpio/gpio_emul.h . Configuration for each
GPIO instance is accomplished using device tree and an example of
such a configuration is in
tests/drivers/gpio/gpio_basic_api/boards/native_posix_64.overlay
If unsure, say N.