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>
23 lines
459 B
Plaintext
23 lines
459 B
Plaintext
# MCP23S17 GPIO configuration options
|
|
|
|
# Copyright (c) 2020 Geanix ApS
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
menuconfig GPIO_MCP23S17
|
|
bool "MCP23S17 SPI-based GPIO chip"
|
|
default y
|
|
depends on DT_HAS_MICROCHIP_MCP23S17_ENABLED
|
|
depends on SPI
|
|
help
|
|
Enable driver for MCP23S17 SPI-based GPIO chip.
|
|
|
|
if GPIO_MCP23S17
|
|
|
|
config GPIO_MCP23S17_INIT_PRIORITY
|
|
int "Init priority"
|
|
default 75
|
|
help
|
|
Device driver initialization priority.
|
|
|
|
endif #GPIO_MCP23S17
|