mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 15:41:40 +00:00
serial_xuartlite.c: fix compiler warnings
Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@uam.es> Acked-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
parent
86446d3a5d
commit
f13f64cf42
1 changed files with 5 additions and 5 deletions
|
@ -56,8 +56,8 @@ void serial_putc(const char c)
|
|||
{
|
||||
if (c == '\n')
|
||||
serial_putc('\r');
|
||||
while (in_be32(UARTLITE_STATUS) & SR_TX_FIFO_FULL);
|
||||
out_be32(UARTLITE_TX_FIFO, (unsigned char) (c & 0xff));
|
||||
while (in_be32((u32 *) UARTLITE_STATUS) & SR_TX_FIFO_FULL);
|
||||
out_be32((u32 *) UARTLITE_TX_FIFO, (unsigned char) (c & 0xff));
|
||||
}
|
||||
|
||||
void serial_puts(const char * s)
|
||||
|
@ -69,13 +69,13 @@ void serial_puts(const char * s)
|
|||
|
||||
int serial_getc(void)
|
||||
{
|
||||
while (!(in_be32(UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA));
|
||||
return in_be32(UARTLITE_RX_FIFO) & 0xff;
|
||||
while (!(in_be32((u32 *) UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA));
|
||||
return in_be32((u32 *) UARTLITE_RX_FIFO) & 0xff;
|
||||
}
|
||||
|
||||
int serial_tstc(void)
|
||||
{
|
||||
return (in_be32(UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA);
|
||||
return (in_be32((u32 *) UARTLITE_STATUS) & SR_RX_FIFO_VALID_DATA);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_MICROBLZE */
|
||||
|
|
Loading…
Reference in a new issue