Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752728Ab3HEMlO (ORCPT ); Mon, 5 Aug 2013 08:41:14 -0400 Received: from metis.ext.pengutronix.de ([92.198.50.35]:36650 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752438Ab3HEMlL (ORCPT ); Mon, 5 Aug 2013 08:41:11 -0400 From: Sascha Hauer To: linux-kernel@vger.kernel.org Cc: linux-serial@vger.kernel.org, Greg Kroah-Hartman , linux-arm-kernel@lists.infradead.org, kernel@pengutronix.de, devicetree@vger.kernel.org, grant.likely@linaro.org, rob.herring@calxeda.com, Sascha Hauer Subject: [PATCH 2/2] serial: i.MX: evaluate linux,stdout-path property Date: Mon, 5 Aug 2013 14:40:45 +0200 Message-Id: <1375706445-15375-3-git-send-email-s.hauer@pengutronix.de> X-Mailer: git-send-email 1.8.4.rc0 In-Reply-To: <1375706445-15375-1-git-send-email-s.hauer@pengutronix.de> References: <1375706445-15375-1-git-send-email-s.hauer@pengutronix.de> X-SA-Exim-Connect-IP: 2001:6f8:1178:2:21e:67ff:fe11:9c5c X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 919 Lines: 30 devicetrees may have the linux,stdout-path property to specify the console. This patch adds support to the i.MX serial driver for this. Signed-off-by: Sascha Hauer --- drivers/tty/serial/imx.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/tty/serial/imx.c b/drivers/tty/serial/imx.c index 415cec6..420ad02 100644 --- a/drivers/tty/serial/imx.c +++ b/drivers/tty/serial/imx.c @@ -1472,6 +1472,9 @@ static int serial_imx_probe_dt(struct imx_port *sport, sport->devdata = of_id->data; + if (of_device_is_stdout_path(np)) + add_preferred_console(imx_reg.cons->name, sport->port.line, 0); + return 0; } #else -- 1.8.4.rc0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/