From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.ferre@atmel.com (Nicolas Ferre) Date: Mon, 19 Nov 2012 10:09:52 +0100 Subject: [PATCH 1/1] atmel: move ATMEL_MAX_UART to platform_data/atmel.h In-Reply-To: <1353189906-1767-1-git-send-email-plagnioj@jcrosoft.com> References: <20121107111235.GH20063@game.jcrosoft.org> <1353189906-1767-1-git-send-email-plagnioj@jcrosoft.com> Message-ID: <50A9F760.4050207@atmel.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On 11/17/2012 11:05 PM, Jean-Christophe PLAGNIOL-VILLARD : > use 7 for it as the sam9260 or the sam9g25 have 7 of them DBGU included > > Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD > Cc: Nicolas Ferre > --- > arch/arm/mach-at91/include/mach/hardware.h | 3 --- > arch/avr32/mach-at32ap/include/mach/board.h | 1 - > include/linux/platform_data/atmel.h | 6 ++++++ > 3 files changed, 6 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/mach-at91/include/mach/hardware.h b/arch/arm/mach-at91/include/mach/hardware.h > index 711a789..a832e07 100644 > --- a/arch/arm/mach-at91/include/mach/hardware.h > +++ b/arch/arm/mach-at91/include/mach/hardware.h > @@ -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 > diff --git a/arch/avr32/mach-at32ap/include/mach/board.h b/arch/avr32/mach-at32ap/include/mach/board.h > index dca9345..d485b03 100644 > --- a/arch/avr32/mach-at32ap/include/mach/board.h > +++ b/arch/avr32/mach-at32ap/include/mach/board.h > @@ -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 */ > diff --git a/include/linux/platform_data/atmel.h b/include/linux/platform_data/atmel.h > index dbd6d53..59fffa4 100644 > --- a/include/linux/platform_data/atmel.h > +++ b/include/linux/platform_data/atmel.h > @@ -19,6 +19,12 @@ > #include > #include > > +/* > + * at91: 6 USART3's and one DBGU port (SAM9260) Why the "3"? > + * avr32: 4 > + */ > +#define ATMEL_MAX_UART 7 > + > /* USB Device */ > struct at91_udc_data { > int vbus_pin; /* high == host powering us */ > Ok otherwise. Do not bother, I may change the typo while including it in at91-fixes pull request... Acked-by: Nicolas Ferre Best regards, -- Nicolas Ferre