zephyr/drivers/ethernet/Kconfig.dw
Ulf Magnusson 8cf8db3a73 Kconfig: Use a short, consistent style for prompts
Consistently use

    config FOO
            bool/int/hex/string "Prompt text"

instead of

    config FOO
            bool/int/hex/string
            prompt "Prompt text"

(...and a bunch of other variations that e.g. swapped the order of the
type and the 'prompt', or put other properties between them).

The shorthand is fully equivalent to using 'prompt'. It saves lines and
avoids tricking people into thinking there is some semantic difference.

Most of the grunt work was done by a modified version of
https://unix.stackexchange.com/questions/26284/
how-can-i-use-sed-to-replace-a-multi-line-string/26290#26290, but some
of the rarer variations had to be converted manually.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2018-08-15 04:10:10 -07:00

65 lines
1.4 KiB
Plaintext

# Kconfig - Synopsys DesignWare Ethernet driver configuration options
#
# Copyright (c) 2016 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
#
menuconfig ETH_DW
bool "Synopsys DesignWare Ethernet driver"
depends on NET_L2_ETHERNET
help
Enable Synopsys DesignWare Ethernet driver.
if ETH_DW
config ETH_DW_SHARED_IRQ
bool
config ETH_DW_0
bool "Synopsys DesignWare Ethernet port 0"
help
Include port 0 driver
config ETH_DW_0_NAME
string "Driver name"
depends on ETH_DW_0
default "ETH_0"
choice
prompt "Port 0 Interrupts via"
default ETH_DW_0_IRQ_SHARED
depends on ETH_DW_0
config ETH_DW_0_IRQ_DIRECT
bool "Direct Hardware Interrupt"
help
When interrupts fire, the driver's ISR function is being called directly.
config ETH_DW_0_IRQ_SHARED
bool "Shared IRQ"
depends on SHARED_IRQ
select ETH_DW_SHARED_IRQ
help
When interrupts fire, the shared IRQ driver is notified. Then the shared IRQ
driver dispatches the interrupt to other drivers.
endchoice
config ETH_DW_0_IRQ_SHARED_NAME
string "Device name for Shared IRQ"
depends on ETH_DW_0 && ETH_DW_0_IRQ_SHARED
help
Specify the device name for the shared IRQ driver. It is used to register
this driver with the shared IRQ driver, so interrupts can be dispatched
correctly.
config ETH_DW_0_IRQ_PRI
int "Controller interrupt priority"
depends on ETH_DW_0 && ETH_DW_0_IRQ_DIRECT
default 0
help
IRQ priority
endif # ETH_DW