Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
fbe0b8d5
Commit
fbe0b8d5
authored
Jun 13, 2009
by
Haavard Skinnemoen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'avr32-arch' of
git://git.kernel.org/pub/scm/linux/kernel/git/hskinnemoen/avr32-2.6
parents
c878b7d6
4024533e
Changes
10
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
1863 additions
and
9 deletions
+1863
-9
arch/avr32/boards/atngw100/Kconfig
arch/avr32/boards/atngw100/Kconfig
+25
-2
arch/avr32/boards/atngw100/Kconfig_mrmt
arch/avr32/boards/atngw100/Kconfig_mrmt
+80
-0
arch/avr32/boards/atngw100/Makefile
arch/avr32/boards/atngw100/Makefile
+1
-0
arch/avr32/boards/atngw100/mrmt.c
arch/avr32/boards/atngw100/mrmt.c
+373
-0
arch/avr32/boards/atngw100/setup.c
arch/avr32/boards/atngw100/setup.c
+5
-0
arch/avr32/boards/merisc/setup.c
arch/avr32/boards/merisc/setup.c
+4
-3
arch/avr32/configs/atngw100_mrmt_defconfig
arch/avr32/configs/atngw100_mrmt_defconfig
+1363
-0
arch/avr32/include/asm/hw_irq.h
arch/avr32/include/asm/hw_irq.h
+1
-1
drivers/mmc/host/atmel-mci.c
drivers/mmc/host/atmel-mci.c
+9
-3
include/linux/atmel-mci.h
include/linux/atmel-mci.h
+2
-0
No files found.
arch/avr32/boards/atngw100/Kconfig
View file @
fbe0b8d5
...
...
@@ -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
...
...
@@ -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"
...
...
@@ -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
arch/avr32/boards/atngw100/Kconfig_mrmt
0 → 100644
View file @
fbe0b8d5
# 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
arch/avr32/boards/atngw100/Makefile
View file @
fbe0b8d5
obj-y
+=
setup.o flash.o
obj-$(CONFIG_BOARD_ATNGW100_EVKLCD10X)
+=
evklcd10x.o
obj-$(CONFIG_BOARD_ATNGW100_MRMT)
+=
mrmt.o
arch/avr32/boards/atngw100/mrmt.c
0 → 100644
View file @
fbe0b8d5
This diff is collapsed.
Click to expand it.
arch/avr32/boards/atngw100/setup.c
View file @
fbe0b8d5
...
...
@@ -56,8 +56,13 @@ static struct spi_board_info spi0_board_info[] __initdata = {
static
struct
mci_platform_data
__initdata
mci0_data
=
{
.
slot
[
0
]
=
{
.
bus_width
=
4
,
#if defined(CONFIG_BOARD_ATNGW100_EVKLCD10X) || defined(CONFIG_BOARD_ATNGW100_MRMT1)
.
detect_pin
=
GPIO_PIN_NONE
,
.
wp_pin
=
GPIO_PIN_NONE
,
#else
.
detect_pin
=
GPIO_PIN_PC
(
25
),
.
wp_pin
=
GPIO_PIN_PE
(
0
),
#endif
},
};
...
...
arch/avr32/boards/merisc/setup.c
View file @
fbe0b8d5
...
...
@@ -94,9 +94,10 @@ static struct spi_board_info __initdata spi0_board_info[] = {
static
struct
mci_platform_data
__initdata
mci0_data
=
{
.
slot
[
0
]
=
{
.
bus_width
=
4
,
.
detect_pin
=
GPIO_PIN_PE
(
19
),
.
wp_pin
=
GPIO_PIN_PE
(
20
),
.
bus_width
=
4
,
.
detect_pin
=
GPIO_PIN_PE
(
19
),
.
wp_pin
=
GPIO_PIN_PE
(
20
),
.
detect_is_active_high
=
true
,
},
};
...
...
arch/avr32/configs/atngw100_mrmt_defconfig
0 → 100644
View file @
fbe0b8d5
This diff is collapsed.
Click to expand it.
arch/avr32/include/asm/hw_irq.h
View file @
fbe0b8d5
#ifndef __ASM_AVR32_HW_IRQ_H
#define __ASM_AVR32_HW_IRQ_H
static
inline
void
hw_resend_irq
(
struct
hw_interrupt_type
*
h
,
unsigned
int
i
)
static
inline
void
hw_resend_irq
(
struct
irq_chip
*
h
,
unsigned
int
i
)
{
/* Nothing to do */
}
...
...
drivers/mmc/host/atmel-mci.c
View file @
fbe0b8d5
...
...
@@ -177,6 +177,7 @@ struct atmel_mci {
* available.
* @wp_pin: GPIO pin used for card write protect sending, or negative
* if not available.
* @detect_is_active_high: The state of the detect pin when it is active.
* @detect_timer: Timer used for debouncing @detect_pin interrupts.
*/
struct
atmel_mci_slot
{
...
...
@@ -196,6 +197,7 @@ struct atmel_mci_slot {
int
detect_pin
;
int
wp_pin
;
bool
detect_is_active_high
;
struct
timer_list
detect_timer
;
};
...
...
@@ -924,7 +926,8 @@ static int atmci_get_cd(struct mmc_host *mmc)
struct
atmel_mci_slot
*
slot
=
mmc_priv
(
mmc
);
if
(
gpio_is_valid
(
slot
->
detect_pin
))
{
present
=
!
gpio_get_value
(
slot
->
detect_pin
);
present
=
!
(
gpio_get_value
(
slot
->
detect_pin
)
^
slot
->
detect_is_active_high
);
dev_dbg
(
&
mmc
->
class_dev
,
"card is %spresent
\n
"
,
present
?
""
:
"not "
);
}
...
...
@@ -1028,7 +1031,8 @@ static void atmci_detect_change(unsigned long data)
return
;
enable_irq
(
gpio_to_irq
(
slot
->
detect_pin
));
present
=
!
gpio_get_value
(
slot
->
detect_pin
);
present
=
!
(
gpio_get_value
(
slot
->
detect_pin
)
^
slot
->
detect_is_active_high
);
present_old
=
test_bit
(
ATMCI_CARD_PRESENT
,
&
slot
->
flags
);
dev_vdbg
(
&
slot
->
mmc
->
class_dev
,
"detect change: %d (was %d)
\n
"
,
...
...
@@ -1456,6 +1460,7 @@ static int __init atmci_init_slot(struct atmel_mci *host,
slot
->
host
=
host
;
slot
->
detect_pin
=
slot_data
->
detect_pin
;
slot
->
wp_pin
=
slot_data
->
wp_pin
;
slot
->
detect_is_active_high
=
slot_data
->
detect_is_active_high
;
slot
->
sdc_reg
=
sdc_reg
;
mmc
->
ops
=
&
atmci_ops
;
...
...
@@ -1477,7 +1482,8 @@ static int __init atmci_init_slot(struct atmel_mci *host,
if
(
gpio_request
(
slot
->
detect_pin
,
"mmc_detect"
))
{
dev_dbg
(
&
mmc
->
class_dev
,
"no detect pin available
\n
"
);
slot
->
detect_pin
=
-
EBUSY
;
}
else
if
(
gpio_get_value
(
slot
->
detect_pin
))
{
}
else
if
(
gpio_get_value
(
slot
->
detect_pin
)
^
slot
->
detect_is_active_high
)
{
clear_bit
(
ATMCI_CARD_PRESENT
,
&
slot
->
flags
);
}
}
...
...
include/linux/atmel-mci.h
View file @
fbe0b8d5
...
...
@@ -10,6 +10,7 @@
* @bus_width: Number of data lines wired up the slot
* @detect_pin: GPIO pin wired to the card detect switch
* @wp_pin: GPIO pin wired to the write protect sensor
* @detect_is_active_high: The state of the detect pin when it is active
*
* If a given slot is not present on the board, @bus_width should be
* set to 0. The other fields are ignored in this case.
...
...
@@ -24,6 +25,7 @@ struct mci_slot_pdata {
unsigned
int
bus_width
;
int
detect_pin
;
int
wp_pin
;
bool
detect_is_active_high
;
};
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment