diff options
author | Simon Glass <sjg@chromium.org> | 2014-10-22 21:37:04 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-10-23 19:29:07 -0600 |
commit | 167efe01bc5a9de2aa4f7ce2663dbe398f9d43f6 (patch) | |
tree | fd5a5b035663ba9060334a01d46b1e3a24069d3b /include/ns16550.h | |
parent | aea2be2012f474ddc9f372547e487ee74d4eb67a (diff) | |
download | u-boot-imx-167efe01bc5a9de2aa4f7ce2663dbe398f9d43f6.zip u-boot-imx-167efe01bc5a9de2aa4f7ce2663dbe398f9d43f6.tar.gz u-boot-imx-167efe01bc5a9de2aa4f7ce2663dbe398f9d43f6.tar.bz2 |
dm: ns16550: Use an address instead of a pointer for the uart base
It is inconvenient to have to use casts when specifying platform data. Also
it is not strictly correct, since we should use map_sysmem() to convert an
address to a pointer.
Adjust the platform data to use an address.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'include/ns16550.h')
-rw-r--r-- | include/ns16550.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ns16550.h b/include/ns16550.h index 5784cfd..0607379 100644 --- a/include/ns16550.h +++ b/include/ns16550.h @@ -53,7 +53,7 @@ * @clock: UART base clock speed in Hz */ struct ns16550_platdata { - unsigned char *base; + unsigned long base; int reg_shift; int clock; }; |