From patchwork Thu Feb 18 07:57:20 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 8347001 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 6528DC0553 for ; Thu, 18 Feb 2016 07:59:24 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8619520386 for ; Thu, 18 Feb 2016 07:59:23 +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 77E4120395 for ; Thu, 18 Feb 2016 07:59:22 +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 1aWJTE-00012Y-MU; Thu, 18 Feb 2016 07:57:52 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aWJT9-0000wu-UP for linux-arm-kernel@lists.infradead.org; Thu, 18 Feb 2016 07:57:48 +0000 Received: by mail-wm0-x232.google.com with SMTP id c200so13370260wme.0 for ; Wed, 17 Feb 2016 23:57: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; bh=r2qNwGxQJFUmY/1f1+l3cCqZTwIA5yXcDD+TACLQSdk=; b=OZYp6IXh0X90XVBSZZKAG4hzlMVGhFv7GhFZSU/3LEvWIVYquqvxaZiOjRA4bK+5st uTgTaRoz97t4YJNqsrUJIT1zFB4hjkYehmVXA6vUJ2E4YqmWQtFNLW1atD3m+PSUe/if SJnP8+Okv6jeqkwlsgB/P7N4dZ/VBk2/2jo7SQrrGq0ykHqACKlZCzYXlYgnqvIJl0H0 isSIenx0buJmiBWPD6miVeVpptrcwYJuwgn1gBkEaKqbvmM5UN4rKnxu5f5elAdVs89X o+hpWdQEklbhpl9gsIKWZkS1YF4ID3lpIb+Zkzdi89WaiYsPRXjfsJArwCtvM2gd1JAs Palw== 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; bh=r2qNwGxQJFUmY/1f1+l3cCqZTwIA5yXcDD+TACLQSdk=; b=Y7MfPWhg9IgY7D9X3HKC0KvJUE4wo6QwCnPrbRmy4oZVWLg1c4pgbZ7du4XUgQkL2l pfObHt8qZUsfthTZ1CwQL9zxAdE76R3/V2NFRhmxbRVdmXR6EnYRDbdzsTQB+1JfEXzS smATL12XAHJOxVEAA0zd/Xp/Wtq+dQ5XL87aqs092Dme0nqYS7sE+JS9iJtNZBaPQyjv Qbfl6JYqxe+OTI54hWN2kseKzq5TjohQCGLJZ+CeJ6FH1bU5b+0uzcZh0v6rze2y/B+U AGHoA/eoEzUlSQV9wYWByRfzIiAdu/rbmdAPdrR7G3/nEmiyddY/k6eMPSmEPhAaJuud Bx3w== X-Gm-Message-State: AG10YOSP0ScctO0Wpo+s0vFfLASZs/xd3MJn2fQMg59JNzkPNHJYXT3zHygckzpQ9qG18w== X-Received: by 10.194.75.164 with SMTP id d4mr5993542wjw.15.1455782246137; Wed, 17 Feb 2016 23:57:26 -0800 (PST) Received: from localhost (nat-35.starnet.cz. [178.255.168.35]) by smtp.gmail.com with ESMTPSA id u9sm1662252wmd.4.2016.02.17.23.57.24 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 17 Feb 2016 23:57:25 -0800 (PST) From: Michal Simek To: Arnd Bergmann , peter@hurleysoftware.com Subject: [PATCH v2] serial: xuartps: Enable OF earlycon support Date: Thu, 18 Feb 2016 08:57:20 +0100 Message-Id: <09f2c419994281fca7968142e52d969542370d1c.1455782238.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160217_235748_142821_4297A1CD X-CRM114-Status: GOOD ( 10.05 ) 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-arm-kernel@lists.infradead.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=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,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. Remove EARLYCON_DECLARE which was done by: "Use common framework for earlycon declarations" (sha1: 2eaa790989e03900298ad24f77f1086dbbc1aebd) when OF_EARLYCON_DECLARE is defined. Signed-off-by: Michal Simek Reviewed-by: Peter Hurley --- Changes in v2: - Separate serial patch from others - Remove EARLYCON_DECLARE and use the same earlycon name with different compatible string as was pointed by Peter Hurley - Extend commit message drivers/tty/serial/xilinx_uartps.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx_uartps.c index 131a3117fbbb..cd46e64c4255 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1077,7 +1077,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, "xlnx,xuartps", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p8", cdns_early_console_setup); +OF_EARLYCON_DECLARE(cdns, "cdns,uart-r1p12", cdns_early_console_setup); /** * cdns_uart_console_write - perform write operation