diff options
author | 2016-01-16 15:23:43 -0800 | |
---|---|---|
committer | 2016-02-06 22:07:37 -0800 | |
commit | 088da2a17619cf0113b62a76ad38c6a14470ffa6 (patch) | |
tree | 98d9d71255703026b0ce2cee89e5d6e8d41aa3a7 /drivers/of/fdt.c | |
parent | of: earlycon: Add options string handling (diff) | |
download | linux-088da2a17619cf0113b62a76ad38c6a14470ffa6.tar.gz linux-088da2a17619cf0113b62a76ad38c6a14470ffa6.tar.bz2 linux-088da2a17619cf0113b62a76ad38c6a14470ffa6.zip |
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>
Diffstat (limited to 'drivers/of/fdt.c')
-rw-r--r-- | drivers/of/fdt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/of/fdt.c b/drivers/of/fdt.c index cfd3b35e8d81..e8fd54a30802 100644 --- a/drivers/of/fdt.c +++ b/drivers/of/fdt.c @@ -839,7 +839,7 @@ static int __init early_init_dt_scan_chosen_serial(void) if (addr == OF_BAD_ADDR) return -ENXIO; - of_setup_earlycon(addr, match, options); + of_setup_earlycon(addr, match, offset, options); return 0; } return -ENODEV; |