957e263120
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>
22 lines
487 B
Plaintext
22 lines
487 B
Plaintext
# Copyright (c) 2021 Abel Sensors
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig GPIO_FXL6408
|
|
bool "FXL6408 I2C-based GPIO chip"
|
|
default y
|
|
depends on DT_HAS_FCS_FXL6408_ENABLED
|
|
depends on I2C
|
|
help
|
|
Enable driver for FXL6408 I2C-based GPIO chip.
|
|
|
|
config GPIO_FXL6408_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 80
|
|
depends on GPIO_FXL6408
|
|
help
|
|
Device driver initialization priority.
|
|
|
|
module = FXL6408
|
|
module-str = fxl6408
|
|
source "subsys/logging/Kconfig.template.log_config"
|