From patchwork Tue Jun 13 02:55:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 9783025 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 C29E3602C9 for ; Tue, 13 Jun 2017 02:58:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B66852858F for ; Tue, 13 Jun 2017 02:58:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A9CCB285A2; Tue, 13 Jun 2017 02:58:07 +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 16B592858F for ; Tue, 13 Jun 2017 02:58:07 +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=bC794fmYgylVNSFEk4DwfPmHIH42lRblMBYMbMya4KY=; b=Y1ceV04e4GRRge eZmtVUZw03PEXpAhZMbHOO4Vj4QZaH5M/XRbScP6ljhfKeKhQvrqCy7I8elYGDHMu16BizauuALOr eknLYTPtaXuFUi3NdMkaXiii8nkA0e5qjnlc9R3WSGMAp4KWxu1+LyLi7ugi9c2A0QN19RTOrXvan 3Gi+U+PP3WnQlDKRJgld4607lZGDs+bIEjb0u9Wt9yVtuRNVCgX2X2aSsDf7rhQbLql7H34lSZnQd u4/3XBk9ZUlV7+GtNGb/M8Qzne4IQ6O/JeM9O3Nkg9V5lWJueyv6ZYTPW+IdstBUh9MsSx5o6EEqX NQCMxmzU3mXZZIJHjM2g==; 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 1dKc1t-0004gE-I7; Tue, 13 Jun 2017 02:58:05 +0000 Received: from mail-by2nam03on0062.outbound.protection.outlook.com ([104.47.42.62] helo=NAM03-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dKc0J-0002Zr-AQ for linux-arm-kernel@lists.infradead.org; Tue, 13 Jun 2017 02:56:32 +0000 Received: from BN6PR03CA0028.namprd03.prod.outlook.com (10.175.124.14) by BN6PR03MB2785.namprd03.prod.outlook.com (10.173.144.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Tue, 13 Jun 2017 02:56:05 +0000 Received: from BN1AFFO11FD025.protection.gbl (2a01:111:f400:7c10::161) by BN6PR03CA0028.outlook.office365.com (2603:10b6:404:10c::14) 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; Tue, 13 Jun 2017 02:56:05 +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 BN1AFFO11FD025.mail.protection.outlook.com (10.58.52.85) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1143.11 via Frontend Transport; Tue, 13 Jun 2017 02:56:05 +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 v5D2tZTc012328; Mon, 12 Jun 2017 19:56:01 -0700 From: Dong Aisheng To: Subject: [PATCH V4 6/7] tty: serial: lpuart: add earlycon support for imx7ulp Date: Tue, 13 Jun 2017 10:55:53 +0800 Message-ID: <1497322554-24463-7-git-send-email-aisheng.dong@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497322554-24463-1-git-send-email-aisheng.dong@nxp.com> References: <1497322554-24463-1-git-send-email-aisheng.dong@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131417961655302950; (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)(39860400002)(39840400002)(39400400002)(39380400002)(39850400002)(39410400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(54534003)(199003)(189002)(9170700003)(8656002)(50226002)(106466001)(81166006)(33646002)(8676002)(2351001)(54906002)(189998001)(105606002)(575784001)(48376002)(53936002)(86362001)(2906002)(498600001)(50466002)(76176999)(7416002)(50986999)(85426001)(38730400002)(110136004)(39060400002)(6916009)(8936002)(6666003)(4326008)(104016004)(2950100002)(36756003)(5660300001)(47776003)(305945005)(356003)(5003940100001)(77096006); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR03MB2785; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD025; 1:MDrH0OCPQ9ap5whFrfrt8OWxKZPAQGE2WfycP7db+zvU+gPDdZqiOFw1lIfNVqt4EddNBXkBHZD8bcUDAJBfu0yCmc7Bsxx40Kx/BlRuWWPRNkPk2TwiHGRA++4rupV1mrJCn36EDgpwEYY+1lop1D1RbeZxbY/mFEplHCWICaxw9CCnV7kRY0Yi97+xb8Feq+5lbaCg3iAvTCv1Y5/jh8JUF2Nr8nacxBi5uIbf/cZ9Ad9LACawg6ehMFQQv5tMdJ5pZrwK1wie0LfpOnOx/9Ppe8t1xVcQkcTFNeVkOBiazsBnxna0Xb5hAUGZHs+u8CshZK86lgIfDzXrYZdLtZ3VyYQoHFgwDqqiPYlQSZmnFpqKl/iu13qTgxXPwynO3S5Pfzi0rQcu2osQWkldqb5/DantGgVDNLgHTGD4nnPS1FzNVxppifSOCxKUJuKjfxQweriTOESe7xP0rjcOdGYzYpcwCnH+Px4b7hi0jynzXPVvS9TJYgzlakd5hzzqwuyQjRWvu5VvHmG2EtYPOQY9MTrLQiJ9zHp8d9Co/X5UmGE4Zup4/RXVld0VH12MRp3EgeTy6xJipe9vEkqQ17QaHszXCCoRcLvA2a37Cr8JtPPa7klcdarnNkrCGg2hVXPVG4YMJBGPbfUImxhWDGhQv9HS9njBZU9dubUwJ2O4HUPyvk/VsKjWtRox0YXP MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN6PR03MB2785: X-MS-Office365-Filtering-Correlation-Id: c4323422-3404-4131-99c6-08d4b207bc06 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BN6PR03MB2785; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2785; 3:DcUjrE1JStUajMrgqXOnYO5zosTkNZ7AS8HrMxh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0QQqc1klIGcH4BDHjQBWNngQCsWVM9FV0Mh513sXA7LrYOwBUGEB6wqS2DxCrQJ/vqtL9SXe64eNrqu5myuktyDHUi/Rhw+JaGSgMgo1ewLIghfs9ga9HOM9oVTwiCYFqlLtQ== 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)(13018025)(13016025)(8121501046)(5005006)(93006095)(93001095)(100000703101)(100105400095)(10201501046)(3002001)(6055026)(6096035)(20161123563025)(20161123556025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(20161123561025)(20161123559100)(20161123565025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN6PR03MB2785; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN6PR03MB2785; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2785; 4:ZM9VVDh5s5mBfddJ4LOI2Qoch0a4ZxQC5A9JFoi81v?= =?us-ascii?Q?TrOgTF1IczMa4v7ZTk0Q9MhF1Ijume3hCrjCaoYcke6QY+tT8YuEm4ji8Moc?= =?us-ascii?Q?kKuF38PQyQheSZRGerXpB9HUROCj8nWClN5iGL85M/d/yphdVloH/o7Amg2n?= =?us-ascii?Q?/IZx5CC7i+9TtM+HWhWpMLKzm2wGUpY/W+vNge1qvrIzWirgf9j1VCSxvLh9?= =?us-ascii?Q?1ah5ciijR/NaNQmebH0WL574F3f8AjL5aLmPBgfIm8+Arx2zzwUXjg3wTtDi?= =?us-ascii?Q?YqFfcpQgVmkDNqlyBa5I1CM92byXHKnb68MD0TEQpQ5QUlDPIDLOm61Wtyf8?= =?us-ascii?Q?qWl4Pbplw3e4nzj5POjYP6xO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?WHjTsMUM3taMQmJGbJuSxdEYXx2AyXpgaiKyw3?= X-Forefront-PRVS: 0337AFFE9A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2785; 23:rP26HgyeStto/QRjOt3KHB1UxXO/lSGdxDybUXESh?= =?us-ascii?Q?YYDEFzgT65yP0EFXG2rSRUu640VIIRdGbXSOTyUDwCNw2osjNfQjTY4Jqeqd?= =?us-ascii?Q?P7zgFS0EN/wjlXxa/NvhyFbfdtdE8Nwxw85966J73G4gHfAnRuQBgzYdw5Ci?= =?us-ascii?Q?dhlZk6lvlOuMaMaIYJ7sHfyDwxdFZlqUH4bYjDKie4UTfw5zMYOOJWYoj9Q2?= =?us-ascii?Q?N748yZNOVyb6Au811yOC6OL4Zh3jL8xzfKzub3a1iNdiV1rwxurACHqPMJE4?= =?us-ascii?Q?goismUB2PVOCrj+YipRJCLIG0ejDz6M1/C/snzc5eM2bVEysI8bXAQsXf1Of?= =?us-ascii?Q?dflr6KnGXSzf+bwu1fV7mHUHu4j8ZHesIxuIMyF9Abrys4x6wwGy+oojD4JX?= =?us-ascii?Q?X0Gz60u/9nD/4liEOlJOKGn0u1MTRCn9UFMRuKasYNrC0y18snikrXcvJCG9?= =?us-ascii?Q?nEMzsACDBmUFETDU8ndABkJLc1dxh/o6a4bG2FXJ9dE56sRT2cYmos833arv?= =?us-ascii?Q?thMX/Jb7PXMhs1FogkGYlTVk2DeogHxRB9n3osc9XM4FEv5fbHBIRmWweT++?= =?us-ascii?Q?M4neDsexDGHJAsv/e5Q7KGLGWB+VJOXKbgr9bvC43oBSgduBcbb6dDm/blTw?= =?us-ascii?Q?LCBrPIZ57aS6hC38E4Z0VSQzIJnDwGJ3acnuW3TmnyChDkptoYdDuWWU/RZa?= =?us-ascii?Q?No6XpGF3Hvf5eETu8HIOTTUGTmipCUPS+py33ixPUk0kOjVmeKJcKObDPDRu?= =?us-ascii?Q?K2MRFYUXHwqL6BoAMEVcbv2vaEN/fwI8kIhrz3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+2cm+N68nS6qp8zWkPFufgq2l5X3+mFTAWIxBz5DuwK8iEpHWvKavBZBJ2iFX0Dt9lYvwvj6gIVt9ZssiiP2sNyPyBYPIsUhnfELG0OPp5PeVKfxYZLIdOCqEgIKjq2xz2L/zP6zupCRj3A7MM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2785; 5:oyAGUJaGZx5BtXneW9YnAghG/wyAqTf0QidmOLO6kNGzKTNeTZH/u6oYz/aWwCDdYGW/5BheHTSVe7BLhON7nOoAnK2Hhd2SZYowq77gf09o2tiToFkX0IW4KnGmrBtBvEI1R+1DxpcF59q6IYeR8OdKu6yqDxAaswGDssmfVwHDJnop5SwQBGL1LqXPVCufuvugC9iGm/XMvlg+eE23YHLbHyG8aZAKasmNuYv0F+ATXmC0QNVJLB3EfTfNyxIQYgreMxaB5TagFFphhlCbh8yht1Pmt+KDAwY0lNNkHuJISv37FOQC+8nMPowmihSsFrsmFCXZTCaM9knUanIT1EqYPbmsrqIro3dPakNp52XBwBB0ftfKuabUfgbsw4N3FlIyZIjePxGtBOninFTpw1cu5XXh3V5+npBmxRGwgBkl6Ro08tkqOadgT71y9SOgeVtCUQDVN63Hl49vU+T4fFRPrqkY5J9n8/XkLfPwbjctsnNZ0EFXAPhHcXDwoVoE2FFZEhCCZ/Grdy/ctCqrUw==; 24:RxaCEgJGuTdvbO13AGQtkdvtXhCbP0EPsIhfkHie2FB7qEIXnfnOHX30sK6CmER546BybszwAqDGrIcL6Jgy+0cwN5AdhU4knq8BP3UdZ2Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2785; 7:NeVvP8qfQ9ZL2nBKW34UbcHo7aYOpSFuuOeFv2lLtlT4SmD7LCrvQzewKKXemanHqxaKneXg1evIBYP/oVnp0rTXtKKOkJYin5eaEbV+iDlCCAVxpTD81mLBcLppBNMmKzcQI6GNb+TJGHODD/0VSCc6Q9i9trOTUo81kiIFoRecaD4cn2xLxnGoE9koLTTFDCGRr82D0eTxMEueSJhw6f+VrADuDPBkMZodVVv0ULdN2HO+Mz4GozJ2nfhvYupM//Tg/XCVGacbA6e4Fs6jW4e1VQuv3971EQl9+4oqgURa5sDHUYbkmF9px725GN39qYar8an1MMlvOmB+B2Wo3g== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2017 02:56:05.3430 (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: BN6PR03MB2785 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170612_195627_889117_ECCDA60C X-CRM114-Status: GOOD ( 12.08 ) 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: v3->v4: * No changes 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 9486333..a0f2666 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);