Skip to content

Commit

Permalink
Kconfig update
Browse files Browse the repository at this point in the history
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4599 42af7a65-404d-4744-a932-0658087f49c3
  • Loading branch information
patacongo committed Apr 13, 2012
1 parent 09438d5 commit 1dc41e3
Show file tree
Hide file tree
Showing 12 changed files with 1,186 additions and 9 deletions.
19 changes: 16 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,22 @@ pass2dep: context
$(MAKE) -C $$dir TOPDIR="$(TOPDIR)" EXTRADEFINES=$(KDEFINE) depend; \
done

# Configuration targets
#
# These targets depend on the kconfig-frontends packages. To use these, you
# must first download and install the kconfig-frontends package from this
# location: http://ymorin.is-a-geek.org/projects/kconfig-frontends. See
# misc/tools/README.txt for additional information.

config:
@APPSDIR=${CONFIG_APPS_DIR} conf Kconfig

oldconfig:
@APPSDIR=${CONFIG_APPS_DIR} conf --oldconfig Kconfig

menuconfig:
@APPSDIR=${CONFIG_APPS_DIR} mconf Kconfig

# export
#
# The export target will package the NuttX libraries and header files into
Expand Down Expand Up @@ -604,6 +620,3 @@ ifneq ($(APPDIR),)
{ echo "Copy of _SAVED_APPS_config failed" ; exit 1 ; }
endif

menuconfig:
@APPSDIR=${CONFIG_APPS_DIR} mconf Kconfig

3 changes: 3 additions & 0 deletions arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# see misc/tools/kconfig-language.txt.
#

if ARCH_ARM
choice
prompt "ARM chip selection"
default ARCH_CHIP_STM32
Expand Down Expand Up @@ -103,3 +104,5 @@ source arch/arm/src/lpc31xx/Kconfig
source arch/arm/src/sam3u/Kconfig
source arch/arm/src/stm32/Kconfig
source arch/arm/src/str71x/Kconfig

endif
5 changes: 5 additions & 0 deletions arch/sim/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,9 @@ config ARCH_BOARD_WIN32
THIS PORT NOT SUPPORTED.

endchoice

config ARCH_BOARD
string
default "sim" if ARCH_BOARD_SIM

endif
157 changes: 152 additions & 5 deletions drivers/lcd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,69 @@
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config LCD_MAXCONTRAST
int "LCD maximum contrast"
default 63 if NOKIA6100_S1D15G10
default 127 if NOKIA6100_PCF8833
default 255 if LCD_P14201
default 63
---help---
must be 63 with the Epson controller and 127 with
the Phillips controller.

config LCD_MAXPOWER
int "LCD maximum power"
default 1
---help---
Maximum value of backlight setting. The backlight
control is managed outside of the 6100 driver so this value has no
meaning to the driver. Board-specific logic may place restrictions on
this value.

config LCD_P14201
bool "Rit P1402 series display"
default n
---help---
p14201.c. Driver for RiT P14201 series display with SD1329 IC
controller. This OLED is used with older versions of the
TI/Luminary LM3S8962 Evaluation Kit.
if LCD_P14201
config P14201_NINTERFACES
int "Number of physical P14201 devices"
default 1
range 1,1
---help---
Specifies the number of physical P14201
devices that will be supported.

config P14201_SPIMODE
int "SPI mode"
default 2
range 0,3
---help---
Controls the SPI mode

config P14201_FREQUENCY
int "SPI frequency"
default 1000000
---help---
Define to use a different bus frequency,FIXME DEFAULT VALUE OK?

config P14201_FRAMEBUFFER
bool "Enable P14201 GDDRAM cache"
default y
---help---
If defined, accesses will be performed
using an in-memory copy of the OLEDs GDDRAM. This cost of this
buffer is 128 * 96 / 2 = 6Kb. If this is defined, then the driver
will be fully functional. If not, then it will have the following
limitations:

Reading graphics memory cannot be supported, and

All pixel writes must be aligned to byte boundaries.
The latter limitation effectively reduces the 128x96 disply to 64x96.
endif

config LCD_NOKIA6100
bool "Nokia 6100 display support"
Expand All @@ -10,14 +73,98 @@ config LCD_NOKIA6100
nokia6100.c. Supports the Nokia 6100 display with either the Philips
PCF883 or the Epson S1D15G10 display controller. This LCD is used
with the Olimex LPC1766-STK (but has not been fully integrated).
if LCD_NOKIA6100
config NOKIA6100_NINTERFACES
int "Number of physical NOKIA6100 devices"
default 1
range 1,1
---help---
Specifies the number of physical Nokia
6100 devices that will be supported.

config LCD_P14201
bool "Rit P1402 series display"
choice NOKIA6100_CONTROLLER
prompt "Controller Setup"
default NOKIA6100_S1D15G10
config NOKIA6100_S1D15G10
bool "S1D15G10 controller"
---help---
Selects the Epson S1D15G10 display controller

config NOKIA6100_PCF8833
bool "PCF8833 controller"
---help---
Selects the Phillips PCF8833 display controller
endchoice

