From patchwork Sat Nov 12 10:36:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Hui X-Patchwork-Id: 5084 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 5D9A123E0C for ; Sat, 12 Nov 2011 10:37:36 +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 52798A18B0D for ; Sat, 12 Nov 2011 10:37:36 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id n26so6568949faa.11 for ; Sat, 12 Nov 2011 02:37:36 -0800 (PST) Received: by 10.152.162.10 with SMTP id xw10mr8904370lab.12.1321094256096; Sat, 12 Nov 2011 02:37:36 -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.40.7 with SMTP id t7cs81354lak; Sat, 12 Nov 2011 02:37:35 -0800 (PST) Received: by 10.50.12.227 with SMTP id b3mr16166519igc.24.1321094255320; Sat, 12 Nov 2011 02:37:35 -0800 (PST) Received: from mail-iy0-f178.google.com (mail-iy0-f178.google.com [209.85.210.178]) by mx.google.com with ESMTPS id t11si3338500iba.69.2011.11.12.02.37.34 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Nov 2011 02:37:35 -0800 (PST) Received-SPF: neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) client-ip=209.85.210.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.210.178 is neither permitted nor denied by best guess record for domain of jason.hui@linaro.org) smtp.mail=jason.hui@linaro.org Received: by mail-iy0-f178.google.com with SMTP id j38so6138337iad.37 for ; Sat, 12 Nov 2011 02:37:34 -0800 (PST) Received: by 10.42.155.133 with SMTP id u5mr15954968icw.8.1321094254583; Sat, 12 Nov 2011 02:37:34 -0800 (PST) Received: from localhost.localdomain ([116.226.224.96]) by mx.google.com with ESMTPS id n30sm20139112ibl.4.2011.11.12.02.37.27 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 12 Nov 2011 02:37:34 -0800 (PST) From: Jason Liu To: u-boot@lists.denx.de Cc: sbabic@denx.de Subject: [U-Boot][PATCH 4/6] i.mx: serial_mxc: add the i.mx6q support Date: Sat, 12 Nov 2011 18:36:28 +0800 Message-Id: <1321094190-8108-5-git-send-email-jason.hui@linaro.org> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1321094190-8108-1-git-send-email-jason.hui@linaro.org> References: <1321094190-8108-1-git-send-email-jason.hui@linaro.org> Signed-off-by: Jason Liu --- 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