diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-22 19:30:18 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:40 -0700 |
commit | d30c7209dfb4c6e4f38f8b42354e44885b53f301 (patch) | |
tree | c530f264e978855ea1793787015a6051cf11884f /board/freescale/mpc8313erdb | |
parent | aa88ac884c998ab521b3a433e963bc001d31e5d8 (diff) | |
download | u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.zip u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.tar.gz u-boot-d30c7209dfb4c6e4f38f8b42354e44885b53f301.tar.bz2 |
serial: Update NS16550_t and struct NS16550
Typedefs should not be used in U-Boot and structs should be lower case.
Update the code to use struct ns16550 consistently.
Put a header guard on the file while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'board/freescale/mpc8313erdb')
-rw-r--r-- | board/freescale/mpc8313erdb/mpc8313erdb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/freescale/mpc8313erdb/mpc8313erdb.c b/board/freescale/mpc8313erdb/mpc8313erdb.c index 65a10c3..69fa891 100644 --- a/board/freescale/mpc8313erdb/mpc8313erdb.c +++ b/board/freescale/mpc8313erdb/mpc8313erdb.c @@ -132,7 +132,7 @@ int ft_board_setup(void *blob, struct bd_info *bd) void board_init_f(ulong bootflag) { board_early_init_f(); - NS16550_init((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), + NS16550_init((struct ns16550 *)(CONFIG_SYS_IMMR + 0x4500), CONFIG_SYS_NS16550_CLK / 16 / CONFIG_BAUDRATE); puts("NAND boot... "); timer_init(); @@ -152,8 +152,8 @@ void putc(char c) return; if (c == '\n') - NS16550_putc((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), '\r'); + NS16550_putc((struct ns16550 *)(CONFIG_SYS_IMMR + 0x4500), '\r'); - NS16550_putc((NS16550_t)(CONFIG_SYS_IMMR + 0x4500), c); + NS16550_putc((struct ns16550 *)(CONFIG_SYS_IMMR + 0x4500), c); } #endif |