From patchwork Thu Jul 9 17:16:44 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6758271 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8D500C05AC for ; Thu, 9 Jul 2015 18:28:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A394820647 for ; Thu, 9 Jul 2015 18:28:36 +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 C253C2054A for ; Thu, 9 Jul 2015 18:28:35 +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 1ZDGXA-0004Zj-Rr; Thu, 09 Jul 2015 18:26:56 +0000 Received: from mail-bl2on0128.outbound.protection.outlook.com ([65.55.169.128] helo=na01-bl2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZDGWY-0003gu-Hh for linux-arm-kernel@lists.infradead.org; Thu, 09 Jul 2015 18:26:19 +0000 Received: from BN3PR0301CA0019.namprd03.prod.outlook.com (10.160.180.157) by BL2PR03MB371.namprd03.prod.outlook.com (10.141.89.14) with Microsoft SMTP Server (TLS) id 15.1.207.12; Thu, 9 Jul 2015 18:25:57 +0000 Received: from BL2FFO11OLC012.protection.gbl (2a01:111:f400:7c09::104) by BN3PR0301CA0019.outlook.office365.com (2a01:111:e400:4000::29) with Microsoft SMTP Server (TLS) id 15.1.213.14 via Frontend Transport; Thu, 9 Jul 2015 18:25:58 +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 BL2FFO11OLC012.mail.protection.outlook.com (10.173.160.159) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Thu, 9 Jul 2015 18:25:57 +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 t69IPYG7008556; Thu, 9 Jul 2015 11:25:53 -0700 From: To: , , , , , Subject: [PATCH v3 7/7] ARM: imx: add low-level debug support for i.mx6ul Date: Fri, 10 Jul 2015 01:16:44 +0800 Message-ID: <1436462204-32654-8-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1436462204-32654-1-git-send-email-Frank.Li@freescale.com> References: <1436462204-32654-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC012; 1:W6bpakrCa74jsCOIPR/5nArMAjHx+Yla4AHZ6sohuteW0g+OSoHB+aTA/Oi+jVzAyU+/xDhSuolXtXohaTrTVsV/I0U1ojDp199bnNJUxaClU2t4TWDGVSkYvW/ifw3K5c5D5SKVY1bjWWr3cJWqxmro756VNbMX5H/sWuL4oUT3r0J4kOGpaeok1u9QrCK4FrAOog/NFmZR+7UT1mhgoZ8NGJcy+A4fueIs30NpZHNVztQquZmk5gieav4m0551VaF4ClnhgZ36uEAD4F9/BRCOhsuW+fTd9IY76p+BoS+pL9TCjl0TUpQlRkPkwR+sOOefIdG3MTpYVVoNMKlMIfkr/QICNfhJaVWaqphEG7ju4XPVq7JoFhnWwW80Q7Q/9fs6pmdmt003z/Me2uHqN/ayXILmu/TWwiKgjCtVkIurdVyU9xhmxNiQDCgzPM4T X-Forefront-Antispam-Report: CIP:192.88.158.2; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(199003)(189002)(6806004)(106466001)(50226001)(229853001)(48376002)(50466002)(105606002)(50986999)(2950100001)(104016003)(76176999)(36756003)(87936001)(5001920100001)(86152002)(2201001)(5003940100001)(86362001)(77156002)(47776003)(77096005)(5001770100001)(46102003)(19580405001)(19580395003)(92566002)(107886002)(189998001)(62966003)(85426001)(5001960100002)(4001430100001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:BL2PR03MB371; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB371; 2:AlCt53WqTAWBQICmlR07t2LxHRhfFX/B44Nd0Zm5EsjLbXVEM4mIqaZzaYeenZk3; 3:QpKErOxbeU7hZZJIdWNoUNpg4d5k/HcZVxjYmf2K4RpuKd0aUPKmvWLrwbyK3IQGm/PZk6GIccLVVHaKBA9Y66Fxq4BiGAp68GD3W4Z2bzKIdnwHvTfmX475D9PQQuK/cP6bMQrzzbwCUTTNEX4fGqRCVEI3iC+KrsjqRorMKQj5jxtghFuhG6naJx1IsZb5uDSkEvZ8lXx82WAL0qmXaFEE29iuUjh6JeHDO1NNEPY=; 25:yuNndtjKWDHlsPLwjkuBMuNAPr7NNweU3CrFummsKR90JZxxuub8GLAFYSY/1YboxzlmUTIUynRVPxSkEGhvWeObCOz9dUngYL+DjMM1BPeJHZP9OvS0N+iyQCv/2FojPbCIomW/4WLFY8+JGPXCSvWggeTYOqGFqf/X3HTbecD0qOOdyCZMzurG/HkFLcxpwVK+eHwnXQVKSXv2eGpzBFFy/4APE8QoZSnXd9e5P4cylvSGNEYt7FWJ0WvE5nkkdT5VZbQV/LsTPoOq0cDXzvbZo2YGUyCpIfR858AFTCs=; 20:Xv9UmTC12OJ76a8qgwkBhkGeJ4SGlEGLRb1CXb1S9qWulvIQ2ePJ2tGMQuV15UyumXYzueEbTZ+47ccru18sS0vaHr2PdKqD9UWQE+/vG7lwCzoejSkWGuuY3Mz1Rg0+kF4CaYpZMUTVx36OBgLg6bCofrq91m568s0JXYogjr9ybBWYhXvCJsg/tzuZqWR/+r8w6VGFdqLD4EGaQNNiv8fmWCSJ9ytOVLKefJaYQxj2XG8pLhLEiBbjMFDaF5/pxY3Mhvxubf2FRyhM9FPw0OVKpW8rtDy2gzKxwzcqM1Gp/8sCcPXLgIgtwUounFbhYrOX2k591uxEsPcbgDHGOHyiBans5aUAgzJEG26JPKI= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BL2PR03MB371; 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:BL2PR03MB371; BCL:0; PCL:0; RULEID:; SRVR:BL2PR03MB371; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB371; 4:dw5kp1qy1TNHVp89sdl9m6ZHwLZVWOeA3a7fHX27mH/MLt3gLD9mJP+LY72r/W9q65obXAfhW2/dwB7S/N1AzFcb/CCxf6yxPD/c0+Iw5K4wspOm8KnmPEr8Zci+2gPPXyVa2J7X73L9Oaq2G/CLP9zIipTW3X3knFIJoDWr/kG+h3CwaAY5TyUDAbC1wzFng3tLkzLmCq7jhllcCtVlqvxk/UBTB7s9cJiBDIk+1ZRVfp1ts05STyeR/tbhZEYKuFJcffAD+w8Vq9aslqcgZSaX1qBa12sT8BvABY5iLh4= X-Forefront-PRVS: 0632519F33 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB371; 23:sSwAIfRauRezfFoCoCDPksL/6xeb+kkGeGyCXrPMXB?= =?us-ascii?Q?llesHn5FV2sw0inzE8lPC9ppxrrM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1AWqtjvn3LGwmdlJ8dy2NUkXfcd5ynxeE9Ozepr7hOueGHc+MWHxBJO0nI?= =?us-ascii?Q?g8MhwKv8Zs96ihkmJGqsvbWaYt+RKMpN4o4BxZPmACEQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB371; 5:LeUd3jdGJEw2Eq8j8KxbkdeMwEnPY7tQJvBVPFyt4SrhwoCwBOakilNdLwmSUk78ZqFkI7wg/OfQO8GCHkpaYbCFNrOuBXsQuTwWFEFhxgR2ccdtrlkfSiergwqAksIODanxuDXyDds4w9A+HJxHug==; 24:gW5oR7eG+h4KJPf/r4I8bXmRpbXuPR/nu0x0t4tXScOeayn7oDz1OyO0bXogI0K792+PmKPMpH7xQ0IsFZ/Yzoh6ozATyhzPYpm6/gEKVnM=; 20:gkmBvtB/KAZxE/gdBRsmmVYynAZhr+gXS4KXdAqT6nFHi5hwX+WPoiXdpHfSFw3QmAog8qWZ/ZxsOPdmHiB+8w== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2015 18:25:57.0823 (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: BL2PR03MB371 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150709_112618_697468_95AB4671 X-CRM114-Status: GOOD ( 13.21 ) 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)