diff options
author | Andy Shevchenko | 2018-11-20 23:52:35 +0200 |
---|---|---|
committer | Simon Glass | 2018-12-05 06:08:35 -0700 |
commit | 4e7207791c05b3ecff916c1b1b1b21401ec29b0b (patch) | |
tree | 79b9f0991639be7ce1b0692779b9b25928cc9287 /drivers/serial/ns16550.c | |
parent | 0af761620f2bb0aac739e1f5c2f5c231bc279599 (diff) |
serial: ns16550: Read reg-io-width from device tree
Cache the value of the reg-io-width property for the future use.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/ns16550.c')
-rw-r--r-- | drivers/serial/ns16550.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/serial/ns16550.c b/drivers/serial/ns16550.c index 25b9d172433..9d78b1ffc4f 100644 --- a/drivers/serial/ns16550.c +++ b/drivers/serial/ns16550.c @@ -446,6 +446,7 @@ int ns16550_serial_ofdata_to_platdata(struct udevice *dev) plat->reg_offset = dev_read_u32_default(dev, "reg-offset", 0); plat->reg_shift = dev_read_u32_default(dev, "reg-shift", 0); + plat->reg_width = dev_read_u32_default(dev, "reg-io-width", 1); err = clk_get_by_index(dev, 0, &clk); if (!err) { |