From patchwork Fri Dec 2 06:39:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 9457911 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 E1F3660515 for ; Fri, 2 Dec 2016 06:41:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7BEA284EF for ; Fri, 2 Dec 2016 06:41:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB93328503; Fri, 2 Dec 2016 06:41:09 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97D0F284EF for ; Fri, 2 Dec 2016 06:41:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750774AbcLBGlH (ORCPT ); Fri, 2 Dec 2016 01:41:07 -0500 Received: from mail-he1eur01on0086.outbound.protection.outlook.com ([104.47.0.86]:30560 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750750AbcLBGlG (ORCPT ); Fri, 2 Dec 2016 01:41:06 -0500 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=NA+m6Ly4ypT/1tlHcd0gstqUESWZXFPmxxn4G6zT8TvmPRBqtXJWShwvLUFQpin01jAi7+z6UnUrps8o9OQWM/oVClHWMe/kKZUuoGuqMFZTlNjJj6zcSDU2JyJBGt1TjpA0W9NxwuJllOGy9e12PbNSnxHZOexgEAu7WKVYYDk= 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 DB4PR04MB537.eurprd04.prod.outlook.com (10.141.237.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Fri, 2 Dec 2016 06:40:56 +0000 From: Bai Ping To: , , , , , CC: , , , , , , , , , Subject: [PATCH 07/11] ARM: debug: Add low level debug support for imx6sll Date: Fri, 2 Dec 2016 14:39:30 +0800 Message-ID: <1480660774-25055-8-git-send-email-ping.bai@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1480660774-25055-1-git-send-email-ping.bai@nxp.com> References: <1480660774-25055-1-git-send-email-ping.bai@nxp.com> MIME-Version: 1.0 X-Originating-IP: [192.158.241.86] X-ClientProxiedBy: KL1PR03CA0025.apcprd03.prod.outlook.com (10.165.63.35) To DB4PR04MB537.eurprd04.prod.outlook.com (10.141.237.27) X-MS-Office365-Filtering-Correlation-Id: 3cd995cd-6899-4c47-8001-08d41a7e2f81 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DB4PR04MB537; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB537; 3:BwPlEWHetCtgZaX6DisXB0yO3rzj98WwoSmOR49gkXFWkro9Jcm4QoWHyd6r9SfRr6oYnmwODrZIH2MqaYzPJ8O5YDvSNxE2IXzn/jgKWm1t2xNZuiIITto83UGcJvHuy0jSbpKnsnj7CJ/TloNb5JRVUv+uliFgg6dVWWljuFhYsbhtL39Y25Ymxh1yjdoAxk0VQ/dkp/h+ZGqyaO2SMvZzMtX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/RjYhdc8EufM5bxoa8fKhrAMwW+MgsMxtjDKBTo+CL3zVFNBbbj7jf0Zw3oKWB10hCH+3LpT8HELWL+LS; 20:2HuBlX+1vV99HSE2WcaGRojAnM2PL0amkLvat/AUk4tYJkyGXP4VXoMEpmAojmU42gqetY+B8SH3NBYscjDswpqZ+g9JH4E1n4Zkc/tCUP4WxbliE+2eId8L5oaNlBCXBM4vZOf5uADzZHN/a+uXIhy3B5+Rjmfw67JZCeL05pLNxrnvxiFSFoBjyHdDt9GVZhHXdRpFbsAFHUks14vYvHBi9qgq74WcoEwsf+/HQcJQQomq5T6H2k9rZek2bt2bLMJWslz+WV25kswjHxTaKiOdHyPVw9hLXGDSbUUmyTc0N5JvlJfZMnxJzV/NPht08vA4VP+aCKomnMrckUdGYwkj/I1XnNo1nOK3zFapTm3JoizLKSHxcXWnuNFQbgVdLDtLUUcs7NWDwdNBVIgNawvNvHAcHJ23X24Px0hunVG7mbsFeUFcAQxZkcLZIq/CnDd3ubEDH9GznlIuXI4Mm+tc0joLtevcuYbe5PYSGPhczKfREMzjfd2Grx/NlF2i 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)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(6072148)(6047074); SRVR:DB4PR04MB537; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB537; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB537; 4:MgnF64vwMf04V9LLUIOVrsdsi58AzrxyEydIPT3jl3NxrCMO1W6vXP0ECy5CmbMDhPyPDSIZbdklKWLKzVrpUf9dCRH2PWdIno3UWSYGObIScJabaxSWF7LWM0OJvO2UCFjDOb/rOxFnz59udR8s/laah9ZkU30Z+3kcg0Pr3Jjg2LK4azdYfjKxbLQRnJDD634QChhjPYuNC5QUdKVOJVym3pJjoMsa3OyGbbetoIqtxEKlZBYR0TcbUQvFNZ6i/EgmFAKBYJrwmVYB6W98RIqmLuho0Rl7ph6+KyhUJ0Ayc2Au5yIoVuNCuWmdmdpPuGVclAu5mdewmcV5qFEl2XjdkoFBaVGwUCskJxZVw12IvExBFdWPC6ESNGLgPXe7F2d/7RKce7rZwvHJlQPLwf16w531wy7anKzD3j+mgWYZhg+6Cnr4i6zp3KcR/Q/y2Ke/SJXSgq1PqruYYKh9Cr4vpVOukchoF8rTqwRSUiTYvJyr9WVrNp/5QEHPv+VYgOyRElkDpjgZ6IQVrRzGKVnxXDvnUBMSFhveWzVbxy8xhTX6zGoriktBcXOEc6hMBvpecLPLBW1Obcl6Autr0rtnQJ06WBt1/9576kbj1qfFGqbqkhugEWJwRI6b2I0n+f90L6hEe4iubmJvzPSDTy/sUaaPA6qlK19/cLsvIis= X-Forefront-PRVS: 0144B30E41 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(6666003)(68736007)(42186005)(81166006)(101416001)(2906002)(8676002)(97736004)(2950100002)(5660300001)(105586002)(3846002)(36756003)(106356001)(81156014)(6506004)(6512004)(189998001)(6116002)(48376002)(86362001)(92566002)(50466002)(7736002)(305945005)(50226002)(4326007)(47776003)(7846002)(7416002)(38730400001)(5001770100001)(33646002)(2201001)(733004)(39450400002)(5003940100001)(6486002)(39410400001)(76176999)(66066001)(50986999)(7099028)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB537; H:b51503-01.ap.freescale.net; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DB4PR04MB537; 23:/hHz13f4tAMF5zG8LVUkVCM5Qi6hSCDGCMVGAPc26w?= =?us-ascii?Q?tGs1B8bi9ob3M0Mu9AxKV3nViGzrMaKSHh5SPAPq6OrZ5S+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+RxSqU/9bIYhWf+s8KPLe6ZNwIYpwOV8da1T5Dg3ZqwWSFzh8ES5UQrs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB537; 7:2oipEWX3ww18LU9wpLa/symI5wgQrHGfnEhoNSpCuw1RDwPbnFtBwvwgVKGCZMRRAZysTtq7QqcRrP/m7/vN7BW2sFgO68736ZWLjx3x6gt64XtbMj2yJ+tPDixBOPOykJhfWRMzB1pqDCtoNSYNGcPzdhbTUlBjx4gY6YvOZftHsMwWQj6aL6ShLwtHQ+B01mcjoWVPZ4KK7RCDOXl+Xkc/xLpLB+0t8nmDJk2q9bASbEfh9mwDsU5kj5IzDmDrxtY5HLlTpb6EoIwaI84ganR60JDrcXiWR3YePTHi2ZExkl7fYElQAt5dXCEm65NqoWPs8KdyE6ArJWz43/4rKM6YOdmd1DWNHsKWl1JMdcqNge5PJs2ngBIKIuAccP/5IXsqFMNvhSoFNeKealXyh9CTFAzks81PwG+jW/P71ccGlul8qV3mF11OC9e5Ef2PeTN5fKwzml0ANaHcch+vTA== X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2016 06:40:56.9980 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB537 Sender: linux-clk-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.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)