zephyr/samples/drivers/espi/Kconfig
Ulf Magnusson 87e917a925 kconfig: Remove redundant 'default n' and 'prompt' properties
Bool symbols implicitly default to 'n'.

A 'default n' can make sense e.g. in a Kconfig.defconfig file, if you
want to override a 'default y' on the base definition of the symbol. It
isn't used like that on any of these symbols though.

Also replace some

    config
    	prompt "foo"
    	bool/int

with the more common shorthand

    config
    	bool/int "foo"

See the 'Style recommendations and shorthands' section in
https://docs.zephyrproject.org/latest/guides/kconfig/index.html.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-12-09 16:14:50 +01:00

52 lines
1 KiB
Plaintext

# Private config options for eSPI sample app
# Copyright (c) 2019 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
mainmenu "Enhanced Serial Peripheral Interface application"
config ESPI_DEV
string "Name of the eSPI device"
default "ESPI_0"
help
Name of the eSPI device used for send an receive.
config ESPI_VIRTUAL_WIRE_TIMEOUT
int "Timeout for virtual wires"
default 5000
help
Timeout for virtual wires
config ESPI_GPIO_DEV_NEEDED
bool "GPIO required for minimum eSPI handshake"
if ESPI_GPIO_DEV_NEEDED
config ESPI_GPIO_DEV0
string "Name of the GPIO port 0"
default "GPIO_0"
help
Name of the port used in minimal handshake
config ESPI_GPIO_DEV1
string "Name of the GPIO port 1"
default "GPIO_1"
help
Name of the port used in minimal handshake
config ESPI_INIT_PIN
int "eSPI master enable pin"
default 0
help
Pin number of eSPI master init pin
config PWRGD_PIN
int "Indication espi master power is up"
default 0
help
Pin number of eSPI master power indication
endif # ESPI_GPIO_DEV_NEEDED
source "Kconfig.zephyr"