]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitac16346266243826a0efdb0c6faa5e7c103b2f25
tree98d9d71255703026b0ce2cee89e5d6e8d41aa3a7
parent6846a7953029dc900201ed5fa77d24306833e0a3
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