Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32…
Browse files Browse the repository at this point in the history
…-2.6

* git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6:
  avr32: Fix oops on unaligned user access
  avr32: Add support for Mediama RMTx add-on board for ATNGW100
  avr32: Change Atmel ATNGW100 config to add choice of add-on board
  Fix MIMC200 board LCD init
  avr32: Fix clash in ATMEL_USART_ flags
  avr32: remove obsolete hw_interrupt_type
  avr32: Solves problem with inverted MCI detect pin on Merisc board
  atmel-mci: Add support for inverted detect pin
  • Loading branch information
Linus Torvalds committed Jun 13, 2009
2 parents 5c55b40 + bb6e647 commit 84c48e6
Show file tree
Hide file tree
Showing 13 changed files with 1,889 additions and 25 deletions.
27 changes: 25 additions & 2 deletions arch/avr32/boards/atngw100/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,15 @@

if BOARD_ATNGW100

choice
prompt "Select an NGW100 add-on board to support"
default BOARD_ATNGW100_ADDON_NONE

config BOARD_ATNGW100_ADDON_NONE
bool "None"

config BOARD_ATNGW100_EVKLCD10X
bool "Add support for EVKLCD10X addon board"
bool "EVKLCD10X addon board"
help
This enables support for the EVKLCD100 (QVGA) or EVKLCD101 (VGA)
addon board for the NGW100. By enabling this the LCD controller and
Expand All @@ -14,7 +21,19 @@ config BOARD_ATNGW100_EVKLCD10X
The MCI pins can be reenabled by editing the "add device function" but
this may break the setup for other displays that use these pins.

Choose 'Y' here if you have a EVKLCD100/101 connected to the NGW100.
config BOARD_ATNGW100_MRMT
bool "Mediama RMT1/2 add-on board"
help
This enables support for the Mediama RMT1 or RMT2 board.
RMT provides LCD support, AC97 codec and other
optional peripherals to the Atmel NGW100.

This choice disables the detect pin and the write-protect pin for the
MCI platform device, since it conflicts with the LCD platform device.
The MCI pins can be reenabled by editing the "add device function" but
this may break the setup for other displays that use these pins.

endchoice

choice
prompt "LCD panel resolution on EVKLCD10X"
Expand All @@ -32,4 +51,8 @@ config BOARD_ATNGW100_EVKLCD10X_POW_QVGA

endchoice

if BOARD_ATNGW100_MRMT
source "arch/avr32/boards/atngw100/Kconfig_mrmt"
endif

endif # BOARD_ATNGW100
80 changes: 80 additions & 0 deletions arch/avr32/boards/atngw100/Kconfig_mrmt
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# RMT for NGW100 customization

choice
prompt "RMT Version"
help
Select the RMTx board version.

config BOARD_MRMT_REV1
bool "RMT1"
config BOARD_MRMT_REV2
bool "RMT2"

endchoice

config BOARD_MRMT_AC97
bool "Enable AC97 CODEC"
help
Enable the UCB1400 AC97 CODEC driver.

choice
prompt "Touchscreen Driver"
default BOARD_MRMT_ADS7846_TS

config BOARD_MRMT_UCB1400_TS
bool "Use UCB1400 Touchscreen"

config BOARD_MRMT_ADS7846_TS
bool "Use ADS7846 Touchscreen"

endchoice

choice
prompt "RMTx LCD Selection"
default BOARD_MRMT_LCD_DISABLE

config BOARD_MRMT_LCD_DISABLE
bool "LCD Disabled"

config BOARD_MRMT_LCD_LQ043T3DX0X
bool "Sharp LQ043T3DX0x or compatible"
help
If using RMT2, be sure to load the resistor pack selectors accordingly

if BOARD_MRMT_REV2
config BOARD_MRMT_LCD_KWH043GM08
bool "Formike KWH043GM08 or compatible"
help
Be sure to load the RMT2 resistor pack selectors accordingly
endif

endchoice

if !BOARD_MRMT_LCD_DISABLE
config BOARD_MRMT_BL_PWM
bool "Use PWM control for LCD Backlight"
help
Use PWM driver for controlling LCD Backlight.
Otherwise, LCD Backlight is always on.
endif

config BOARD_MRMT_RTC_I2C
bool "Use External RTC on I2C Bus"
help
RMT1 has an optional RTC device on the I2C bus.
It is a SII S35390A. Be sure to select the
matching RTC driver.

choice
prompt "Wireless Module on ttyS2"
default BOARD_MRMT_WIRELESS_ZB

config BOARD_MRMT_WIRELESS_ZB
bool "Use ZigBee/802.15.4 Module"

config BOARD_MRMT_WIRELESS_BT
bool "Use Bluetooth (HCI) Module"

config BOARD_MRMT_WIRELESS_NONE
bool "Not Installed"
endchoice
1 change: 1 addition & 0 deletions arch/avr32/boards/atngw100/Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
obj-y += setup.o flash.o
obj-$(CONFIG_BOARD_ATNGW100_EVKLCD10X) += evklcd10x.o
obj-$(CONFIG_BOARD_ATNGW100_MRMT) += mrmt.o
Loading

0 comments on commit 84c48e6

Please sign in to comment.