2012-04-11 02:04:59 +00:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
|
|
|
# see misc/tools/kconfig-language.txt.
|
|
|
|
#
|
2012-09-06 20:08:25 +00:00
|
|
|
|
2012-09-09 15:43:18 +00:00
|
|
|
comment "LPC31xx Configuration Options"
|
|
|
|
|
2012-09-06 20:08:25 +00:00
|
|
|
choice
|
|
|
|
prompt "LPC31 Chip Selection"
|
|
|
|
default ARCH_CHIP_LPC3131
|
|
|
|
depends on ARCH_CHIP_LPC31XX
|
|
|
|
|
|
|
|
config ARCH_CHIP_LPC3130
|
|
|
|
bool "LPC3130"
|
2013-01-18 22:42:37 +00:00
|
|
|
select ARCH_HAVE_EXTNAN
|
|
|
|
select ARCH_HAVE_EXTSRAM0
|
|
|
|
select ARCH_HAVE_EXTSRAM1
|
|
|
|
select ARCH_HAVE_EXTDRAM
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
config ARCH_CHIP_LPC3131
|
|
|
|
bool "LPC3131"
|
2013-01-18 22:42:37 +00:00
|
|
|
select ARCH_HAVE_EXTNAND
|
|
|
|
select ARCH_HAVE_EXTSRAM0
|
|
|
|
select ARCH_HAVE_EXTSRAM1
|
|
|
|
select ARCH_HAVE_EXTDRAM
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
config ARCH_CHIP_LPC3152
|
|
|
|
bool "LPC3152"
|
2013-01-18 22:42:37 +00:00
|
|
|
select ARCH_HAVE_EXTNAND
|
|
|
|
select ARCH_HAVE_EXTSRAM0
|
|
|
|
select ARCH_HAVE_EXTSRAM1
|
|
|
|
select ARCH_HAVE_EXTDRAM
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
config ARCH_CHIP_LPC3154
|
|
|
|
bool "LPC3154"
|
2013-01-18 22:42:37 +00:00
|
|
|
select ARCH_HAVE_EXTNAND
|
|
|
|
select ARCH_HAVE_EXTSRAM0
|
|
|
|
select ARCH_HAVE_EXTSRAM1
|
|
|
|
select ARCH_HAVE_EXTDRAM
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
|
|
|
choice
|
|
|
|
prompt "Toolchain Selection"
|
2012-11-13 15:50:38 +00:00
|
|
|
default LPC31_BUILDROOT if !HOST_WINDOWS
|
|
|
|
default LPC31_CODESOURCERYW if HOST_WINDOWS
|
2012-09-06 20:08:25 +00:00
|
|
|
depends on ARCH_CHIP_LPC31XX
|
|
|
|
|
|
|
|
config LPC31_CODESOURCERYW
|
2012-11-13 15:50:38 +00:00
|
|
|
bool "CodeSourcery GNU toolchain under Windows"
|
|
|
|
depends on HOST_WINDOWS
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
config LPC31_CODESOURCERYL
|
2012-11-13 15:50:38 +00:00
|
|
|
bool "CodeSourcery GNU toolchain under Linux"
|
|
|
|
depends on HOST_LINUX
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
config LPC31_DEVKITARM
|
2012-11-13 15:50:38 +00:00
|
|
|
bool "devkitARM GNU toolchain"
|
|
|
|
depends on HOST_WINDOWS
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
config LPC31_BUILDROOT
|
2012-11-13 15:50:38 +00:00
|
|
|
bool "Buildroot"
|
|
|
|
depends on !WINDOWS_NATIVE
|
2012-09-06 20:08:25 +00:00
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2012-09-06 22:25:51 +00:00
|
|
|
config LPC31_SDRAMHCLK
|
|
|
|
int "External SDRAM HCLK"
|
2013-01-18 22:42:37 +00:00
|
|
|
depends on ARCH_EXTSDRAM
|
2012-09-06 22:25:51 +00:00
|
|
|
---help---
|
|
|
|
The SDRAM HCLK may be specified here (if not, it will be calculated).
|
|
|
|
|
2012-09-06 20:08:25 +00:00
|
|
|
menu "LPC31xx Peripheral Support"
|
|
|
|
|
|
|
|
config LPC31_UART
|
|
|
|
bool "UART"
|
|
|
|
default n
|
2012-09-08 13:56:21 +00:00
|
|
|
select ARCH_HAVE_UART
|
2012-09-06 20:08:25 +00:00
|
|
|
|
2012-09-06 22:25:51 +00:00
|
|
|
config LPC31_SPI
|
|
|
|
bool "SPI"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LPC31_USB
|
|
|
|
bool "USB"
|
|
|
|
default n
|
|
|
|
|
|
|
|
config LPC31_MCI
|
|
|
|
bool "MCI"
|
|
|
|
default n
|
|
|
|
|
2012-09-06 20:08:25 +00:00
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "LPC31xx UART Configuration"
|
|
|
|
depends on LPC31_UART
|
|
|
|
|
|
|
|
config LPC31_UART_DIVADDVAL
|
|
|
|
int "BAUD pre-scaler divisor"
|
|
|
|
---help---
|
|
|
|
BAUD pre-scaler divisor
|
|
|
|
|
|
|
|
config LPC31_UART_DIVISOR
|
|
|
|
int "BAUD divisor"
|
|
|
|
---help---
|
|
|
|
BAUD divisor
|
|
|
|
|
|
|
|
config LPC31_UART_MULVAL
|
|
|
|
int "BAUD multiplier"
|
|
|
|
---help---
|
|
|
|
BAUD multiplier
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "USB device driver options"
|
|
|
|
|
|
|
|
config LPC31_USBDEV_EP0_MAXSIZE
|
|
|
|
int "EP0 Max packet size"
|
|
|
|
depends on USBDEV
|
|
|
|
default 64
|
|
|
|
---help---
|
|
|
|
Endpoint 0 maximum packet size. Default: 64
|
|
|
|
|
|
|
|
config LPC31_USBDEV_FRAME_INTERRUPT
|
|
|
|
bool "USB frame interrupt"
|
|
|
|
depends on USBDEV
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Handle USB Start-Of-Frame events. Enable reading SOF from interrupt
|
|
|
|
handler vs. simply reading on demand. Probably a bad idea... Unless
|
|
|
|
there is some issue with sampling the SOF from hardware asynchronously.
|
|
|
|
|
|
|
|
config LPC31_USBDEV_DMA
|
|
|
|
bool "Enable USB device DMA"
|
|
|
|
depends on USBDEV
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Enable lpc31xx-specific DMA support
|
|
|
|
|
|
|
|
config LPC31_USBDEV_REGDEBUG
|
|
|
|
bool "Register level debug"
|
|
|
|
depends on USBDEV && DEBUG
|
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Output detailed register-level USB device debug information. Requires also DEBUG.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|
|
|
|
menu "SPI device driver options"
|
|
|
|
|
|
|
|
config LPC31_SPI_REGDEBUG
|
2012-09-06 22:25:51 +00:00
|
|
|
bool "SPI Register level debug"
|
|
|
|
depends on LPC31_SPI && DEBUG
|
2012-09-06 20:08:25 +00:00
|
|
|
default n
|
|
|
|
---help---
|
|
|
|
Output detailed register-level SPI device debug information. Requires also DEBUG.
|
|
|
|
|
|
|
|
endmenu
|
|
|
|
|