Skip to content

Commit

Permalink
serial: i.MX: evaluate linux,stdout-path property
Browse files Browse the repository at this point in the history
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 <s.hauer@pengutronix.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Sascha Hauer authored and Greg Kroah-Hartman committed Aug 12, 2013
1 parent 5c19e95 commit f7d2c0b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/tty/serial/imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -1912,6 +1912,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
Expand Down

0 comments on commit f7d2c0b

Please sign in to comment.