mirror of
https://github.com/apache/nuttx.git
synced 2026-05-30 05:16:47 +08:00
Refine Kconfig under drivers folder
1.Move subsystem config into sub folder 2.Remove the duplicated if/endif Change-Id: I0b96ac0570ee1ba62bbb95586381f5410b90bcf0 Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alan Carvalho de Assis
parent
afd03f5a7e
commit
ac2aec96e0
@@ -3,13 +3,9 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if 1WIRE
|
|
||||||
|
|
||||||
config 1WIRE_DS28E17
|
config 1WIRE_DS28E17
|
||||||
bool "DS28E17 1-wire to I2C converter"
|
bool "DS28E17 1-wire to I2C converter"
|
||||||
default n
|
default n
|
||||||
depends on I2C
|
depends on I2C
|
||||||
---help---
|
---help---
|
||||||
Enable support for the Maxim DS28E17 1-wire to I2C converter
|
Enable support for the Maxim DS28E17 1-wire to I2C converter
|
||||||
|
|
||||||
endif # 1WIRE
|
|
||||||
|
|||||||
+9
-45
@@ -15,9 +15,6 @@ config DEV_ZERO
|
|||||||
bool "Enable /dev/zero"
|
bool "Enable /dev/zero"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
source drivers/crypto/Kconfig
|
|
||||||
source drivers/loop/Kconfig
|
|
||||||
|
|
||||||
config DRVR_MKRD
|
config DRVR_MKRD
|
||||||
bool "RAM disk wrapper (mkrd)"
|
bool "RAM disk wrapper (mkrd)"
|
||||||
default n
|
default n
|
||||||
@@ -77,6 +74,9 @@ endif # DRVR_WRITEBUFFER || DRVR_READAHEAD
|
|||||||
|
|
||||||
endmenu # Buffering
|
endmenu # Buffering
|
||||||
|
|
||||||
|
source drivers/crypto/Kconfig
|
||||||
|
source drivers/loop/Kconfig
|
||||||
|
|
||||||
menuconfig CAN
|
menuconfig CAN
|
||||||
bool "CAN Driver Support"
|
bool "CAN Driver Support"
|
||||||
default n
|
default n
|
||||||
@@ -88,18 +88,6 @@ if CAN
|
|||||||
source drivers/can/Kconfig
|
source drivers/can/Kconfig
|
||||||
endif
|
endif
|
||||||
|
|
||||||
config ARCH_HAVE_PWM_PULSECOUNT
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_PWM_MULTICHAN
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_I2CRESET
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
menuconfig I2C
|
menuconfig I2C
|
||||||
bool "I2C Driver Support"
|
bool "I2C Driver Support"
|
||||||
default n
|
default n
|
||||||
@@ -155,20 +143,6 @@ if DRIVERS_AUDIO
|
|||||||
source drivers/audio/Kconfig
|
source drivers/audio/Kconfig
|
||||||
endif # DRIVERS_AUDIO
|
endif # DRIVERS_AUDIO
|
||||||
|
|
||||||
config FB_CMAP
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Set by driver-specific configuration to indicate support for color
|
|
||||||
mapping. Not directly user selectable.
|
|
||||||
|
|
||||||
config FB_TRANSPARENCY
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
---help---
|
|
||||||
Set by driver-specific configuration to indicate support for color
|
|
||||||
transparency. Not directly user selectable.
|
|
||||||
|
|
||||||
menuconfig DRIVERS_VIDEO
|
menuconfig DRIVERS_VIDEO
|
||||||
bool "Video Device Support"
|
bool "Video Device Support"
|
||||||
default n
|
default n
|
||||||
@@ -210,22 +184,6 @@ source drivers/leds/Kconfig
|
|||||||
|
|
||||||
# MMC/SD-related platform capabilities
|
# MMC/SD-related platform capabilities
|
||||||
|
|
||||||
config ARCH_HAVE_SDIO
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_SDIOWAIT_WRCOMPLETE
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_SDIO_PREFLIGHT
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_SDIO_DELAYED_INVLDT
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
menuconfig MMCSD
|
menuconfig MMCSD
|
||||||
bool "MMC/SD Driver Support"
|
bool "MMC/SD Driver Support"
|
||||||
default n
|
default n
|
||||||
@@ -395,7 +353,9 @@ menuconfig DRIVERS_WIRELESS
|
|||||||
---help---
|
---help---
|
||||||
Drivers for various wireless devices.
|
Drivers for various wireless devices.
|
||||||
|
|
||||||
|
if DRIVERS_WIRELESS
|
||||||
source drivers/wireless/Kconfig
|
source drivers/wireless/Kconfig
|
||||||
|
endif # DRIVERS_WIRELESS
|
||||||
|
|
||||||
menuconfig DRIVERS_CONTACTLESS
|
menuconfig DRIVERS_CONTACTLESS
|
||||||
bool "Contactless Device Support"
|
bool "Contactless Device Support"
|
||||||
@@ -403,7 +363,9 @@ menuconfig DRIVERS_CONTACTLESS
|
|||||||
---help---
|
---help---
|
||||||
Drivers for various contactless devices.
|
Drivers for various contactless devices.
|
||||||
|
|
||||||
|
if DRIVERS_CONTACTLESS
|
||||||
source drivers/contactless/Kconfig
|
source drivers/contactless/Kconfig
|
||||||
|
endif # DRIVERS_CONTACTLESS
|
||||||
|
|
||||||
menuconfig 1WIRE
|
menuconfig 1WIRE
|
||||||
bool "1wire Device Support"
|
bool "1wire Device Support"
|
||||||
@@ -411,7 +373,9 @@ menuconfig 1WIRE
|
|||||||
---help---
|
---help---
|
||||||
Drivers for various 1wire devices.
|
Drivers for various 1wire devices.
|
||||||
|
|
||||||
|
if 1WIRE
|
||||||
source drivers/1wire/Kconfig
|
source drivers/1wire/Kconfig
|
||||||
|
endif # 1WIRE
|
||||||
|
|
||||||
source drivers/syslog/Kconfig
|
source drivers/syslog/Kconfig
|
||||||
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if CAN
|
|
||||||
|
|
||||||
config CAN_EXTID
|
config CAN_EXTID
|
||||||
bool "CAN extended IDs"
|
bool "CAN extended IDs"
|
||||||
default n
|
default n
|
||||||
@@ -179,4 +177,3 @@ config MCP2515_SPI_SCK_FREQUENCY
|
|||||||
range 100000 10000000
|
range 100000 10000000
|
||||||
|
|
||||||
endif # CAN_MCP2515
|
endif # CAN_MCP2515
|
||||||
endif # CAN
|
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if DRIVERS_CONTACTLESS
|
|
||||||
|
|
||||||
config CL_MFRC522
|
config CL_MFRC522
|
||||||
bool "NXP MFRC522 ISO14443/Mifare Transceiver"
|
bool "NXP MFRC522 ISO14443/Mifare Transceiver"
|
||||||
default n
|
default n
|
||||||
@@ -56,4 +54,3 @@ config CL_PN532_DEBUG_RX
|
|||||||
depends on DEBUG_CONTACTLESS
|
depends on DEBUG_CONTACTLESS
|
||||||
|
|
||||||
endif # CL_PN532
|
endif # CL_PN532
|
||||||
endif # DRIVERS_CONTACTLESS
|
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if EEPROM
|
|
||||||
config SPI_EE_25XX
|
config SPI_EE_25XX
|
||||||
bool "Microchip 25xxNNN / Atmel AT25NNN / ST M95NNN SPI EEPROM devices"
|
bool "Microchip 25xxNNN / Atmel AT25NNN / ST M95NNN SPI EEPROM devices"
|
||||||
default n
|
default n
|
||||||
@@ -51,5 +50,3 @@ config AT24CS_UUID
|
|||||||
This option registers a char device driver with the ".uuid" suffix.
|
This option registers a char device driver with the ".uuid" suffix.
|
||||||
|
|
||||||
endif # I2C_EE_24XX
|
endif # I2C_EE_24XX
|
||||||
|
|
||||||
endif # EEPROM
|
|
||||||
|
|||||||
+3
-3
@@ -3,7 +3,9 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if I2C
|
config ARCH_HAVE_I2CRESET
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config I2C_SLAVE
|
config I2C_SLAVE
|
||||||
bool "I2C Slave"
|
bool "I2C Slave"
|
||||||
@@ -48,5 +50,3 @@ config I2CMULTIPLEXER_PCA9540BDP
|
|||||||
# put more i2c mux devices here
|
# put more i2c mux devices here
|
||||||
|
|
||||||
endmenu # I2C Multiplexer Support
|
endmenu # I2C Multiplexer Support
|
||||||
|
|
||||||
endif # I2C
|
|
||||||
|
|||||||
@@ -3,6 +3,22 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
config ARCH_HAVE_SDIO
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_SDIOWAIT_WRCOMPLETE
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_SDIO_PREFLIGHT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_SDIO_DELAYED_INVLDT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config MMCSD_NSLOTS
|
config MMCSD_NSLOTS
|
||||||
int "Number of MMC/SD slots"
|
int "Number of MMC/SD slots"
|
||||||
default 1
|
default 1
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if RPTUN
|
|
||||||
|
|
||||||
config RPTUN_PRIORITY
|
config RPTUN_PRIORITY
|
||||||
int "rpturn thread priority"
|
int "rpturn thread priority"
|
||||||
default 224
|
default 224
|
||||||
@@ -12,5 +10,3 @@ config RPTUN_PRIORITY
|
|||||||
config RPTUN_STACKSIZE
|
config RPTUN_STACKSIZE
|
||||||
int "rptun stack size"
|
int "rptun stack size"
|
||||||
default 2048
|
default 2048
|
||||||
|
|
||||||
endif
|
|
||||||
|
|||||||
+12
-12
@@ -3,18 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
config ARCH_HAVE_SPI_CRCGENERATION
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_SPI_CS_CONTROL
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
config ARCH_HAVE_SPI_BITORDER
|
|
||||||
bool
|
|
||||||
default n
|
|
||||||
|
|
||||||
menuconfig SPI
|
menuconfig SPI
|
||||||
bool "SPI Driver Support"
|
bool "SPI Driver Support"
|
||||||
default n
|
default n
|
||||||
@@ -25,6 +13,18 @@ menuconfig SPI
|
|||||||
|
|
||||||
if SPI
|
if SPI
|
||||||
|
|
||||||
|
config ARCH_HAVE_SPI_CRCGENERATION
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_SPI_CS_CONTROL
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_SPI_BITORDER
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config SPI_SLAVE
|
config SPI_SLAVE
|
||||||
bool "SPI slave"
|
bool "SPI slave"
|
||||||
default n
|
default n
|
||||||
|
|||||||
@@ -14,6 +14,14 @@ config PWM
|
|||||||
|
|
||||||
if PWM
|
if PWM
|
||||||
|
|
||||||
|
config ARCH_HAVE_PWM_PULSECOUNT
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
|
config ARCH_HAVE_PWM_MULTICHAN
|
||||||
|
bool
|
||||||
|
default n
|
||||||
|
|
||||||
config PWM_PULSECOUNT
|
config PWM_PULSECOUNT
|
||||||
bool "PWM Pulse Count Support"
|
bool "PWM Pulse Count Support"
|
||||||
default n
|
default n
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
config USBMONITOR_STACKSIZE
|
config USBMONITOR_STACKSIZE
|
||||||
int "USB Monitor daemon stack size"
|
int "USB Monitor daemon stack size"
|
||||||
default 2048
|
default 2048
|
||||||
|
|||||||
@@ -7,6 +7,22 @@ config VIDEO_FB
|
|||||||
bool "Framebuffer character driver"
|
bool "Framebuffer character driver"
|
||||||
default n
|
default n
|
||||||
|
|
||||||
|
config FB_CMAP
|
||||||
|
bool
|
||||||
|
depends on VIDEO_FB
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Set by driver-specific configuration to indicate support for color
|
||||||
|
mapping. Not directly user selectable.
|
||||||
|
|
||||||
|
config FB_TRANSPARENCY
|
||||||
|
bool
|
||||||
|
depends on VIDEO_FB
|
||||||
|
default n
|
||||||
|
---help---
|
||||||
|
Set by driver-specific configuration to indicate support for color
|
||||||
|
transparency. Not directly user selectable.
|
||||||
|
|
||||||
config FB_SYNC
|
config FB_SYNC
|
||||||
bool "Hardware signals vertical sync"
|
bool "Hardware signals vertical sync"
|
||||||
depends on VIDEO_FB
|
depends on VIDEO_FB
|
||||||
|
|||||||
@@ -3,8 +3,6 @@
|
|||||||
# see the file kconfig-language.txt in the NuttX tools repository.
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
||||||
#
|
#
|
||||||
|
|
||||||
if DRIVERS_WIRELESS
|
|
||||||
|
|
||||||
config WL_CC1101
|
config WL_CC1101
|
||||||
bool "CC1101 RF transceiver support"
|
bool "CC1101 RF transceiver support"
|
||||||
default n
|
default n
|
||||||
@@ -134,5 +132,3 @@ config WL_NRF24L01_RXFIFO_LEN
|
|||||||
|
|
||||||
endif # WL_NRF24L01_RXSUPPORT
|
endif # WL_NRF24L01_RXSUPPORT
|
||||||
endif # WL_NRF24L01
|
endif # WL_NRF24L01
|
||||||
|
|
||||||
endif # DRIVERS_WIRELESS
|
|
||||||
|
|||||||
Reference in New Issue
Block a user