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: 8639721 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id F06E79F3D1 for ; Tue, 22 Mar 2016 10:49:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1C5852038A for ; Tue, 22 Mar 2016 10:49:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 572032039C for ; Tue, 22 Mar 2016 10:49:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759199AbcCVKtV (ORCPT ); Tue, 22 Mar 2016 06:49:21 -0400 Received: from mail-lb0-f174.google.com ([209.85.217.174]:36165 "EHLO mail-lb0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759193AbcCVKtE (ORCPT ); Tue, 22 Mar 2016 06:49:04 -0400 Received: by mail-lb0-f174.google.com with SMTP id qe11so101140608lbc.3 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=aP9nBnpBVR0eDYgzMPcNuP+ILYQ8k7FPcbR9ByeCabSrvWhQVX020jNJozVHe34KGH ezTGmLHdIZtzsXV1/M9IajaAXoEjUwyx+kpVl0QHZg8+1iXN/WaROO1W+Z1HGMmZnAGb SR6YESbmHFPnHpgxhGFubrFXLPzK3U3UN+umVDrI1J6Hx3IBAC17VgRSLh0K/EiVcgYY xexLbl11uis7XZIxVM4xK0GvaJvK1KOqhhoNJHVIULsuIvZhb4ccmd6F82SqMkOFfrkv LKSVPvuc1TFpv5K6OPEagQ/VQ2e3mC7aL4kbbRVcn5W0ak+V5CNjPnUwMLzxHmjRAN4X GW3A== X-Gm-Message-State: AD7BkJKFg0E1KGiyYPonMkDdvRiilB2mkv3Bde9g7eemHBm+lU9tlcse+60MXXHj4YxFfYZp 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 Cc: linux-serial@vger.kernel.org, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Aleksey Makarov , Russell King , Leif Lindholm , Graeme Gregory , Al Stone , Christopher Covington , Yury Norov , Peter Hurley , "Zheng, Lv" , Jiri Slaby 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> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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