diff options
author | claudio <claudio@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-11 16:31:34 +0000 |
---|---|---|
committer | claudio <claudio@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2010-10-11 16:31:34 +0000 |
commit | 92c3a01490cdd73175b3e0dfa14b8367fea3a3fc (patch) | |
tree | 26bd586796e98fff5487e900851811ce37f6a63b /target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c | |
parent | dea32c53f1428c120a87819e68d5c18b89e95bb4 (diff) |
[at91] Add support for FOXGM carrier board
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23398 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c')
-rw-r--r-- | target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c b/target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c index 7af870a23..c0d366ffc 100644 --- a/target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c +++ b/target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c @@ -55,7 +55,7 @@ static void __init ek_map_io(void) /* DGBU on ttyS0. (Rx & Tx only) */ at91_register_uart(0, 0, 0); -#if defined(CONFIG_NETUS_SERIALS) +#if defined(CONFIG_NETUS_SERIALS) || defined(CONFIG_NETUS_FOXGM) /* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */ at91_register_uart(AT91SAM9260_ID_US0, 1, ATMEL_UART_CTS | ATMEL_UART_RTS | ATMEL_UART_DTR | ATMEL_UART_DSR | ATMEL_UART_DCD @@ -63,7 +63,9 @@ static void __init ek_map_io(void) /* USART1 on ttyS2. (Rx, Tx, RTS, CTS) */ at91_register_uart(AT91SAM9260_ID_US1, 2, ATMEL_UART_CTS | ATMEL_UART_RTS); +#endif +#if defined(CONFIG_NETUS_SERIALS) /* USART2 on ttyS3. (Rx, Tx) */ at91_register_uart(AT91SAM9260_ID_US2, 3, 0); #endif @@ -131,6 +133,20 @@ static struct at91_mmc_data __initdata ek_mmc_data = { * LEDs */ static struct gpio_led ek_leds[] = { +#if defined(CONFIG_NETUS_FOXGM) + { + .name = "led:red:L4", + .gpio = AT91_PIN_PC9, + .active_low = 0, + .default_trigger = "heartbeat", + }, + { + .name = "led:red:L5", + .gpio = AT91_PIN_PC13, + .active_low = 0, + .default_trigger = "none", + }, +#endif //CONFIG_NETUS_FOXGM { .name = "led:red:user", .gpio = AT91_PIN_PC7, @@ -139,7 +155,7 @@ static struct gpio_led ek_leds[] = { .default_trigger = "heartbeat", #else .default_trigger = "none", -#endif +#endif //CONFIG_NETUS_HEARTBEAT_LED }, }; |