diff options
author | Michal Simek <michal.simek@xilinx.com> | 2016-02-16 15:17:49 (GMT) |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-03-18 03:27:39 (GMT) |
commit | 59b35ddd2684bc2f81352d8cd14037752d9b639b (patch) | |
tree | 85df75c6996ff88a3a1ccc1a7d82714b4ed24214 /include | |
parent | 4428f3c87ac90c71d5dae3df0289eb2442b628a8 (diff) | |
download | u-boot-fsl-qoriq-59b35ddd2684bc2f81352d8cd14037752d9b639b.tar.xz |
dm: ns16550: Add support for reg-offset property
reg-offset is the part of standard 8250 binding in the kernel.
It is shifting start of address space by reg-offset.
On Xilinx platform this offset is typically 0x1000.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
Moved the new field to the end of the struct to avoid problems:
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ns16550.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ns16550.h b/include/ns16550.h index 4e62067..1311f4c 100644 --- a/include/ns16550.h +++ b/include/ns16550.h @@ -56,6 +56,7 @@ struct ns16550_platdata { unsigned long base; int reg_shift; int clock; + int reg_offset; }; struct udevice; |