From patchwork Wed Feb 7 01:49:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacky Bai X-Patchwork-Id: 10204445 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 F3EF76020F for ; Wed, 7 Feb 2018 01:48:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3E5828D86 for ; Wed, 7 Feb 2018 01:48:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D7DD428D88; Wed, 7 Feb 2018 01:48:06 +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.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 4438328D86 for ; Wed, 7 Feb 2018 01:48:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tflf9ulg7Y2OHIihVYl0UsAw5GA4k6XUSTo/fK3FLII=; b=mbo8NeROAJHr3i HrO8448PMEAaJ43Nfb0+316q58TOqk/tY2/MQgx6uHbrhHr86psaxSybxmxOMNsbJhw/DrZr8L1TI tQsFfeexCE/dHWI4WB53duhZYCUo8XYnX7BlZD7WeAgKJ+u/wXV5qHwuYMkPr08knbwqVq4FgdrDF RvR0j5IRqlJORLzIXx+rz4sMxZzCXMzjEZhGpSGMTbguBkVHPTtKmYvlU42Uly82S3MtXPgKYgVVT AQuqCrTjnQDr4Wo9MBwbJoM+xTqwyoTjRHLUr67t4dWpGEeo0OSYsETpwhubEPzgvJ2dgISOnVRo9 qy/XN+YUgH29F/CD3EMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1ejEqB-00053n-Po; Wed, 07 Feb 2018 01:48:03 +0000 Received: from mail-db5eur01on0079.outbound.protection.outlook.com ([104.47.2.79] helo=EUR01-DB5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ejEpw-0004dB-9i for linux-arm-kernel@lists.infradead.org; Wed, 07 Feb 2018 01:47:49 +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=f/N7vd809ooBLobxktRvWr+L04wRf2ucKDUd99AkMYc=; b=eZppZJmka+POWdeC18b5BeTRI0XClc6fyPPPUhv81j2lPF6IIlIqNpJtBKiiB9f0B0b84EfHSzDTjiHt5G5wWeCsbgAEAsMyeJ/w1STUWqBYYF6a4zU9t9z/Ov/kjziOwCvHBxP4AOIg2xwUx1FOpGYNdmghRh7DphEVfeqCaUA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=ping.bai@nxp.com; Received: from localhost.localdomain (92.121.68.129) by AM5PR04MB3106.eurprd04.prod.outlook.com (2603:10a6:206:c::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.464.11; Wed, 7 Feb 2018 01:47:31 +0000 From: Bai Ping To: shawnguo@kernel.org, kernel@pengutronix.de Subject: [PATCH v3 2/3] ARM: debug: Add low level debug support for imx6sll Date: Wed, 7 Feb 2018 09:49:40 +0800 Message-Id: <1517968181-12765-2-git-send-email-ping.bai@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1517968181-12765-1-git-send-email-ping.bai@nxp.com> References: <1517968181-12765-1-git-send-email-ping.bai@nxp.com> MIME-Version: 1.0 X-Originating-IP: [92.121.68.129] X-ClientProxiedBy: HK2PR0302CA0013.apcprd03.prod.outlook.com (2603:1096:202::23) To AM5PR04MB3106.eurprd04.prod.outlook.com (2603:10a6:206:c::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 4aef34d5-28d0-4b1e-7f31-08d56dccc269 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:AM5PR04MB3106; X-Microsoft-Exchange-Diagnostics: 1; AM5PR04MB3106; 3:N0qwlmJfK2tOYZuuUVwXiatFKVEOS8UrbagsROFaU5dK30n6DIpohcnES/zNOn6z1tKERWa0rBsilSXf4hn6YPWqXwv6O4x1qOvO4x7P8ZPDbYZc8PQv4toey52K9sXpPcsnu1991gIenF7+gN003djV2s6T611Uq/Z71y3TqYtOHhaMCpfpR/JoAlRRgAr/9NVNkYfOcFdoZk7F8I836bu7Dg0scBzJ/6vAFeKosbf0yHA3VQ1LGmf/fvPtI9Bs; 25:vEspAhpho7XZZHYqTA0FPK9XcIrGaA+oCxn5dyatwPIYfMIFtTStCbc7RG/zfMYnn4cslef96wAGmRjnqfxB8UmUibufH6/3SoQ9g9tzIGssmwTPQyCRbLnSlAcpSDKZeCaKlEY1K8tXVZMtp8nuVciTQHBblcorEPE1ppdrkncRJJ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8Jxmb83TBkTZHppipPZgoz77SfKdxcIrSeWwylm3a0MvYo2T0rC6y95rPsg1eHQEI5MLnNoOpKvfXLdaAVeUHjT3/6QMl94ymtAYHktre8a6iIsJ6vbbiXRxbmWviIZYe7kZa7tEK5w134qg88EIsRgFE0HShMJfiYYoNQXOI/JWuEagEcv8ewGXEO1T49852BfghZeai5Fv3kIoS8UMIf8ZvDXWsWr1eLmBrWpNwf7YTUwD8U X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(3002001)(3231101)(2400082)(944501161)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:AM5PR04MB3106; BCL:0; PCL:0; RULEID:; SRVR:AM5PR04MB3106; X-Forefront-PRVS: 0576145E86 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(366004)(39860400002)(346002)(376002)(39380400002)(396003)(199004)(189003)(86362001)(97736004)(66066001)(6486002)(47776003)(4326008)(2906002)(6512007)(3846002)(81156014)(8676002)(106356001)(316002)(8936002)(50226002)(25786009)(6116002)(105586002)(53936002)(68736007)(81166006)(16586007)(6666003)(2950100002)(36756003)(305945005)(7736002)(39060400002)(48376002)(51416003)(76176011)(52116002)(50466002)(386003)(186003)(6506007)(16526019)(26005)(5660300001)(478600001)(32563001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR04MB3106; H:localhost.localdomain; 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; AM5PR04MB3106; 23:RNLVvr/k9MiBJNpr4dGAKV2dN+CfIcHNKkO+/6u0X?= =?us-ascii?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zy3xSb08/9irmYbdzIZzut2FD6BT0FcPIhoI6ayuoa0BdsI0CWBC2xQtXLWK+iH0pXsG/96lH8FHeZcud0HZM+pmbQ0HA5iBzHl3tekRYm0cLZ28KKrs1ew69qo4kZG2R9v+WXGD/ZnRNbOc9cmS8XSEzwf6xlsg SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Feb 2018 01:47:31.3836 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4aef34d5-28d0-4b1e-7f31-08d56dccc269 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR04MB3106 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: fabio.estevam@nxp.com, aisheng.dong@nxp.com, linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, jacky.baip@gmail.com 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 --- change v1->v2: - no change v2->v3: - no --- 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 78a6470..2197239 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -451,6 +451,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 @@ -1429,6 +1436,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 @@ -1483,6 +1491,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)