zephyr/drivers/gpio/Kconfig.sx1509b
Michael Scott 7983606327 drivers: gpio: sx1509b: Kconfig options depend on GPIO_SX1509B
When CONFIG_GPIO_SX1509B was not set, the related Kconfig options
were still showing up in .config.  Let's make them depend on
GPIO_SX1509B so they can go away when not being used.

Signed-off-by: Michael Scott <mike@foundries.io>
2018-08-23 15:45:16 -07:00

46 lines
1,017 B
Plaintext

# Kconfig.sx1509b - SX1509B GPIO configuration options
#
#
# Copyright (c) 2018 Aapo Vienamo
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig GPIO_SX1509B
bool "SX1509B I2C GPIO chip"
depends on GPIO && I2C
help
Enable driver for SX1509B I2C GPIO chip.
config GPIO_SX1509B_INIT_PRIORITY
int "Init priority"
depends on GPIO_SX1509B
default 70
help
Device driver initialization priority.
if !HAS_DTS_I2C_DEVICE
config GPIO_SX1509B_DEV_NAME
string "SX1509B GPIO chip Device Name"
depends on GPIO_SX1509B
default "GPIO_P0"
help
Specify the device name for the SX1509B I2C GPIO chip.
config GPIO_SX1509B_I2C_ADDR
hex "SX1509B GPIO chip I2C slave address"
depends on GPIO_SX1509B
default 0x3e
help
Specify the I2C slave address for the SX1509B I2C GPIO chip.
config GPIO_SX1509B_I2C_MASTER_DEV_NAME
string "I2C Master to which SX1509B GPIO chip is connected"
depends on GPIO_SX1509B
help
Specify the device name of the I2C master device to which SX1509B
chip is binded.
endif