From patchwork Mon Jun 12 15:37:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 9781855 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 EFE7560212 for ; Mon, 12 Jun 2017 15:53:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1EDA28294 for ; Mon, 12 Jun 2017 15:53:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D5E0428538; Mon, 12 Jun 2017 15:53:02 +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 3B00528294 for ; Mon, 12 Jun 2017 15:53:02 +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=RkEFCV+t9e837j+q3XU08sIlSoE6nsIbNBGDNKraIRs=; b=PcGCNZFt5GwwZz ldkDlWoqHM/0pGNM22sFmlZ7w497cCg7myEdnruz4IFy+n8VQPBgyJIKIU8ntrjE7gS32gzF9UT2V nAqcWyAN5d2iNNkMWw6f3Bf9Zg059s0nS8MRS5on0Wcg5qZNSItfjqWU24d9GDI5lQb00GNMXZpPY ILkwYO2RV242Kz4mUPgmD/LxcjjCLfMW3kHTsasfjImosSqVP94sdMP/nCvCZWXPXOrTWOvy0kux2 rHCMFVgDdFeVbrFLmy9raY+H9ngAiNYRTaH3fBWW1Tc/m0oFGIMXfkhAh0uKE26vKX6UkgRs0bj5E dQF5Tx9xh187j365dUhQ==; 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 1dKReH-0003Cj-7J; Mon, 12 Jun 2017 15:53:01 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKRe1-0001lc-Br for linux-arm-kernel@bombadil.infradead.org; Mon, 12 Jun 2017 15:52:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Type:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:CC:To:From:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=+U6jNDzuzA2CffEIsnTcq7yx5Ily+DxrYmoiKFjVxHE=; b=W6ngCYp2LiWWXxZ+g78UnS39z jg81eu8Vd5RyrhZayEWLuHAzI+555csDtPSDoDdvw2LllKpA50IqmrTQjFv9ALqvvjvhBGVZklNsf 0b+89D9rQIbuu80rvb8VcA52vL7oCSzkfYYvjKx1ZTL9ybrteRVuS1kT1+E/Vyqu8tjUea7EKfpH7 +O2YdqA3mbAIB/9Zee2YHDXW+kESGGAoG3EcEQp15N3DpxAmXxBU9aFz2V0ajFf0EqfmDU/vEk3PD pMHf5UHxiETsMGsZylXOurI+lO78wC2/1GXvQ7rGgjWNU/hkYW/6yY4DndDU3jbgNjZfky/RrlcE0 xeP7OIA4Q==; Received: from mail-co1nam03on0051.outbound.protection.outlook.com ([104.47.40.51] helo=NAM03-CO1-obe.outbound.protection.outlook.com) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKRPs-0003vP-RW for linux-arm-kernel@lists.infradead.org; Mon, 12 Jun 2017 15:38:12 +0000 Received: from BN3PR03CA0074.namprd03.prod.outlook.com (2a01:111:e400:7a4d::34) by BL2PR03MB161.namprd03.prod.outlook.com (2a01:111:e400:c0d::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Mon, 12 Jun 2017 15:37:45 +0000 Received: from BY2FFO11FD046.protection.gbl (2a01:111:f400:7c0c::138) by BN3PR03CA0074.outlook.office365.com (2a01:111:e400:7a4d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Mon, 12 Jun 2017 15:37:45 +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 BY2FFO11FD046.mail.protection.outlook.com (10.1.15.170) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1143.11 via Frontend Transport; Mon, 12 Jun 2017 15:37:45 +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 v5CFbFsF000563; Mon, 12 Jun 2017 08:37:41 -0700 From: Dong Aisheng To: Subject: [PATCH V3 6/7] tty: serial: lpuart: add earlycon support for imx7ulp Date: Mon, 12 Jun 2017 23:37:27 +0800 Message-ID: <1497281848-12995-7-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497281848-12995-1-git-send-email-aisheng.dong@nxp.com> References: <1497281848-12995-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131417554654927603; (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)(39450400003)(39410400002)(39840400002)(39860400002)(39380400002)(39850400002)(39400400002)(2980300002)(1110001)(1109001)(339900001)(189002)(54534003)(199003)(9170700003)(105606002)(4326008)(104016004)(50986999)(305945005)(39060400002)(2351001)(106466001)(5003940100001)(33646002)(7416002)(8656002)(6666003)(47776003)(2950100002)(6916009)(189998001)(76176999)(5660300001)(48376002)(38730400002)(50226002)(85426001)(110136004)(498600001)(356003)(54906002)(8936002)(77096006)(50466002)(36756003)(86362001)(81166006)(53936002)(8676002)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB161; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD046; 1:/aF44od3rrGTTVQwyF0fXp2TyehDsgy/R6/OqLDI8muiDijlYStsnJ3m4ubkZ6GSdh7kpfi453jWnjNXQ1eBhy4XnNmMvUe1plg/X0CR2zeZXIKnKXIwGT+a1LU/T/sHUzWIwiCPouuWwaCxrlFy7Gp/i3ZLcmJNVh4nxL/S0DaMmtgXnBoyc4vpxZkUXwQGD6axMHuF0L+b+iZ4yD9rq4EmelbW13k+ZtV8v6deBpodyoG3NFYWpK5FFx7WetM58aWHOhUxDzWtig1Yomwuoq8aYVxz/xDAaBD/TRYwGVapPMxyA1TQU/TqKZYjWYxwANmDkL7sZH5ZAYihK8ubtzu9Tl10C4LuBhx9Evpv0emdcMBYN0ZFCYRLE+OS48Ou9qyGrLD2fJ54MmZut4ZDQ+LJN/Ln0zJReeN2g3ryQYPu9m5PAxA5Fju/B0ZwL1HRkdbJfOGrBIfMzS/clcRYV9TEF/u4Ja6hKgQEDQpIC0jeAocwPbD3Dkj3s6aez/ZXyt6HS4KzUufO6GKeqz7mEr4NHrBEgfp8TJyqWXU8rZnU1BCOOtERcnxxMmV37M4gUW76fSUee1jFjU/K2VFWEo3fM1+C0wPjqCbhcMSYe26gShrMWoZ+LoB9PCy1hkkTa0FaMsHfHln7FtJ/LGFXwucmtirYUWMMAVwbJf1kDiGCxuFIeNlx+RZYmo+bnMUx MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL2PR03MB161: X-MS-Office365-Filtering-Correlation-Id: 9fa3908e-a752-4619-1af3-08d4b1a8f8ec X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BL2PR03MB161; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB161; 3:8isUBcl3l4FrjScNV0uoqQ9cl+ySmFewLo+dIIeXifqsHGzMugF7G6SDTLcdcJPXrwheF/dP6FIoWsmgjlKPFNBbnWFX9TBjdarsx7B32pUU6UKTw2IYbnv5DFFpzftfNcRUTOXo16qJ0amxWrFV248Yd3tRVESpQDk5HX3rwBWrlG7rZF4eZXp8JMaWVxU7WJOjGQn3pQuhwVvadYgEjH3eHhR2MYEyQRI93FimtCi5zSo3SxplHD0iLRV0CmrB3VxTmxSTfNJ72pJR6ffmfYRpuU5Vf/VYJq0zs+KatYwVXz5eAcgAJZHzGAEXcSUnl4dAdhhyL2N94NvV4o6jH0n8np88MeUjVluDsIE2ZH7KOXBZpt+B8JCnPh1e7QISrCtMKoVvaVtHEeQEbZ4tiIirdtfD8sOyMQDvSC3VcauCgUecFBIL7c/ZaMnyH3nk; 25:TL1Nq3fZ+VcuaexTWqG2g0ijccCOyt1fxLePJSdoaovz6mKqyidBCrzOzhSZy/dbiN533GQtWxzLuBHvrZxKAW1LUoKH5k1B9FXUJC9jpTsGZZ2r9u48FxbQaFmaWUY733km8L62aa1nr5NN+ITcwZbF8DxIGw82t0WdMpcQl92LxCzGmF6EEgO0v0KQKAjWxPgUtO9tvgFxFL2AvoeErL3qt5jbK04+LgrJ2K1j1XbPt+nI2WVh2ph6UJGvBH+zLLq6RdmOGIPtwx7XOeT0LZY0tILOzG4ScdalGzfD+iX0w0ywKoYLpC1uczfkqmURGVwEc+U4SoSrkL75gCad3UhLCsSNImwvrjiblN0CpAVXVm9rkYgPQZnyovVOiPskn/Qz5XiC3sWHuXQREOUqJLFttGriozAkcOTfUKSBTNzcE4BN+ABwbMHmXfPwKJ8vaZ96gweXvl2218c2f1nYN+yrp7JoXjIrDqZ4NzAbAkY= X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB161; 31:5QF4bPhErePYofaDKWNKflQ36UWTqMs2ihGBDDjCdafOg+ymRyDURRLKfY/lHrcnRR5GL6L4nhF9H49ImEj8IF1qaqWdW9Eu7PcScftLG4rhgPsN3zH0Ns4Sfhtb95XWAeiBEJzg/aszVS/WSsWq5zAlLNOqLDI5Mx3/S5BzakKvfgP4FR+PIry1al0IwdXiCPvPtMy1GplvypJw4kJxqJm9pikaEIoXmuR2Tqo1nG/7DNYE/AjGq4zZWIU0N15f1OUHR3szVjW2Vq8auAIJqg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123561025)(20161123559100)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123563025)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BL2PR03MB161; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BL2PR03MB161; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB161; 4:Zm+AorGF+lX6jST+u7U7gHvIxXm0dKQ2pMlNayapKDU?= =?us-ascii?Q?0PsIWh5hs+Z59k3xMr+2Jk/YOulnxzvHqisuhri69TayL86iqraIDHG5xWHy?= =?us-ascii?Q?XE9K5Yv68A2Xm8TPc6XuopF23T/pE1Pe73Ku2HYofCx7AExc4INw7y7BxpIb?= =?us-ascii?Q?a2YZM3muiUujnYRBUSmjX3r4Gubxt3EfpwhXnjgQzHRErqzrt76xpnOOfa8y?= =?us-ascii?Q?lgc8fq+BHTRVsnzHO3zDzbyzR07br1QSCzr4fyz/CrFk6FFLCmjXzzShxPL+?= =?us-ascii?Q?t2aKp7p//GoSYcc10uXy18l++6T1eCj27QkCQMFJp0Q6Kz8lAYXoKMoK36iF?= =?us-ascii?Q?+wAntthQ5Egsmg0AXy3q2omJ9k/yl2BA9K301otnsVzt2Api0tx2+KnFPQji?= =?us-ascii?Q?sFe8utjpIRIYtnrzq+5kb/hCwVvdynO39OOccwoTRbWvctP9xRgZURTnD1cK?= =?us-ascii?Q?XZdEMaxqxKDWXjhKD9wtB1w4tTA/wBrL0pO2EnrTFViM/vj2/H1Kmu+0WtKh?= =?us-ascii?Q?CgDFwmJmAv8VzPTk4ctCAJzXOrI9YO0gYBP3ORwJQ1v5DjK98E/kqMuMujQ2?= =?us-ascii?Q?zwT1Y3aM0PAhtQdPGXzUZBbkN10KHgGwFYJYPAQ6cKrUR106czSCYQZPyUEM?= =?us-ascii?Q?I1f5/XGjvb6/JMIro3XlL+GDz9WkWLNlz6NURfYHGIDpxqAreUfDw+eGAQGH?= =?us-ascii?Q?uIXln66ZjnoSSnLI0/ev2y4xeeLwWPGRoTY+ozwHCXOWPQQQLonoSnmMTwTr?= =?us-ascii?Q?SL6LvpZL++8C2F8eNdY7nfcdL87sGy1I2SjhyPtn31GBCbHcrqkDWeU58DgE?= =?us-ascii?Q?H7MbStDNHK4F58Sp3kMGZo1gVUn33WqIaVfRvJbcZ+7NgWiocYtqTam+WNgp?= =?us-ascii?Q?sAeazJ6jCokkNB8cPp0dxbpuAeQ1hxSDjfaCm7b/fEkoPRUrCAt3zf6nf1SD?= =?us-ascii?Q?GOP7sNANea9NPsCINqOCLDNVdPyl2ZteSwyktc0g5yiQ+1KV2+wcEoibOD/l?= =?us-ascii?Q?WHmrogUFuH5mYrq4G/CdwE69JBC5ZYDnvuhARAXxzuZu75DV+krLH5A91vYu?= =?us-ascii?Q?9kGe8lYjUj28wiQ+8iAyVEAtny/EzHyK7TqMRSUWwLcfM73NlQriTkKpseNB?= =?us-ascii?Q?/vhJgGei1CZS+61L16ldXEnr48XbEFL6ksUp4pNdMLzvv6VajPfVMHS2q31C?= =?us-ascii?Q?tJVB3FVMUK+tNKKcBSMrxRQyy6ah0jLeZCn9M1pKfCqDlgq1CZdpveD8WngU?= =?us-ascii?Q?g2OAXAS0kXCmNPabpUpJyKwNfNrlVcZr2LrzC?= X-Forefront-PRVS: 03361FCC43 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB161; 23:fSMMRVFkk6kEyydv9U8pv2/gBL+y4GdpdtNP8C8icq?= =?us-ascii?Q?K+F6CF+niE9rB1XUu0ownuOKRAzi9E4sZiVnanZq5rDs4opSx7mrfQB2VUiY?= =?us-ascii?Q?SkLbK2+687HEMO6FXcSjGgQvAgPWfGDVobgp4t5aX1CxMyx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wIfhOm2uqRg9ILBQ8BTH20haN7t9vLXg8N++UqGrVR1gySAqT7XnPJ6woXe3C358+Jzx2qgdItrQs9cXy2UxL3IeCTxk4ULsUV9Q5Us4WyaGaH1bBeRpIionPnhVWsqvUqG7f09U6rdrN48ByFkBw0SqHSVm+8WKOrkjo2GSEB8oLpUZgienlnNk1dnfzL4lvD2oljIiSndmi0QdzRAEaoDAJY+RvhFaCsbdxzhyB9B/quyKrIJoZ+/q6EDB57HjW8BBgSCo0Oqjt/LBqgtNebwGozHROcenIsCdT50ozyVjUzGveDP74i7cDn5zqXFhyi0koYy+mWM6xp54Lu1SPJwaI0PQSt6JaP594pMzGnh6F+rfA/IsHsFhRaXCz+S5BP0wCmLdJISqOqK9tP0L7peV2eeFkDHPOa0E+6vBx2uz1105+nldRx7JMrXLQTzbnB5BDFQ24wpXF5QbTQ==; 24:ok2R9uYDxg+6vRpIC1kOFVioPonu56wHIIbbJ1gbkLzgIpAiZO2oxxWDPuwSA2Ni5NO8wPJIs+oNIPVuq0CX6TVU3nlmFvVcTmjc3IHocHM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB161; 7:CmokdcU350HNsxjT408XLQuQIK/pNgY47+bLWmrItA4wbVKq1tGXzq6fMBaYWf8jRzosOfBPSbxXdoZwqBJcyRS3JwcCuqMQUkeDB7UWLw/cLN5M8q61oTcLWEUdWoj4hn/kKidak8hvUayIY2EU9sfc6XFwi9eSBgk+iluKsqbY34X2LEkYnbGbX+wrts3ndgedtSicZJBu4Gvu28lXZ5esbcJ5rv18Wz3vonQ1uFKnMDU4eChuIVf7FtkWEEkVfcXu1F4ZJzG5/kSLxKDPM9lVaOO97IXQrrJQn32ZPZQ6vi8pm0fd0slNaqlEmr70A8K9ixQJPrtaYnHULGQkpA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jun 2017 15:37:45.3055 (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: BL2PR03MB161 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170612_163809_254374_A4E8C3BA X-CRM114-Status: GOOD ( 15.92 ) 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: nikita.yoush@cogentembedded.com, Dong Aisheng , fugang.duan@nxp.com, dongas86@gmail.com, gregkh@linuxfoundation.org, yangbo.lu@nxp.com, linux-kernel@vger.kernel.org, stefan@agner.ch, andy.shevchenko@gmail.com, 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 correctly initialize the port membase and iotype for imx7ulp during early console setup before using. Cc: Greg Kroah-Hartman Cc: Jiri Slaby Cc: Stefan Agner Cc: Mingkai Hu Cc: Yangbo Lu Acked-by: Fugang Duan Signed-off-by: Dong Aisheng --- Change Log: v2->v3: * use standard port->iotype to represent endians v1->v2: * updated due to lpuart_reg_off removed --- drivers/tty/serial/fsl_lpuart.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuart.c index 9d05e53..6a725cb 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -1982,8 +1982,21 @@ 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; + + device->port.iotype = UPIO_MEM32; + device->port.membase += 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);