Add support for FOXGM carrier board
authorClaudio Mignanti <c.mignanti@gmail.com>
Mon, 11 Oct 2010 16:31:34 +0000 (16:31 +0000)
committerClaudio Mignanti <c.mignanti@gmail.com>
Mon, 11 Oct 2010 16:31:34 +0000 (16:31 +0000)
SVN-Revision: 23398

target/linux/at91/files/arch/arm/mach-at91/board-netus-foxboard.c
target/linux/at91/patches/800-netus-support.patch

index 7af870a2357ccfb23947b5e4c3f3040da91935c6..c0d366ffc1cdf9bb85ae63d20ac0095bfdd41886 100644 (file)
@@ -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
        },
 };
 
index 8294c8f30a79d3385cb4dec8d5301d457be26bdb..0cd91dbf2d63abefce1a2c41aa40f6b5340e107d 100755 (executable)
 +      depends on MACH_NETUS_FOXBOARD
 +      help
 +        Select this option to use the dataflash.
++
++config NETUS_FOXGM
++      bool "Enable support for FoxGM board"
++      depends on MACH_NETUS_FOXBOARD
++      select LEDS_TRIGGER_HEARTBEAT
++      help
++        Select this option to auto-configure leds and
++        serial ports according to FOXGM board.
 +
  # ----------------------------------------------------------