of: earlycon: Initialize port fields from DT properties
authorPeter Hurley <peter@hurleysoftware.com>
Sat, 16 Jan 2016 23:23:43 +0000 (15:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2016 06:07:37 +0000 (22:07 -0800)
commit088da2a17619cf0113b62a76ad38c6a14470ffa6
tree98d9d71255703026b0ce2cee89e5d6e8d41aa3a7
parent4d118c9a866590850dad8689262a95345d2c6e09
of: earlycon: Initialize port fields from DT properties

Read the optional "reg-offset", "reg-shift", "reg-io-width" and endianness
properties and initialize the respective struct uart_port field if found.

NB: These bindings are common to several drivers and the values merely
indicate the default value; the registering earlycon setup() method can
simply override the values if required.

Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/of/fdt.c
drivers/tty/serial/earlycon.c
include/linux/serial_core.h
This page took 0.028086 seconds and 5 git commands to generate.