aboutsummaryrefslogtreecommitdiff
path: root/include/ns16550.h
diff options
context:
space:
mode:
authorAndy Shevchenko2018-11-20 23:52:35 +0200
committerSimon Glass2018-12-05 06:08:35 -0700
commit4e7207791c05b3ecff916c1b1b1b21401ec29b0b (patch)
tree79b9f0991639be7ce1b0692779b9b25928cc9287 /include/ns16550.h
parent0af761620f2bb0aac739e1f5c2f5c231bc279599 (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 'include/ns16550.h')
-rw-r--r--include/ns16550.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ns16550.h b/include/ns16550.h
index f565645d65b..22b89e4d6d1 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -49,11 +49,13 @@
* struct ns16550_platdata - information about a NS16550 port
*
* @base: Base register address
+ * @reg_width: IO accesses size of registers (in bytes)
* @reg_shift: Shift size of registers (0=byte, 1=16bit, 2=32bit...)
* @clock: UART base clock speed in Hz
*/
struct ns16550_platdata {
unsigned long base;
+ int reg_width;
int reg_shift;
int reg_offset;
int clock;