From patchwork Mon Feb 15 16:05:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 8316441 Return-Path: X-Original-To: patchwork-linux-arm@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 43DCE9F399 for ; Mon, 15 Feb 2016 16:16:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5CE41202A1 for ; Mon, 15 Feb 2016 16:16:00 +0000 (UTC) Received: from bombadil.infradead.org (unknown [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 9171320218 for ; Mon, 15 Feb 2016 16:15:59 +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 1aVLf1-0005gQ-Rc; Mon, 15 Feb 2016 16:06:03 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aVLel-0005Jz-TK for linux-arm-kernel@lists.infradead.org; Mon, 15 Feb 2016 16:05:48 +0000 Received: by mail-wm0-x241.google.com with SMTP id g62so16416739wme.2 for ; Mon, 15 Feb 2016 08:05:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20150623.gappssmtp.com; s=20150623; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=ED87xQ+r/44ZL8uZj+Q/grHwxHtoZtoKY7xOn6C/sVo=; b=jSFF+I0MkqNl31AK7OmL51LOqZs0IGBukFXoB80Lw2b1GpKHxyw6L+JU6dTkQ53YyI jqo7s7x8JSZtj6zxh0AaKOrL0hY3RBU2gxA/ykou/eo5s2BiFQn/SIH9X3Q1SPK7mRld VXezMHuImlsWuhBCgXvBo6Z/dCYmr4pjJkqiIRBq/Lb0peaiO3lqJ8YRhGwDtwNUGvj1 9BiczrM0MvaPCMYDOiMjfDBzDEpChuAGt6lcWvYdNGxOfzUFW+4oeoRUsXlmCwO5XuMj XJYjCN9RgBvx77m0C7I/tPLNG2vA9gt2ut+H8pFdxJe+xpovVAirkBr8ewLve5xPMexS k5mQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=ED87xQ+r/44ZL8uZj+Q/grHwxHtoZtoKY7xOn6C/sVo=; b=YSL7hsWh6d5QYF24W0ksrp5W26ebPNIVLRIESLZupPRqBjopY9RrAkDjW/occgXSYo X3XZxdf9k9Bp3vANOB1szQ8L7XgHljRaJPmQU+OgI/6uSw0GdJizS2zFT9N3TMMBsk1n j17mv2Adlpdggbpymf6qph7fXWwZdN8KbEQsCwV/LI1nfnvJ9fk39wkhpWxc4P1siZoE /HfpNl9ODhcAlza3ou+9RX5Q6kmLtsBcJGyT2jqkjrdngSFfmAi6Lnw162gJEzKoGuF4 6Y3oVGmc+9JjXrLvVkitDYifxj1Ess4MYzX2xt50uqNLF7Uxtbqe52fKrqZ7iGR7U5wA VP2w== X-Gm-Message-State: AG10YOShS/u0oA60TQEHxaJXZdFQX2V9efMhQADTTzrLXFeZJ82b/iK0KrP6e4fTHKeidw== X-Received: by 10.28.47.23 with SMTP id v23mr14037195wmv.7.1455552326361; Mon, 15 Feb 2016 08:05:26 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id ll9sm26006390wjc.29.2016.02.15.08.05.25 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 15 Feb 2016 08:05:25 -0800 (PST) From: Michal Simek To: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , Nicolas Pitre Subject: [PATCH 2/3] serial: xuartps: Enable OF earlycon support Date: Mon, 15 Feb 2016 17:05:18 +0100 Message-Id: <23ab10a19b21df2ef17a5bb6ce2a70d2d3fd3551.1455552315.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <67c9013fc61f53515934b54847a05df8b8e1504a.1455552315.git.michal.simek@xilinx.com> References: <67c9013fc61f53515934b54847a05df8b8e1504a.1455552315.git.michal.simek@xilinx.com> In-Reply-To: <67c9013fc61f53515934b54847a05df8b8e1504a.1455552315.git.michal.simek@xilinx.com> References: <67c9013fc61f53515934b54847a05df8b8e1504a.1455552315.git.michal.simek@xilinx.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160215_080548_132570_300A7169 X-CRM114-Status: UNSURE ( 9.40 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) 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: monstr@monstr.eu, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, Jiri Slaby , =?UTF-8?q?S=C3=B6ren=20Brinkmann?= 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=-3.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, RDNS_NONE, T_DKIM_INVALID, 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 Support early console setup via DT for all listed compatible strings. Signed-off-by: Michal Simek --- drivers/tty/serial/xilinx_uartps.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 009e0dbc12d2..6f5657766815 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1094,6 +1094,9 @@ static int __init cdns_early_console_setup(struct earlycon_device *device, return 0; } EARLYCON_DECLARE(cdns, cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns_a, "xlnx,xuartps", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns_b, "cdns,uart-r1p8", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns_c, "cdns,uart-r1p12", cdns_early_console_setup); /** * cdns_uart_console_write - perform write operation