From patchwork Tue Dec 27 09:47:47 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 9489137 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B877662AAF for ; Tue, 27 Dec 2016 09:52:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A884B1FF26 for ; Tue, 27 Dec 2016 09:52:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C8EA20951; Tue, 27 Dec 2016 09:52:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 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.wl.linuxfoundation.org (Postfix) with ESMTPS id 96AEF1FF26 for ; Tue, 27 Dec 2016 09:52:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cLoP1-000622-CO; Tue, 27 Dec 2016 09:50:39 +0000 Received: from mail-ve1eur01on0077.outbound.protection.outlook.com ([104.47.1.77] helo=EUR01-VE1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cLoO2-0003y8-EX for linux-arm-kernel@lists.infradead.org; Tue, 27 Dec 2016 09:49:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Bxx0RpDal0efjTEltHnt42ZgAxpPuXPgaIh8swQM0Lw=; b=WC5MP+/1kO3gxJN4S7IcFmjBhVOSHMB3R6qCGE9oF0IpW9KqT5VuwQ+3bZycU7HUfwj3brYz0URCY5BFTF7T/9tAZJIQ33gtZekvtTayod1GJTu6z+KPTDye+Lb0JuBnDT4K9DjtQlGp4nI7C7h6N9bwfsaLWByR5uOA3dqlcSc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from b51503-01.ap.freescale.net (192.158.241.86) by DB4PR04MB538.eurprd04.prod.outlook.com (10.141.237.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.803.11; Tue, 27 Dec 2016 09:49:11 +0000 From: Bai Ping To: , , , , , Subject: [PATCH v2 09/12] ARM: debug: Add low level debug support for imx6sll Date: Tue, 27 Dec 2016 17:47:47 +0800 Message-ID: <1482832070-22668-10-git-send-email-ping.bai@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1482832070-22668-1-git-send-email-ping.bai@nxp.com> References: <1482832070-22668-1-git-send-email-ping.bai@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.158.241.86] X-ClientProxiedBy: KL1PR03CA0008.apcprd03.prod.outlook.com (10.165.63.18) To DB4PR04MB538.eurprd04.prod.outlook.com (10.141.237.28) X-MS-Office365-Filtering-Correlation-Id: dceb3335-e504-4de4-6d7f-08d42e3d9fe8 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DB4PR04MB538; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB538; 3:RbR8qV7pC2T/zvo+JER1/QoxV41g+Qyxm8vpz7HutLPrcQZ5nIVTH5rLkHfj8DmtXci4s2Mp090GKSFQZHE2WGCamZMGWM7OeH0WGNFwAM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UylIpUxqktKwQ/Sq7is/2ufFeLFgq6ZQjGxsYl+l4DlDn7GBua5MQJgozx6Z4BCDaAfaDKE6II6r+qnh/7AlfWrYXyA0j9hLBbaCnHF5njalErHrpwzA7GTZroxYKVgkNeQqBxktnn2IRaV0AmlqqNYNkCL2347l6EebaohRSlegU5NRhYUx9osOZBp7CauL704c5OTYLWjubdEBIu5BktHtqwNZazoKHmUwWyrt5Wp3NrJU8sdcZdyskugGpFLHWfXhFNGKlyXQjRQ+Ccy1upPwemomm2+IxpkKhwc1UzHjlz0fWR9eI3XL8m6nmDUB9INkL/Ba3SUumhSOu6JhsB3Juu+qg+jjD0BK4JaBRPkKrQ7hvVS3k718Jopgjjer2uXDyyF+ICi17nTywsyy80pHv X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148)(6047074); SRVR:DB4PR04MB538; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB538; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB538; 4:Lvx35Z+twZToD0mGVMVtQyD22m6j9MWVjpM11xtKfa1bdEpJjRsDP3ayXw1ofVaXJ/3sElwh+K6Cg4hrF1wCvt4gmIbUgfWIFT+s7ppipEDNx4HJpMt+T0Oc0BU4lZdlMBhTvDIShFC5epHaHN+0mQlF3/CqvoXBi6sZP/BB7EtSVwkrhVRbukg4EUfR1ul7vdz8vFodQoZjl5C8otoD8JIJxg0++bh09Rsd4syix0owDpVGkr6r88ur61vZhbEdxZFRHurtT2V0St0k7I7Nhcnw9q3AIFU6Fef2dvJAhDKtYuYBZMolU1zwAr9f3KCqUKk/bDKDxbfYeSWpY8UqOQSbkR45wlZy4J7+2UZLkNQZBVtnLQmWJxWPoHlDWkv5Pqjzfxm5Brzg8tfhStgXgqUr3KG5s5D96AL42pVSbO2B5m1Jsrq5EGJtWSjUpsiHrICxbBAlAli9lGhdoBPt70HkBDK/KBUvETYGDB/sWP4q0qrXoFElYwbKqV4e2Jaa1oiHzUrR+yaveaRURGZjuZc7EXRb169OtY6qFlhML3W+ifIiVwMn0JAMMfMow2ldWxYdpuO5ykO9BveIiB8BRigaOPUt47Q0yY/1fBMu+mVKbYZ8qhBUYCq2LwgxwamMVeR2hHGM9uWoQfsxksV/9g== X-Forefront-PRVS: 0169092318 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(39410400002)(39850400002)(39450400003)(39860400002)(39840400002)(199003)(189002)(7416002)(5003940100001)(81156014)(106356001)(86362001)(2201001)(105586002)(5660300001)(7736002)(25786008)(68736007)(39060400001)(81166006)(6666003)(305945005)(6486002)(6506006)(6512006)(38730400001)(50226002)(2950100002)(8676002)(6116002)(5001770100001)(97736004)(92566002)(3846002)(33646002)(2906002)(4326007)(50466002)(189998001)(48376002)(42186005)(36756003)(101416001)(50986999)(76176999)(47776003)(66066001)(7099028)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB538; H:b51503-01.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB4PR04MB538; 23:RbSe+6Jok4BhipsBOnWbHAa1d/3pKmYM2u8hutu4di?= =?us-ascii?Q?yGlPcqYc0NLrIqvtKYPXD8Yfw0f8DwzDAnP87p/Tm/CjiiarNApqmmx7GrXx?= =?us-ascii?Q?tkN9bbth/OvtwiKu0fBgmeM/zj1vx7GMC5a1rIYvRKhYH4DhIUj56DVT9Vz+?= =?us-ascii?Q?0jrA/S43DKWHGgHa11VfWU7VpiERymA2hha53Q78odqt0gZpuZW8t2iLsrFI?= =?us-ascii?Q?sNIbOSiu40ggPZoayi4eE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-ascii?Q?R9EECKZrE8V57WI3Y/abm3sxOWhiO9kjcMPrCnhCk94JO6B4t8CDuiS2c5jj?= =?us-ascii?Q?NmZ3XyA+bkMWEA8nv9UsrIbxQcbyqYnAbjif+0J/5apmILL7cCmsVOO+18qe?= =?us-ascii?Q?yivmP5Vc1VSX3qjxOs098nKLralM1hqJ+NY3IX?= X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB538; 6:qqlBZ5HTEFla6TLDn9W6n7407fEUCcN645RNY2AtrYhzvYKFW+bkeQ/j1GiukBwAVZdqynIkgL2jdM2Yz1Bkr6mPEiXaIUDKyAjWfE60pdTofr6JSGT0glB7qcjPoPk01yt16xA4BpSF8IkVLqZMKQ35iLyxFucKFmvkSlDtOnyTrgjtopG4rl7Tud4pVOVpUskChvr9kuTWKogmV0IA609ds9o9D7dilN8ALbRTyDMk0DG3osXJNaX8qL5PBuxpMauBm2lcgUMjqNCxHL32NwQpHK1teQ5jIaNQZDfUvIGkcK1Xz2xyKnww3V2cfFB3DJI15bh6Aiuf/ohFeECMqsor5jSwUJ/XBza6jfShNgwK4xs1RmzuRldjUqNYqKhKxamB57kYHJgVRkW/p51Ec3roX02Prt4lUW0Ukt9DWznh+92+ijg2oN0wXBVIF5ZmeQ7ufwKInOr63rASo2wnxw==; 5:5R8ntg0OUYiNP+0VZAoq8VeDMYal5AyelYw9rsEz+OJxnwqcp7u3EUWY9r9P8sqpjAsJNl5MkCmHDH+nfuDHqkFq93CJK6GmkhQabasH8FNJpTpYdsoJxpW18a/5u9X6UJyYL1UakLR84ZJzu6bLZg==; 24:ew9U0UhaFawDM+pvGXt3ZKolDLfV+WHQ2WGi2SD8jynXcdvQhXBlQANlKFhxYJeLgpkvGe99ZeRK7u2yBXeNOKeceUfJsybJoPNlE1VxZEU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB538; 7:Zhzb1xzRisTXAXONd+gY1NThttDjTlIQujdHyeNWDmcv3ZDVi3BeZlT1Dh3MTHKOSlaDIHUyDzr3Bb/2YVMwp+MauGvvcaFRnPAxRFgz69KV2dsLvHIIJzttOL/dpvl+b/RTpUHnaEhZaI2xWCwy4ZOgxU+6GcNH+PEAa/W0yaSflYTSV60dYptBr/nhg840tZCbLJQ8HMYGyAWkBz8vj+3hie4dnaNnw3CmCA1mS4hwD5vuvoyUearZUy0xRFL5yVKskf6ybFVn1nwS26HZbTxqZeeTBf9/ZN4GI43IWEKCMyr8YdFnHBOpO2Aoy5ZPpUy/APmZBXBYAJXClr5vRcfcQFWs7g9NGtd5Hbu9243QYvFGitZu8iQLb6A6FnVplM2nFVROS9N8T2/lDn37buY5171YyQKe+x2T0v/lpmsA9460bRuyaaFztRUcZfykCkuq6NDDvYuq/Xk/RkhL4g== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Dec 2016 09:49:11.7917 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB538 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161227_014938_874035_447E0102 X-CRM114-Status: UNSURE ( 7.22 ) X-CRM114-Notice: Please train this message. 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: devicetree@vger.kernel.org, kernel@pengutronix.de, daniel.lezcano@linaro.org, linux-gpio@vger.kernel.org, p.zabel@pengutronix.de, jacky.baip@gmail.com, fabio.estevam@nxp.com, tglx@linutronix.de, linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add low level debug support for i.MX6SLL. Signed-off-by: Bai Ping --- arch/arm/Kconfig.debug | 9 +++++++++ arch/arm/include/debug/imx-uart.h | 10 ++++++++++ 2 files changed, 19 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index 408540f..d52d48c 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -405,6 +405,13 @@ choice Say Y here if you want kernel low-level debugging support on i.MX6SL. + config DEBUG_IMX6SLL_UART + bool "i.MX6SLL Debug UART" + depends on SOC_IMX6SLL + help + Say Y here if you want kernel low-level debugging support + on i.MX6SLL. + config DEBUG_IMX6SX_UART bool "i.MX6SX Debug UART" depends on SOC_IMX6SX @@ -1374,6 +1381,7 @@ config DEBUG_IMX_UART_PORT DEBUG_IMX53_UART || \ DEBUG_IMX6Q_UART || \ DEBUG_IMX6SL_UART || \ + DEBUG_IMX6SLL_UART || \ DEBUG_IMX6SX_UART || \ DEBUG_IMX6UL_UART || \ DEBUG_IMX7D_UART @@ -1428,6 +1436,7 @@ config DEBUG_LL_INCLUDE DEBUG_IMX53_UART ||\ DEBUG_IMX6Q_UART || \ DEBUG_IMX6SL_UART || \ + DEBUG_IMX6SLL_UART || \ DEBUG_IMX6SX_UART || \ DEBUG_IMX6UL_UART || \ DEBUG_IMX7D_UART diff --git a/arch/arm/include/debug/imx-uart.h b/arch/arm/include/debug/imx-uart.h index bce58e9..24e60ce 100644 --- a/arch/arm/include/debug/imx-uart.h +++ b/arch/arm/include/debug/imx-uart.h @@ -81,6 +81,14 @@ #define IMX6SL_UART_BASE_ADDR(n) IMX6SL_UART##n##_BASE_ADDR #define IMX6SL_UART_BASE(n) IMX6SL_UART_BASE_ADDR(n) +#define IMX6SLL_UART1_BASE_ADDR 0x02020000 +#define IMX6SLL_UART2_BASE_ADDR 0x02024000 +#define IMX6SLL_UART3_BASE_ADDR 0x02034000 +#define IMX6SLL_UART4_BASE_ADDR 0x02018000 +#define IMX6SLL_UART5_BASE_ADDR 0x021f4000 +#define IMX6SLL_UART_BASE_ADDR(n) IMX6SLL_UART##n##_BASE_ADDR +#define IMX6SLL_UART_BASE(n) IMX6SLL_UART_BASE_ADDR(n) + #define IMX6SX_UART1_BASE_ADDR 0x02020000 #define IMX6SX_UART2_BASE_ADDR 0x021e8000 #define IMX6SX_UART3_BASE_ADDR 0x021ec000 @@ -133,6 +141,8 @@ #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6Q) #elif defined(CONFIG_DEBUG_IMX6SL_UART) #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SL) +#elif defined(CONFIG_DEBUG_IMX6SLL_UART) +#define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SLL) #elif defined(CONFIG_DEBUG_IMX6SX_UART) #define UART_PADDR IMX_DEBUG_UART_BASE(IMX6SX) #elif defined(CONFIG_DEBUG_IMX6UL_UART)