From patchwork Tue Mar 22 10:46:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aleksey Makarov X-Patchwork-Id: 8639961 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 780DCC0553 for ; Tue, 22 Mar 2016 10:52:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB02C20390 for ; Tue, 22 Mar 2016 10:52:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id DD0032038A for ; Tue, 22 Mar 2016 10:52:25 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aiJtk-00037U-Hh; Tue, 22 Mar 2016 10:50:52 +0000 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aiJsJ-0000Bh-Lv for linux-arm-kernel@lists.infradead.org; Tue, 22 Mar 2016 10:49:26 +0000 Received: by mail-lb0-x235.google.com with SMTP id bc4so155573519lbc.2 for ; Tue, 22 Mar 2016 03:49:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=UeIacsAurfoQrp5n2Whl5KH7DRZt6kuSX0W7++GHgrk=; b=LT2xFVRNjLLh4BizwyteJUJHt/FpDenmXgAk4v5ywUUwgUS9TsxzA1XhJG/Ch2wpil 2NPQxGUehG9UC0EIvCA+ROawsLhZakH+6lq9tK0RTLKsl+kViJjXPHDq/C4Qp4vBUxmr nXdDh6yVwqrbk1EUjfibFztZ+5RSlZX0coCYY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=UeIacsAurfoQrp5n2Whl5KH7DRZt6kuSX0W7++GHgrk=; b=JosgSjd82201xcTvBgWHwRnqOpaeexL/5JJZ3q4e9dYD+ph//6CCAQbwfBODva8tak Fd/3uqwnlYYbXnA+DLQv84J28d+E0bcM7fyr+4OvANA4+5Wl7KVhW69pidl8i6Jkn6B2 1hYcSd2I4labyrNP9QwWeABwBhnJbYEu+zVvAgbq1cDfIJRhfLBFmJIk57EhdL7M1ned k/+ZC3LGqsNbosBnaE5vv3AKZLJpIbzyvBql1VJJPqnE6eWijwBenkfr5SyBt2T3/sgf yuPb9cXIQsf8Y6AerUHqGf8GEI3vDij+EF1j++Yu2eSw08VvlAKr9aez2bgVQUEyu5K7 YH4Q== X-Gm-Message-State: AD7BkJLc6pp030ygFQ0EM3d8aHV/XnWvNGe79Dz16xkBwHMkU0kHBHJ5m0LsLnLEkQ02f7F9 X-Received: by 10.112.201.133 with SMTP id ka5mr12862425lbc.1.1458643741637; Tue, 22 Mar 2016 03:49:01 -0700 (PDT) Received: from turnip.localdomain (nivc-213.auriga.ru. [80.240.102.213]) by smtp.gmail.com with ESMTPSA id l5sm5022910lfd.22.2016.03.22.03.49.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Mar 2016 03:49:01 -0700 (PDT) From: Aleksey Makarov To: Greg Kroah-Hartman , "Rafael J . Wysocki" , Len Brown Subject: [PATCH v5 6/6] serial: pl011: add EARLYCON_DECLARE Date: Tue, 22 Mar 2016 13:46:33 +0300 Message-Id: <1458643595-14719-7-git-send-email-aleksey.makarov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1458643595-14719-1-git-send-email-aleksey.makarov@linaro.org> References: <1458643595-14719-1-git-send-email-aleksey.makarov@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160322_034924_173971_32A654C5 X-CRM114-Status: GOOD ( 10.58 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Russell King , Peter Hurley , Graeme Gregory , linux-kernel@vger.kernel.org, Leif Lindholm , linux-acpi@vger.kernel.org, Aleksey Makarov , Yury Norov , Christopher Covington , linux-serial@vger.kernel.org, Jiri Slaby , Al Stone , linux-arm-kernel@lists.infradead.org, "Zheng, Lv" MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds definition of early console data for pl011. It allows setting up an early console with a string passed in command line or compiled by the ACPI SPCR table handler. Signed-off-by: Aleksey Makarov --- drivers/tty/serial/amba-pl011.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c index 59b743f..af6f87cf 100644 --- a/drivers/tty/serial/amba-pl011.c +++ b/drivers/tty/serial/amba-pl011.c @@ -2385,6 +2385,7 @@ static int __init pl011_early_console_setup(struct earlycon_device *device, return 0; } OF_EARLYCON_DECLARE(pl011, "arm,pl011", pl011_early_console_setup); +EARLYCON_DECLARE(pl011, pl011_early_console_setup); #else #define AMBA_CONSOLE NULL