config NOKIA6100_SPIMODE
int "SPI mode"
default 0
range 0,3
---help---
Controls the SPI mode

config NOKIA6100_FREQUENCY
int "SPI frequency"
default 1000000
---help---
Define to use a different bus frequency

config NOKIA6100_BLINIT
bool "Back light initial"
default n
---help---
p14201.c. Driver for RiT P14201 series display with SD1329 IC
controller. This OLED is used with older versions of the
TI/Luminary LM3S8962 Evaluation Kit.
Initial backlight setting
The following may need to be tuned for your hardware:

config NOKIA6100_BPP
int "Display bits per pixel"
default 8
---help---
Device supports 8, 12, and 16 bits per pixel.

config NOKIA6100_INVERT
int "Display inversion"
default 1
range 0,1
---help---
Display inversion, 0 or 1, Default: 1

config NOKIA6100_MY
int "Display row direction"
default 0
range 0,1
---help---
Display row direction, 0 or 1, Default: 0

config NOKIA6100_MX
int "Display column direction"
default 1
range 0,1
---help---
Display column direction, 0 or 1, Default: 1

config NOKIA6100_V
int "Display address direction"
default 0
range 0,1
---help---
Display address direction, 0 or 1, Default: 0

config NOKIA6100_ML
int "Display scan direction"
default 0
range 0,1
---help---
Display scan direction, 0 or 1, Default: 0

config NOKIA6100_RGBORD
int "Display RGB order"
default 0
range 0,1
---help---
Display RGB order, 0 or 1, Default: 0
Required LCD driver settings:
endif

config LCD_UG9664HSWAG01
bool "9664HSWAG01 OLED Display Module"
Expand Down
73 changes: 73 additions & 0 deletions drivers/mmcsd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,76 @@
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config MMCSD_NSLOTS
int "Number of MMC/SD slots"
default 1
---help---
Number of MMC/SD slots supported by the
driver. Default is one.

config MMCSD_READONLY
bool "Disable MMC/SD write access"
default n
---help---
Provide read-only access. Default is
Read/Write

config MMCSD_MULTIBLOCK_DISABLE
bool "Disable MMC/SD multiblock transfer"
default n
---help---
Use only the single block transfer method.
This setting is used to work around buggy SDIO drivers that cannot handle
multiple block transfers.

config MMCSD_MMCSUPPORT
bool "MMC cards support"
default y
---help---
Enable support for MMC cards

config MMCSD_HAVECARDDETECT
bool "MMC/SD card detection"
default y
---help---
SDIO driver card detection is
100% accurate

config MMCSD_SPI
bool "MMC/SD spi transfer support"
default y

config MMCSD_SPICLOCK
int "MMC/SD maximum SPI clock"
default 20000000
depends on MMCSD_SPI
---help---
Maximum SPI clock to drive MMC/SD card.
Default is 20MHz.

config MMCSD_SDIO
bool "MMC/SD sdio transfer support"
default y

if MMCSD_SDIO
config SDIO_DMA
bool "SDIO dma support"
default n
---help---
SDIO driver supports DMA

config SDIO_MUXBUS
bool "SDIO bus share support"
default n
---help---
Set this SDIO interface if the SDIO interface
or hardware resources are shared with other drivers.

config SDIO_WIDTH_D1_ONLY
bool "SDIO 1-bit transfer"
default n
---help---
Select 1-bit transfer mode. Default:
4-bit transfer mode.
endif

71 changes: 71 additions & 0 deletions drivers/net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,74 @@
# For a description of the syntax of this configuration file,
# see misc/tools/kconfig-language.txt.
#
config NET_DM90x0
bool "Davicom dm9000/dm9010 support"
default n
---help---
References: Davicom data sheets (DM9000-DS-F03-041906.pdf,
DM9010-DS-F01-103006.pdf) and looking at lots of other DM90x0
drivers.

config NET_CS89x0
bool "CS89x0 support"
default n
depends on EXPERIMENTAL
---help---
Under construction -- do not use

config ENC28J60
bool "Microchip ENC28J60 support"
default n
select SPI
---help---
References:
ENC28J60 Data Sheet, Stand-Alone Ethernet Controller with SPI Interface,
DS39662C, 2008 Microchip Technology Inc.
if ENC28J60
config ENC28J60_NINTERFACES
int "Number of physical ENC28J60"
default 1
range 1,1
---help---
Specifies the number of physical ENC28J60
devices that will be supported.

config ENC28J60_SPIMODE
int "SPI mode"
default 2
---help---
Controls the SPI mode

config ENC28J60_FREQUENCY
int "SPI frequency"
default 20000000
---help---
Define to use a different bus frequency

config ENC28J60_STATS
bool "Network statistics support"
default n
---help---
Collect network statistics

config ENC28J60_HALFDUPPLEX
bool "Enable half dupplex"
default n
---help---
Default is full duplex
endif

config NET_E1000
bool "E1000 support"
default n

config NET_SLIP
bool "SLIP (serial line) support"
default n
---help---
Reference: RFC 1055

config NET_VNET
bool "VNET support"
default n

Loading

0 comments on commit 1dc41e3

Please sign in to comment.