drivers: ethernet: enc28j60: Enable specific options only when selected
Enable enc28j60-specific options only when selecting ETH_ENC28J60. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
This commit is contained in:
parent
cbaa136e26
commit
8a2f5c97f0
|
@ -12,6 +12,8 @@ menuconfig ETH_ENC28J60
|
||||||
ENC28J60C Stand-Alone Ethernet Controller
|
ENC28J60C Stand-Alone Ethernet Controller
|
||||||
with SPI Interface
|
with SPI Interface
|
||||||
|
|
||||||
|
if ETH_ENC28J60
|
||||||
|
|
||||||
config ETH_ENC28J60_RX_THREAD_STACK_SIZE
|
config ETH_ENC28J60_RX_THREAD_STACK_SIZE
|
||||||
int "Stack size for internal incoming packet handler"
|
int "Stack size for internal incoming packet handler"
|
||||||
depends on ETH_ENC28J60
|
depends on ETH_ENC28J60
|
||||||
|
@ -43,7 +45,7 @@ config ETH_ENC28J60_0
|
||||||
help
|
help
|
||||||
Include port 0 driver
|
Include port 0 driver
|
||||||
|
|
||||||
if ETH_ENC28J60 && ETH_ENC28J60_0
|
if ETH_ENC28J60_0
|
||||||
config ETH_ENC28J60_0_FULL_DUPLEX
|
config ETH_ENC28J60_0_FULL_DUPLEX
|
||||||
bool "ENC28J60 full duplex"
|
bool "ENC28J60 full duplex"
|
||||||
default y
|
default y
|
||||||
|
@ -51,4 +53,5 @@ config ETH_ENC28J60_0_FULL_DUPLEX
|
||||||
Enable Full Duplex. Device is configured half duplex
|
Enable Full Duplex. Device is configured half duplex
|
||||||
when disabled.
|
when disabled.
|
||||||
|
|
||||||
endif # ETH_ENC28J60 && ETH_ENC28J60_0
|
endif # ETH_ENC28J60_0
|
||||||
|
endif # ETH_ENC28J60
|
||||||
|
|
Loading…
Reference in a new issue