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: 64157 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp1975749lbc; Tue, 22 Mar 2016 03:49:33 -0700 (PDT) X-Received: by 10.98.72.83 with SMTP id v80mr8000465pfa.113.1458643770910; Tue, 22 Mar 2016 03:49:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si1632889pfk.13.2016.03.22.03.49.30; Tue, 22 Mar 2016 03:49:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-acpi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-acpi-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759199AbcCVKtV (ORCPT + 5 others); 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 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(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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