Skip to content

Commit 2abb74e

Browse files
plagniojNicolas Ferre
authored andcommitted
atmel: move ATMEL_MAX_UART to platform_data/atmel.h
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>
1 parent 75984df commit 2abb74e

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

arch/arm/mach-at91/include/mach/hardware.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@
9090
#define AT91_SRAM_MAX SZ_1M
9191
#define AT91_VIRT_BASE (AT91_IO_VIRT_BASE - AT91_SRAM_MAX)
9292

93-
/* Serial ports */
94-
#define ATMEL_MAX_UART 7 /* 6 USART3's and one DBGU port (SAM9260) */
95-
9693
/* External Memory Map */
9794
#define AT91_CHIPSELECT_0 0x10000000
9895
#define AT91_CHIPSELECT_1 0x20000000

arch/avr32/mach-at32ap/include/mach/board.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ static inline void __deprecated at32_add_system_devices(void)
2626

2727
}
2828

29-
#define ATMEL_MAX_UART 4
3029
extern struct platform_device *atmel_default_console_device;
3130

3231
/* Flags for selecting USART extra pins */

include/linux/platform_data/atmel.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@
1919
#include <linux/serial.h>
2020
#include <linux/platform_data/macb.h>
2121

22+
/*
23+
* at91: 6 USARTs and one DBGU port (SAM9260)
24+
* avr32: 4
25+
*/
26+
#define ATMEL_MAX_UART 7
27+
2228
/* USB Device */
2329
struct at91_udc_data {
2430
int vbus_pin; /* high == host powering us */

0 commit comments

Comments
 (0)