From patchwork Tue May 9 07:50:47 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 9717171 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 A6B0B60237 for ; Tue, 9 May 2017 07:52:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 978042097A for ; Tue, 9 May 2017 07:52:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8BB3726E78; Tue, 9 May 2017 07:52:36 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID 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 E50B22097A for ; Tue, 9 May 2017 07:52:35 +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=c1IxyYvqQif0ZCaCGT2grDnce2wqnk290ejZOsOE/14=; b=aEL7M4wOPtyyiH xfhATF0RtNSQfLMvTROnxM38ULm/wIryhQFVEo7pEyva+55JJw38PrhvllQYPPMb/9bS8za6iMVHb ZHZWhrxWRkWptWms7zEZvQE2jp6z6e1vHOgsB6PtiimmxVIlJEObBPoyga+ITDSz6bAQavrZYmttk 3aOU76p24yeaesBhX64gFF7f47oa9Kwpn+sYnYfbE62AzsxA1Qekqn+/Jz3HsRIJN50WepyWs2Mbr cy2IcuuSydniSlCWh/Z8m7O9GfolNs49p4i5oK/8GxuxTzev72eA2GC33Pyd4qQAUgdWvbPMR4vjC klWsUNJxLZXTN4KXkFxw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1d7zwg-00071t-T4; Tue, 09 May 2017 07:52:34 +0000 Received: from mail-sn1nam01on062d.outbound.protection.outlook.com ([2a01:111:f400:fe40::62d] helo=NAM01-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1d7zvx-0005n2-Hc for linux-arm-kernel@lists.infradead.org; Tue, 09 May 2017 07:52:11 +0000 Received: from BN6PR03CA0061.namprd03.prod.outlook.com (10.173.137.23) by BY1PR0301MB0904.namprd03.prod.outlook.com (10.160.195.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Tue, 9 May 2017 07:51:27 +0000 Received: from BY2FFO11FD005.protection.gbl (2a01:111:f400:7c0c::153) by BN6PR03CA0061.outlook.office365.com (2603:10b6:404:4c::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11 via Frontend Transport; Tue, 9 May 2017 07:51:26 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.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 BY2FFO11FD005.mail.protection.outlook.com (10.1.14.126) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1047.9 via Frontend Transport; Tue, 9 May 2017 07:51:22 +0000 Received: from b29396-OptiPlex-7040.ap.freescale.net (b29396-OptiPlex-7040.ap.freescale.net [10.192.242.182]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v497owRg015749; Tue, 9 May 2017 00:51:18 -0700 From: Dong Aisheng To: Subject: [PATCH 5/6] tty: serial: lpuart: add earlycon support for imx7ulp Date: Tue, 9 May 2017 15:50:47 +0800 Message-ID: <1494316248-24052-6-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1494316248-24052-1-git-send-email-aisheng.dong@nxp.com> References: <1494316248-24052-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131387898860130550; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39840400002)(39450400003)(39860400002)(39850400002)(39380400002)(39400400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(33646002)(86362001)(4326008)(50466002)(81166006)(105606002)(48376002)(305945005)(2950100002)(110136004)(76176999)(6916009)(189998001)(106466001)(356003)(54906002)(2906002)(50986999)(8656002)(7416002)(77096006)(8936002)(53936002)(2351001)(8676002)(104016004)(50226002)(5003940100001)(47776003)(498600001)(36756003)(38730400002)(6666003)(85426001)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0301MB0904; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD005; 1:endxWOC0tNNNg1OOYhz/jVizOLp6d21s092oxRpFOJzbhlZ/ZtbSs48cMFj9s58p+x8RiqwTnh6T7WibmbRB1QRpSi/Qefg99xT1VK8FbxWIDebX3r6q3Gxwgv7Id1CLB8AXi4py3FAorvzQITk2GLw68aJ4d7J0S/Ub01Nicot5NUiHFJi/2ooJSKANY58d7CsVMrE3p9l7WG8Sff40T8v9gv0o62T/T1BPlc3kLWq6JIRQvpMzwIAItvrCGxSkphV6fb1hWpBJNsdqSRrKYOsdDa9ra9cP/UCYf+/YZGRHpUjul9GojNxBA5NfL5yLlaCXbl1EEwgB7cC0JxQqOI8l+fHdXr0IQmuB2+WUdn6qRI+euF00apcGyffM6c8D4tZ6mS4Kl0qlTf0B0QkukviNW9Mu9IWiV5i+dxN0JPGJT13Ot8vc0BXeYOrPwZcJGNF85cjGPLr4SBfkdYSRNbNVIWBH09gQD8iKUv+G7ZDUEzTcbncB1An673Qp3UvE1hUSMhPEQtsnXdEEqKXI3XxCPeqdB9z/HG2jclAVq5J5Xg5SAiVA1KNKvfNJdD1AwssCarzVTJQrwAq7olURZSXjUlTNJSm1YrS1RvIfbYwqXVNuiL9xEBjGBHCy2sdo+WKzaSlwDucmA4PEHE9V0kfZI1oD25Hkl8XcZsu12Yl0nsO0CVjLhfWJpkqQ23+XyTcd4kKGVs9m6nJgmcmODoC+am2xmqLxrM/jwaNkXQg= MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 61c5f305-d0b9-4852-6f97-08d496b031cc X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY1PR0301MB0904; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0301MB0904; 3:R6lvAp30Rq8w9gowYWIMODWOWbHDO2WQlMgbHH7c97iw9G6F6k5ZHpuwez9hSnH5xEpBZZuK+UTFP7K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U+pA7KXBpdMYmWfcp73k7+j6aFgekkxz7VkvjiS9AjkfZa0n6kTab6QnN9G/8nCWjMM/fYBrAXBhjCw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13017025)(13023025)(5005006)(13024025)(8121501046)(13015025)(13018025)(93006095)(93001095)(10201501046)(3002001)(6055026)(6096035)(20161123561025)(20161123563025)(20161123556025)(20161123559100)(20161123565025)(201703131430075)(201703131433075)(201703131448075)(201703161259150)(201703151042153); SRVR:BY1PR0301MB0904; BCL:0; PCL:0; RULEID:(400006); SRVR:BY1PR0301MB0904; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB0904; 4:VH8752NKuaU0RhOxaUFpx1EAqqGYHMM0KKH0cJPn?= =?us-ascii?Q?CUbbmemEzarRPgK1jGHejW+QXrErRRaA5GAUBK/prSToBt6Vfho898NYDbFi?= =?us-ascii?Q?pfan2wX8uExfTxEsGLS90HKeLO0kwm7yV+zeejpmO5Mmr/anTeVQ/TN8TCiR?= =?us-ascii?Q?HH6OJYV3YShD0AImaS6zdQEkE9w+AA0d6+HfVB0hyvlGDUXrj3ZMwmsfuNb8?= =?us-ascii?Q?s4Pd1w1mB9fNtyepn2nVFQjnuNEe1+JjrdvTTyyGUgVQdUaGfvo8MiuTj0XX?= =?us-ascii?Q?kEZp7NRUblcAQZsToLTfoofb/t8FFqFcCX9vccS7aBlaOserBkL1/8EegYfy?= =?us-ascii?Q?Bx+l+cltaxVh30arR0znSifvnYzmhL695qxUYVmB3p0ki3e6/US1WyrIM9rq?= =?us-ascii?Q?dryUVzCoCt9SPg7o5iVMzZP3eEd2YIff6XJJEOrk+rCFVsx2TDZHSAXE9sUw?= =?us-ascii?Q?+2sWmd77S11svDOsJ4h0HX8rNn14m83s1+lB2x914DPSUuNR8dqbCScsz8Ia?= =?us-ascii?Q?ufXyR1minWRru9h5QZboP8WlbX/B1mDUDpR2jf4s9Xzp2VWd51sA0g8tqlfU?= =?us-ascii?Q?xJIMvtHEdL4PENFXJQzRlZ1O0Mi2uizYOKozqmh5L9lKGUl3LkfFgyTclecQ?= =?us-ascii?Q?/QOdwDqJHdBad3hKRBYtrSfVF55iavmDotn+UCXnf9lV0+EOnklm9J9FMdOn?= =?us-ascii?Q?gRhwq1Pw0V3a2k8vWYgyU+6UqkELid1BuN+HZLw2jYpgpiVyw0Of8J0CZGD3?= =?us-ascii?Q?H/nrZ7u4kGGnTP+S2tV5thi9Fj8H2fzhyUahHEVsRxxNEBXq+ZJy2Mt+RAiE?= =?us-ascii?Q?4BA8ZvMi7FAXIOhBxdHtffHhwX3KKGw8Shu+zFcwufRfM9S/RIKiuAtH3Hky?= =?us-ascii?Q?z8sRznBZpcRiknzbysMiOQSZqDfiZrOL9t0JtwSdYeK63HuLiSknE/3fQA3f?= =?us-ascii?Q?QrHRqVsrfE1VyZOJjep3BKjS6PlwGkKmaxdeFYXqVg=3D=3D?= X-Forefront-PRVS: 0302D4F392 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0301MB0904; 23:XAx8ljYIiaBqyca2Te9cehWmQoy15oN1YTEPEIT?= =?us-ascii?Q?PaHr3QvjDik0hhaOrTGO7PDY3ZmE/4Roqk8798ZCQKTglq++zO0kOqVJEBNB?= =?us-ascii?Q?vDcCUx9a4d0LjX4Ll8e26cCcJeUlbdiLWtqJdDOb79frOtuzFLV98YUUGhd2?= =?us-ascii?Q?gWoqtEryPCVUk3T2QuZM3JY/BGpGMOndbI5dyrw9Fj2Bsi1m0Y9PIfw++aST?= =?us-ascii?Q?iPgdrWRL439Rx4BEUjq74zUlWSEjh24xb0Rjqxmf39ly1/KcNk+AXDqEQllf?= =?us-ascii?Q?L5q8OUpaMg1ED67VSJlZ/qFHvrESNro7dca53xFYWwkAZxe5RlAbU4RHXZcW?= =?us-ascii?Q?StEV0vkQCotg7S3oDZF9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KqjJIAw+IhC9S3kCyQMUDY9b8HBilAuhMhD1RQEpV32HRvyegmTgvQ8lddlUxxjXtrxdogJKpfFY/OzMySN5s3RMte2+SjB/BF5drBSOrxg+pTvXEQHgIaDYhb+/pbsO4P9OyuLL7HX/GfnnYT6ofh0M1vBqGwQB4p3RxbHqTITYfMCyUpxzF+2iLlMgYYC8ScmAXzHazDgioCljX80PMxj5SozzRVPisUkiY5ayU6DEVZPrTK1yhwz0EoQg0kES+w== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2017 07:51:22.2534 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0301MB0904 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170509_005150_577464_98E2500D X-CRM114-Status: GOOD ( 13.11 ) 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: Dong Aisheng , fugang.duan@nxp.com, gregkh@linuxfoundation.org, yangbo.lu@nxp.com, linux-kernel@vger.kernel.org, stefan@agner.ch, Mingkai.Hu@nxp.com, jslaby@suse.com, 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 earlycon is executed quite early before the device tree probe, so we need configure the correct reg_off for imx7ulp during early console setup. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Fugang Duan Cc: Stefan Agner Cc: Mingkai Hu Cc: Yangbo Lu Signed-off-by: Dong Aisheng --- drivers/tty/serial/fsl_lpuart.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 1cdb3f9..5b485e8 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1978,8 +1978,20 @@ static int __init lpuart32_early_console_setup(struct earlycon_device *device, return 0; } +static int __init lpuart32_imx_early_console_setup(struct earlycon_device *device, + const char *opt) +{ + if (!device->port.membase) + return -ENODEV; + + lpuart_reg_off = IMX_REG_OFF; + device->con->write = lpuart32_early_write; + + return 0; +} OF_EARLYCON_DECLARE(lpuart, "fsl,vf610-lpuart", lpuart_early_console_setup); OF_EARLYCON_DECLARE(lpuart32, "fsl,ls1021a-lpuart", lpuart32_early_console_setup); +OF_EARLYCON_DECLARE(lpuart32, "fsl,imx7ulp-lpuart", lpuart32_imx_early_console_setup); EARLYCON_DECLARE(lpuart, lpuart_early_console_setup); EARLYCON_DECLARE(lpuart32, lpuart32_early_console_setup);