From patchwork Fri Nov 18 07:11:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 5201 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id E3BBD23FFE for ; Fri, 18 Nov 2011 07:03:14 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id D94F6A181F1 for ; Fri, 18 Nov 2011 07:03:14 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id a26so7110159faa.11 for ; Thu, 17 Nov 2011 23:03:14 -0800 (PST) Received: by 10.152.104.1 with SMTP id ga1mr1081018lab.40.1321599794677; Thu, 17 Nov 2011 23:03:14 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.152.41.198 with SMTP id h6cs169101lal; Thu, 17 Nov 2011 23:03:14 -0800 (PST) Received: by 10.68.209.36 with SMTP id mj4mr1825148pbc.71.1321599791939; Thu, 17 Nov 2011 23:03:11 -0800 (PST) Received: from VA3EHSOBE008.bigfish.com (mail-va3.bigfish.com. [216.32.180.10]) by mx.google.com with ESMTPS id h5si886963pbb.100.2011.11.17.23.03.11 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 17 Nov 2011 23:03:11 -0800 (PST) Received-SPF: neutral (google.com: 216.32.180.10 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=216.32.180.10; Authentication-Results: mx.google.com; spf=neutral (google.com: 216.32.180.10 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: from mail19-va3-R.bigfish.com (10.7.14.238) by VA3EHSOBE008.bigfish.com (10.7.40.28) with Microsoft SMTP Server id 14.1.225.22; Fri, 18 Nov 2011 07:02:36 +0000 Received: from mail19-va3 (localhost [127.0.0.1]) by mail19-va3-R.bigfish.com (Postfix) with ESMTP id 2C9446E03BC; Fri, 18 Nov 2011 07:01:31 +0000 (UTC) X-SpamScore: 0 X-BigFish: VS0(zzzz1202hzz8275dhz2dh87h2a8h668h839h61h) X-Spam-TCS-SCL: 0:0 X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-FB-DOMAIN-IP-MATCH: fail Received: from mail19-va3 (localhost.localdomain [127.0.0.1]) by mail19-va3 (MessageSwitch) id 132159969125436_15361; Fri, 18 Nov 2011 07:01:31 +0000 (UTC) Received: from VA3EHSMHS003.bigfish.com (unknown [10.7.14.250]) by mail19-va3.bigfish.com (Postfix) with ESMTP id F2B0B42004D; Fri, 18 Nov 2011 07:01:30 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by VA3EHSMHS003.bigfish.com (10.7.99.13) with Microsoft SMTP Server (TLS) id 14.1.225.22; Fri, 18 Nov 2011 07:02:34 +0000 Received: from az33smr01.freescale.net (10.64.34.199) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server id 14.1.339.2; Fri, 18 Nov 2011 01:03:07 -0600 Received: from r64343-desktop.ap.freescale.net (r64343-desktop.ap.freescale.net [10.192.242.36]) by az33smr01.freescale.net (8.13.1/8.13.0) with ESMTP id pAI72vbY002190; Fri, 18 Nov 2011 01:03:06 -0600 (CST) From: Jason Liu To: CC: Subject: [U-Boot][PATCH V2 4/6] i.mx: serial_mxc: add the i.mx6q support Date: Fri, 18 Nov 2011 15:11:05 +0800 Message-ID: <1321600267-8514-5-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1321600267-8514-1-git-send-email-jason.hui@linaro.org> References: <1321600267-8514-1-git-send-email-jason.hui@linaro.org> MIME-Version: 1.0 X-OriginatorOrg: sigmatel.com Signed-off-by: Jason Liu Cc: Stefano Babic --- v2: Cc Stefano --- drivers/serial/serial_mxc.c | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/drivers/serial/serial_mxc.c b/drivers/serial/serial_mxc.c index dcb4bd1..7d0f288 100644 --- a/drivers/serial/serial_mxc.c +++ b/drivers/serial/serial_mxc.c @@ -47,14 +47,18 @@ #elif defined(CONFIG_SYS_MX27_UART6) #define UART_PHYS 0x1001c000 #elif defined(CONFIG_SYS_MX35_UART1) || defined(CONFIG_SYS_MX51_UART1) || \ - defined(CONFIG_SYS_MX53_UART1) + defined(CONFIG_SYS_MX53_UART1) || defined(CONFIG_MX6Q_UART1) #define UART_PHYS UART1_BASE_ADDR #elif defined(CONFIG_SYS_MX35_UART2) || defined(CONFIG_SYS_MX51_UART2) || \ - defined(CONFIG_SYS_MX53_UART2) + defined(CONFIG_SYS_MX53_UART2) || defined(CONFIG_MX6Q_UART2) #define UART_PHYS UART2_BASE_ADDR #elif defined(CONFIG_SYS_MX35_UART3) || defined(CONFIG_SYS_MX51_UART3) || \ - defined(CONFIG_SYS_MX53_UART3) + defined(CONFIG_SYS_MX53_UART3) || defined(CONFIG_MX6Q_UART3) #define UART_PHYS UART3_BASE_ADDR +#elif defined(CONFIG_MX6Q_UART4) +#define UART_PHYS UART4_BASE_ADDR +#elif defined(CONFIG_MX6Q_UART5) +#define UART_PHYS UART5_BASE_ADDR #else #error "define CONFIG_SYS_MXxx_UARTx to use the MXC UART driver" #endif