From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Subject: Re: [PATCH 2/2][RFC] OMAP4: UART4 Support for OMAP_4430SDP. Date: Tue, 12 May 2009 07:32:52 -0700 Message-ID: <877i0mfl2j.fsf@deeprootsystems.com> References: <51950.192.168.10.89.1241612607.squirrel@dbdmail.itg.ti.com> <55287.192.168.10.89.1242109234.squirrel@dbdmail.itg.ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from rv-out-0506.google.com ([209.85.198.230]:61579 "EHLO rv-out-0506.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751665AbZELOcx (ORCPT ); Tue, 12 May 2009 10:32:53 -0400 Received: by rv-out-0506.google.com with SMTP id f9so7787rvb.1 for ; Tue, 12 May 2009 07:32:54 -0700 (PDT) In-Reply-To: <55287.192.168.10.89.1242109234.squirrel@dbdmail.itg.ti.com> (Syed Rafiuddin's message of "Tue\, 12 May 2009 11\:50\:34 +0530 \(IST\)") Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Syed Rafiuddin Cc: "linux-arm-kernel@lists.arm.linux.org.uk" , "linux-omap@vger.kernel.org" "Syed Rafiuddin" writes: > This patch enables support for UART4 on OMAP4430 development platform. > > Signed-off-by: Syed Rafiuddin > --- > arch/arm/mach-omap2/board-4430sdp.c | 2 +- > arch/arm/mach-omap2/serial.c | 12 ++++++++++++ > 2 files changed, 13 insertions(+), 1 deletion(-) > > Index: linux-2.6/arch/arm/mach-omap2/board-4430sdp.c > =================================================================== > --- linux-2.6.orig/arch/arm/mach-omap2/board-4430sdp.c 2009-05-12 > 10:43:41.000000000 +0530 > +++ linux-2.6/arch/arm/mach-omap2/board-4430sdp.c 2009-05-12 11:40:54.000000000 > +0530 > @@ -38,7 +38,7 @@ > }; > > static struct omap_uart_config sdp4430_uart_config __initdata = { > - .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2)), > + .enabled_uarts = ((1 << 0) | (1 << 1) | (1 << 2) | (1 << 3)), > }; > > static struct omap_lcd_config sdp4430_lcd_config __initdata = { > Index: linux-2.6/arch/arm/mach-omap2/serial.c > =================================================================== > --- linux-2.6.orig/arch/arm/mach-omap2/serial.c 2009-05-12 11:35:55.000000000 > +0530 > +++ linux-2.6/arch/arm/mach-omap2/serial.c 2009-05-12 11:46:13.000000000 +0530 > @@ -53,8 +53,20 @@ > .iotype = UPIO_MEM, > .regshift = 2, > .uartclk = OMAP24XX_BASE_BAUD * 16, > + > + }, { > +#ifdef CONFIG_ARCH_OMAP4 > + .membase = IO_ADDRESS(OMAP_UART3_BASE), > + .mapbase = OMAP_UART4_BASE, > + .irq = 70, > + .flags = UPF_BOOT_AUTOCONF, > + .iotype = UPIO_MEM, > + .regshift = 2, > + .uartclk = OMAP24XX_BASE_BAUD * 16, > }, { > +#else > .flags = 0 > +#endif > } > }; You dropped the terminator entry (flags == 0) in the OMAP4 case. That should remain the last entry whether or not OMAP4 support is enabled. Kevin