atmel: move ATMEL_MAX_UART to platform_data/atmel.h
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sat, 17 Nov 2012 22:05:06 +0000 (23:05 +0100)
committerNicolas Ferre <nicolas.ferre@atmel.com>
Mon, 19 Nov 2012 16:44:54 +0000 (17:44 +0100)
Modify both AT91 and AVR32 platforms.
Use 7 for it as the sam9260 or the sam9g25 have 7 of them DBGU included.

Reported-by: Joachim Eastwood <joachim.eastwood@jotron.com>
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
arch/arm/mach-at91/include/mach/hardware.h
arch/avr32/mach-at32ap/include/mach/board.h
include/linux/platform_data/atmel.h

index 711a7892d331624fc6fa8315460720f4c9c89b63..a832e0707611714246e36ef37ff9b2a59faaf53e 100644 (file)
@@ -90,9 +90,6 @@
 #define AT91_SRAM_MAX          SZ_1M
 #define AT91_VIRT_BASE         (AT91_IO_VIRT_BASE - AT91_SRAM_MAX)
 
-/* Serial ports */
-#define ATMEL_MAX_UART         7               /* 6 USART3's and one DBGU port (SAM9260) */
-
 /* External Memory Map */
 #define AT91_CHIPSELECT_0      0x10000000
 #define AT91_CHIPSELECT_1      0x20000000
index dca93450cb0e6ccf687f5dcbfe61411a739d7625..d485b0391357cab467faefab4e07ba20e0aad2ac 100644 (file)
@@ -26,7 +26,6 @@ static inline void __deprecated at32_add_system_devices(void)
 
 }
 
-#define ATMEL_MAX_UART 4
 extern struct platform_device *atmel_default_console_device;
 
 /* Flags for selecting USART extra pins */
index dbd6d53cc27049ce7c2969f5a4fa535ac091a7ee..6a293b7fff3bf9d4cb260d3d6c6d639427f38275 100644 (file)
 #include <linux/serial.h>
 #include <linux/platform_data/macb.h>
 
+/*
+ * at91: 6 USARTs and one DBGU port (SAM9260)
+ * avr32: 4
+ */
+#define ATMEL_MAX_UART 7
+
  /* USB Device */
 struct at91_udc_data {
        int     vbus_pin;               /* high == host powering us */