From patchwork Thu Jul 9 18:09:47 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6758501 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DB9A19F319 for ; Thu, 9 Jul 2015 19:22:56 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 02C89203A4 for ; Thu, 9 Jul 2015 19:22:56 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ECF2520701 for ; Thu, 9 Jul 2015 19:22:54 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDHMK-0007kY-9T; Thu, 09 Jul 2015 19:19:48 +0000 Received: from mail-bn1bon0143.outbound.protection.outlook.com ([157.56.111.143] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDHLr-0007Po-JD for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2015 19:19:20 +0000 Received: from BLUPR0301MB1633.namprd03.prod.outlook.com (10.162.214.139) by BLUPR0301MB1602.namprd03.prod.outlook.com (10.162.214.24) with Microsoft SMTP Server (TLS) id 15.1.207.19; Thu, 9 Jul 2015 19:19:01 +0000 Received: from CO2PR03CA0031.namprd03.prod.outlook.com (10.141.194.158) by BLUPR0301MB1633.namprd03.prod.outlook.com (10.162.214.139) with Microsoft SMTP Server (TLS) id 15.1.207.19; Thu, 9 Jul 2015 19:19:00 +0000 Received: from BN1AFFO11FD035.protection.gbl (2a01:111:f400:7c10::179) by CO2PR03CA0031.outlook.office365.com (2a01:111:e400:1414::30) with Microsoft SMTP Server (TLS) id 15.1.201.16 via Frontend Transport; Thu, 9 Jul 2015 19:18:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1AFFO11FD035.mail.protection.outlook.com (10.58.52.159) with Microsoft SMTP Server (TLS) id 15.1.201.10 via Frontend Transport; Thu, 9 Jul 2015 19:18:58 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id t69JIatg011658; Thu, 9 Jul 2015 12:18:55 -0700 From: To: , , , , , Subject: [PATCH v4 7/7] ARM: imx: add low-level debug support for i.mx6ul Date: Fri, 10 Jul 2015 02:09:47 +0800 Message-ID: <1436465387-5992-8-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436465387-5992-1-git-send-email-Frank.Li@freescale.com> References: <1436465387-5992-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD035; 1:ipuUOhxWvmPScbRbDCGMrdhH8uyfppFRAEetCH08pQL8+qLEHTFnrjKsEZDQwqdRRhPY/Nf8HuDeTs9qMDZaMzMnxl5os7UPPDnXkR2FBgk9thP3+JUa4Smbm9bdYxNMaT7oXo06X76tzqd9y5t0CZjMIja92dNSa8qgv+ABnz/G5f7FPR5gYGmT3q1DU3wfbgIU67frS49IMU8l9/gbKlD5c7VZeT6w8VmRzRhFxJzakM6fVJDp0a5lhltTgSLGJ4LW9TiLz0yArojm7U189yBaXuEtXx92gQ+g7p4lirsSHSV4/HyUMNoUNghOLoGe0yrkDmTKvv5tf96ZcU3DAw== X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(5003940100001)(85426001)(5001770100001)(36756003)(19580405001)(19580395003)(76176999)(50986999)(46102003)(107886002)(5001960100002)(86362001)(48376002)(189998001)(50466002)(50226001)(86152002)(2201001)(77096005)(2950100001)(87936001)(62966003)(77156002)(229853001)(104016003)(6806004)(47776003)(92566002)(105606002)(106466001)(2101003)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR0301MB1633; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1633; 2:L+Mkp0UAkPpmHOPXRvM11cIXxC4rsh4nA6dho4zBs2WdYnNmvozGWE+z5F4ywHm1; 3:f1s7pkBhPIqDxnRzyufTMtlsUTXpIH4g5167xi5+ObTNTWc4aBPffvNkzzLN/1RZtfBYAZjiYGY77Sp06IEO9Y7VOXargX5YsT95OendDa/uOn7od9J1BoXw+jDPOrMqtM0jNLyqh+rQ6TQ0mbcamZ4NfbDNl7Hg3lX+9IhTkPFWooMDIVGNVJvjNqkmHHsZOpcqwn4i+7P8yWNpYz+v5JhLi+CFz79F8EuZ0VvfaXk=; 25:pAGlQY9gSLyTgEDe6zk/zOhf5O2Wwmz6uMsFVII8yQp5DZ2vy2BqSc3l428r3urLfeC0JEDlKpbt9S7gfhuDi2qVZdsB9cdSHMESzCxeB7e239NZzMwRfHSW9URM1p9nOb2C14aVWrVUa7PcKbjX5EqJ8PTG266x7rtUK3GfHLaqMepy8PrFYDXpSq605CsV2PwNewmpFce/c/MBYwa2Uew7kT8b1sd/bhLdx+dBQD7neZJp2Yt/eQ1724Q4KpOnzDfdoqtgoqyWwvvjQQGVxA==; 20:+B2m2qLeNRQLaPiZAD26TpE6y2efvfYsYB5FtsQ71E+f8v4DiwPfOxUg2sAh++hf9iicDmGeWYbeoSaJijo2oPo4IU3rX54qnvSoxf1/iQ/Y6AvV4zqHZVFYPgy0lWFZpEoqwMaexSUX0CWfi8nb/3p7kzj6BlUI8rDIdA3weIHifOjlJ3+GkkG58Jap97lmqqehrLyj17dIjKWlbII3t4aq7Ck8+nhZ106odxBvHh41CKU1xdeoeZ42fFwTs5pOMI2Fll47GiPCj45LgVcPM1pBauwk9pzkOB7drySYUnubesCIkSXEOEWHFL+aL1oamZFiP3VgYlual9zQN8OajX0HgyhUezAwTqdGeW2RpAs= X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0301MB1633; UriScan:; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0301MB1602; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:BLUPR0301MB1633; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0301MB1633; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1633; 4:x8DrDm3lzjzHpk3OZbjwbxJOb1WVp5kvRf9yAvOef/sDJy1DFea/oLefEb8YC6aIZjLSvUBQozr+J3XCFwcHoZuYeT3gtJSypPiZmDcOthOlO/9eK18+egQCUMO1yOR2YCAKXklLMNMuWSFhPZxajSqn63fIG3hnF4Z2njkYeQhiOKOToqa5ObUp30uZxm5Zq6dMgypb3LUBr1Ass89MbFKGCsgsVS9LBlGFa2WmHm9Hnsn1Mh42Bc8cQdPvzWv4/oVN1pb3eSX9NKYqR99W6Xe0WKy5k/NNObhSIGUKbX8= X-Forefront-PRVS: 0632519F33 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB1633; 23:UvQPEezjFpEpXpMpZkJSsPweI5jEygcY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DKO2o0sEcEoo1L71zWI87UJJ?= =?us-ascii?Q?vUl7hcRSBOqQ4stQi8XepLSPhk83LkZYrG2TWyveuqKM1Xtza7pE9Q4W0Q5n?= =?us-ascii?Q?fe1Q=3D?= X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1633; 5:rFbYJ8BGSOZP6rINb+oSjjOSlyic50Wh0H9AlfhsmyJ1r+mgooQayLjH9skvvIi6bN+KwzPghgukGiu7khhLTP1dQ/6cRLDI8ZKL3bMccZ6rDlZdrpjXmoYpVlf8QnznUfkuSSFkKIHFyIUihklB7Q==; 24:e6yCPc/p6j04HYNG+k5y7p+rQJOdNEl7zH+Yut7vRWSL8kLKk+bhHd8U5USgwf5trCCpOPWpFhZgq/2WOPpV0AR45W0T+SBx3g8OU1TOAsg=; 20:nDOFY+D2Q7a/oEnUm1x3yjuyhWKp2Ob/KQFinOkHmREkwoCBicIYQjAQtNyt+IEKZBlMQBfVRweKzsBm92tK/w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2015 19:18:58.9146 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1633 X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1602; 2:IARx53rteXnDL9PjWf1/uX3pZwS0qmDNip0PDI+xUmFJrYkRA62Z8bIHJBMn68xf; 3:LObps4G+vrMfJbez05F4wwvKWroHTfcyU4CV7aqUN+w6pA2av6aOPYRiBw5Qla9sV7GEsMhfhqYnd86FIwtS6gIieF9SuVLqyo8awH3rq3qEoAm2UfiCU7M+QUCRuXHpzz4cNIWqQzbBmVDJ0UOVLfvZM/pbBqzTogFkde4BJcHPscIQViYoC04aIpsMNm4mUQhEEIf/jCh4DRkzpM778OI9zOqnlttryOm6OxU1njc=; 25:aM3uYB83Ec3Qirdq7YaFbL3CsMeWhED22rGVQxc/JjdyvAckEnX+NA1F0s2I2Kq+fjFtF1JRzTSaJkkdmyVMboKAU6nafLgxGZ73C/sAKHIu0a1qr4lKtzqx7a+Nzw/uvpbzxB+VR4ZuC40DbAUKnEqarWmcmImpOCwFV5kAlKRn7Xvu3i9GT6GIxWxX3BYMPLfVc3AAc+UZyg9GcDkDyZVOw+Px6TwJLJfBxW1CAuF/cOnk6Zc14SStoyeg6MvOPcB1vIwsZjaHkZdQsr/KpQ==; 23:MWDqDD2Yn1E/h2q/9EgETIGYeS4nuZrqi7Z2xp4YNBTL5uJa0r3zPDaFKVIBT6Ntk5R7wMJFk+aSkJSiXmhyXDUA/fmy9ditk4QkbwSX8eugWYTlTA3Vl2lxVg54GcPeT7+WhkJDuNdXKaQJLKbBlHudxRmWROtcA4yPxKyed5rQlcKJ3+0Zzu21B3KEZLFWYQoduOED/02flTaH2DrFrpRyhnIdJLsUHfFB+/c1b4ZiT4og2wv2FXRkzFgZTEQD X-OriginatorOrg: freescale.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150709_121919_857096_E297BC5F X-CRM114-Status: GOOD ( 11.97 ) X-Spam-Score: -1.9 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Frank Li , Anson Huang , Fugang Duan Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAD_ENC_HEADER,BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Anson Huang Enable low-level debug support for i.MX6UL by adding the debug port definitions for the SoC. Singed-off-by: Anson Huang Signed-off-by: Fugang Duan Signed-off-by: Frank Li --- arch/arm/Kconfig.debug | 9 +++++++++ arch/arm/include/debug/imx-uart.h | 13 +++++++++++++ 2 files changed, 22 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index f1b1579..f21daa8 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -411,6 +411,13 @@ choice Say Y here if you want kernel low-level debugging support on i.MX6SX. + config DEBUG_IMX6UL_UART + bool "i.MX6UL Debug UART" + depends on SOC_IMX6UL + help + Say Y here if you want kernel low-level debugging support + on i.MX6UL. + config DEBUG_IMX7D_UART bool "i.MX7D Debug UART" depends on SOC_IMX7D @@ -1269,6 +1276,7 @@ config DEBUG_IMX_UART_PORT DEBUG_IMX6Q_UART || \ DEBUG_IMX6SL_UART || \ DEBUG_IMX6SX_UART || \ + DEBUG_IMX6UL_UART || \ DEBUG_IMX7D_UART default 1 depends on ARCH_MXC @@ -1320,6 +1328,7 @@ config DEBUG_LL_INCLUDE DEBUG_IMX6Q_UART || \ DEBUG_IMX6SL_UART || \ DEBUG_IMX6SX_UART || \ + DEBUG_IMX6UL_UART || \ DEBUG_IMX7D_UART default "debug/ks8695.S" if DEBUG_KS8695_UART default "debug/msm.S" if DEBUG_QCOM_UARTDM diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h index 66f736f..bce58e9 100644 --- a/arch/arm/include/debug/imx-uart.h +++ b/arch/arm/include/debug/imx-uart.h @@ -90,6 +90,17 @@ #define IMX6SX_UART_BASE_ADDR(n) IMX6SX_UART##n##_BASE_ADDR #define IMX6SX_UART_BASE(n) IMX6SX_UART_BASE_ADDR(n) +#define IMX6UL_UART1_BASE_ADDR 0x02020000 +#define IMX6UL_UART2_BASE_ADDR 0x021e8000 +#define IMX6UL_UART3_BASE_ADDR 0x021ec000 +#define IMX6UL_UART4_BASE_ADDR 0x021f0000 +#define IMX6UL_UART5_BASE_ADDR 0x021f4000 +#define IMX6UL_UART6_BASE_ADDR 0x021fc000 +#define IMX6UL_UART7_BASE_ADDR 0x02018000 +#define IMX6UL_UART8_BASE_ADDR 0x02024000 +#define IMX6UL_UART_BASE_ADDR(n) IMX6UL_UART##n##_BASE_ADDR +#define IMX6UL_UART_BASE(n) IMX6UL_UART_BASE_ADDR(n) + #define IMX7D_UART1_BASE_ADDR 0x30860000 #define IMX7D_UART2_BASE_ADDR 0x30890000 #define IMX7D_UART3_BASE_ADDR 0x30880000 @@ -124,6 +135,8 @@ #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) #elif defined(CONFIG_DEBUG_IMX6SX_UART) #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX) +#elif defined(CONFIG_DEBUG_IMX6UL_UART) +#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6UL) #elif defined(CONFIG_DEBUG_IMX7D_UART) #define UART_PADDR IMX_DEBUG_UART_BASE(IMX7D)