aboutsummaryrefslogtreecommitdiff
path: root/include/ns16550.h
diff options
context:
space:
mode:
authorMarek Vasut2016-12-01 02:06:29 +0100
committerTom Rini2016-12-19 12:26:36 -0500
commit65f83802b7a5b3b06ae1576a8cc5e3b8d83cc8e8 (patch)
tree269247c142dbaa8cfc0db3c44b0f3eee952b5705 /include/ns16550.h
parent8ea05705a70135a94419b0d243666c1b51fe1f8d (diff)
serial: 16550: Add getfcr accessor
Add function which allows fetching the default FCR register setting from platform data for DM , while retaining old behavior for non-DM by returning UART_FCRVAL. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Tom Rini <trini@konsulko.com> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/ns16550.h')
-rw-r--r--include/ns16550.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ns16550.h b/include/ns16550.h
index 1311f4cb919..45fd68b65d7 100644
--- a/include/ns16550.h
+++ b/include/ns16550.h
@@ -57,6 +57,7 @@ struct ns16550_platdata {
int reg_shift;
int clock;
int reg_offset;
+ u32 fcr;
};
struct udevice;