From patchwork Wed Jun 17 15:39:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Li X-Patchwork-Id: 6626911 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 C472B9F399 for ; Wed, 17 Jun 2015 15:48:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D9CA920869 for ; Wed, 17 Jun 2015 15:48:29 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id EBCCC20866 for ; Wed, 17 Jun 2015 15:48:28 +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 1Z5FXH-0007vy-0c; Wed, 17 Jun 2015 15:45:55 +0000 Received: from mail-bn1bon0115.outbound.protection.outlook.com ([157.56.111.115] helo=na01-bn1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z5FU0-0004NZ-QH for linux-arm-kernel@lists.infradead.org; Wed, 17 Jun 2015 15:42:34 +0000 Received: from CO2PR03CA0032.namprd03.prod.outlook.com (10.141.194.159) by BY2PR0301MB1637.namprd03.prod.outlook.com (10.163.28.139) with Microsoft SMTP Server (TLS) id 15.1.190.14; Wed, 17 Jun 2015 15:42:09 +0000 Received: from BY2FFO11OLC006.protection.gbl (2a01:111:f400:7c0c::153) by CO2PR03CA0032.outlook.office365.com (2a01:111:e400:1414::31) with Microsoft SMTP Server (TLS) id 15.1.190.14 via Frontend Transport; Wed, 17 Jun 2015 15:42:09 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11OLC006.mail.protection.outlook.com (10.1.14.199) with Microsoft SMTP Server (TLS) id 15.1.190.9 via Frontend Transport; Wed, 17 Jun 2015 15:42:09 +0000 Received: from shlinux2.ap.freescale.net (shlinux2.ap.freescale.net [10.192.224.44]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t5HFfbMJ006016; Wed, 17 Jun 2015 08:42:05 -0700 From: To: , , , , Subject: [PATCH 8/8] ARM: imx: add low-level debug support for i.mx6ul Date: Wed, 17 Jun 2015 23:39:29 +0800 Message-ID: <1434555569-8237-9-git-send-email-Frank.Li@freescale.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1434555569-8237-1-git-send-email-Frank.Li@freescale.com> References: <1434555569-8237-1-git-send-email-Frank.Li@freescale.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11OLC006; 1:/XhOT0VUKH4466Va0dP8ewdNXqEd5nRoJ5wReuYigqY4yu5aCcuF/QqJk78Pco+vpDgY6fX2n9Icyn2dxj4wr4iKTQ3BR/r7EtKboRNkU4Xum5zeQ55zQwDrLzO2vLlM5E/p3ctmi7Wgw4kVc3vV3yQEaVOE/VVmOv4PN+FG7A8RsNeGT7wAJNd0E6t/y8pzJPyqriP719eNp1AHc3ayN7h0sdyxP/bHRfGaRKCUx39QWgLToAAWyiE0x5UsSPAbSbUSFWuOIrPQuodAA3azxgyC41BUoeaLNzeNj56FbOfderbWZQr6q0L4dPvvWYZAe/wOWdo8FDHtiw+W3Qni1/tjUVwh+i4+uz9ATacN45o= X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(77156002)(46102003)(92566002)(50226001)(6806004)(48376002)(189998001)(50466002)(5001770100001)(5001960100002)(81156007)(62966003)(47776003)(107886002)(85426001)(50986999)(105606002)(2950100001)(77096005)(76176999)(86362001)(229853001)(104016003)(19580405001)(86152002)(2201001)(87936001)(19580395003)(106466001)(36756003)(4001430100001)(2101003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0301MB1637; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; MIME-Version: 1.0 X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1637; 2:ovVbGp5yoaYOqn5F9x+CGxj1zoE4dGcYhK255XhjYoUltxSAFIHk8EgvHLEqzp7+; 2:hzSFvKARBop1TI/IZ8etykAUNFW3yGFC+PuaIcjRYfB25I99lYt6vBQ/wm3Ep+KMeAXzEBX6kDU+J0SU/2L4vP/que3rmjC7cB58juEaCcvOXaVEpIqiQeL9N9xYE/YMyz1Hx7msQW7mQ6AmCTUnGkQXhjiXrnKAbvwJ7cIJDj/dPcCb34EDCTU1WDRfa02hRfxLtqxsm32sLhoFpwADF+mUOALkWoY6+2vTSC9lFcw=; 6:qZwvVRHQYN9NJ+ezoLPHYUpiyYWLJjULsfTVNtuZ/EpKqhtzIsT/xLl5nZ3gTcFhSnsNBJ+YfjEXkCc8wzAQm1PMMAdzgT3zYnfx/EamTwkELklS0NkHjm0ojOujK7eC4zSgesxCaHVHtiORfQfx9cP5y5D7TtFLiUqah98Au9qPCtVp1EmkRFJRJIGF/hPhleHEIW66zQrefKvtTFaMNfJAfKo+dKAs3W+Ov0I48lXJX5cj8bltcn7qHK1wjLXvhXXy/NiUL5DPbfL7cjiP1n0QdIGK2PIEYhhzSJleHelgZpl6Sf3gxluIzidhtqxAdhm0H1lfAaI2ZjGefbf2kg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB1637; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(520003)(5005006)(3002001); SRVR:BY2PR0301MB1637; BCL:0; PCL:0; RULEID:; SRVR:BY2PR0301MB1637; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB1637; 3:HIkHZGgF1QBnl9RvQ/o3cwoGhSaP7bAK0RL0fFWNo37EVOoeNziOOe9kMhiwNvF660uAAzLcKlbNBDT46Mteb9ph58YZdHWQKyEPp3qsGeHnxtk0eT6Q9tcCe2g/t+vxwyMgSyzw/94NMY2eAA15dflTO7MTanAjCNeH0GCwfuTkyU+0FB0o/67u2yfYOlvzlbsJGpWqr2hc9ygII7+wKCpQSXVpJ5aKkxtpGJPiLuyBImm3+9nNXHmBB65KAn1NJa3uszgll8YosO/RVxnGNIjHAuHBmcGGzFmEJR1S5pMbgXTHuTFR3C2ZKbMphPpJ X-Forefront-PRVS: 0610D16BBE X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB1637; 9:n7J+6+YlbUgVLoIqtXO77EdeV3faVny8jfUPLXaV?= =?us-ascii?Q?IOJ0DJJYAAJuz68qGKkMTxRM6j5jV+nzN6Pun/OvimQRdrXGF5w4FTsaeFm/?= =?us-ascii?Q?S3qTqfCfl4sTQwfN5ecGCNxgPpjtkZZSGMHod3Vaw2l/hW2m1xWFgBdMStnv?= =?us-ascii?Q?JP1wGIbBlRgXM0YRX1zqMhXr/Oh5y+WPAq/YHN3CqDaBddhdjyygHq+jyUl9?= =?us-ascii?Q?+PspYpY9EullWu90Fp4bqaRoYslv1+LxBXCeTJYKFSaLv/QNCT7YSkiM5/KY?= =?us-ascii?Q?ebCFIYKqR4V1OwXUYLpJ9LeFwlF3Ef34kM//Weuz4sIlxqFimCi2syg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F5U4BFa2dJY5E7F1ZWSAkpxorMny56NC+AVxgLqeWQQsPW188XznJvTokiz4=; 6:pQC0jWUAcmDaabXeH5QM1LdFBQWhaXJNyW3xkfADXZkY10st7wjqVsaWs1F26lvK X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jun 2015 15:42:09.4277 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR0301MB1637 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150617_084233_179081_EE1FA5E2 X-CRM114-Status: UNSURE ( 6.74 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) Cc: devicetree@vger.kernel.org, Fugang Duan , linux-gpio@vger.kernel.org, robh+dt@kernel.org, Frank Li , Anson Huang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.8 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)