From patchwork Tue Jul 7 08:47:09 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Syed Rafiuddin X-Patchwork-Id: 34400 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n678lZKo004736 for ; Tue, 7 Jul 2009 08:47:39 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475AbZGGIrd (ORCPT ); Tue, 7 Jul 2009 04:47:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754397AbZGGIrd (ORCPT ); Tue, 7 Jul 2009 04:47:33 -0400 Received: from arroyo.ext.ti.com ([192.94.94.40]:44906 "EHLO arroyo.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753939AbZGGIrc (ORCPT ); Tue, 7 Jul 2009 04:47:32 -0400 Received: from dbdp31.itg.ti.com ([172.24.170.98]) by arroyo.ext.ti.com (8.13.7/8.13.7) with ESMTP id n678lDWw014729; Tue, 7 Jul 2009 03:47:19 -0500 Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by dbdp31.itg.ti.com (8.13.8/8.13.8) with ESMTP id n678lBsQ023647; Tue, 7 Jul 2009 14:17:11 +0530 (IST) Received: from linfarm476.india.ti.com (localhost [127.0.0.1]) by linfarm476.india.ti.com (8.12.11/8.12.11) with ESMTP id n678lBN0025044; Tue, 7 Jul 2009 14:17:11 +0530 Received: (from a0393909@localhost) by linfarm476.india.ti.com (8.12.11/8.12.11/Submit) id n678lBeU025042; Tue, 7 Jul 2009 14:17:11 +0530 From: rafiuddin.syed@ti.com To: linux-arm-kernel@lists.arm.linux.org.uk Cc: linux-omap@vger.kernel.org, Syed Rafiuddin Subject: [PATCH 3/4] ARM: OMAP4: UART4 Support on OMAP4 Date: Tue, 7 Jul 2009 14:17:09 +0530 Message-Id: <1246956430-24863-3-git-send-email-rafiuddin.syed@ti.com> X-Mailer: git-send-email 1.5.5 In-Reply-To: <1246956430-24863-2-git-send-email-rafiuddin.syed@ti.com> References: <1246956430-24863-1-git-send-email-rafiuddin.syed@ti.com> <1246956430-24863-2-git-send-email-rafiuddin.syed@ti.com> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org From: Syed Rafiuddin This patch adds UART4 support on OMAP4430 development platform. Signed-off-by: Syed Rafiuddin --- arch/arm/mach-omap2/board-4430sdp.c | 2 +- arch/arm/mach-omap2/serial.c | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletions(-) diff --git a/arch/arm/mach-omap2/board-4430sdp.c b/arch/arm/mach-omap2/board-4430sdp.c index 57e477b..7e1e721 100644 --- a/arch/arm/mach-omap2/board-4430sdp.c +++ b/arch/arm/mach-omap2/board-4430sdp.c @@ -39,7 +39,7 @@ static struct platform_device *sdp4430_devices[] __initdata = { }; 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 = { diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index b094c15..c0bea75 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -97,6 +97,16 @@ static struct plat_serial8250_port serial_platform_data[] = { .regshift = 2, .uartclk = OMAP24XX_BASE_BAUD * 16, }, { +#ifdef CONFIG_ARCH_OMAP4 + .membase = IO_ADDRESS(OMAP_UART4_BASE), + .mapbase = OMAP_UART4_BASE, + .irq = 70, + .flags = UPF_BOOT_AUTOCONF, + .iotype = UPIO_MEM, + .regshift = 2, + .uartclk = OMAP24XX_BASE_BAUD * 16, + }, { +#endif .flags = 0 } };