mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-09-23 06:41:36 +02:00
S3C64XX: remove broken HWFLOW support from the serial driver
As noted by Harald Welte, HWFLOW support in the S3C64XX serial driver is broken and currently unused. Remove it. Signed-off-by: Guennadi Liakhovetski <lg@denx.de>
This commit is contained in:
parent
2fb28dcf82
commit
3fe7b589f9
@ -119,22 +119,6 @@ int serial_getc(void)
|
|||||||
return uart->URXH & 0xff;
|
return uart->URXH & 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_HWFLOW
|
|
||||||
static int hwflow; /* turned off by default */
|
|
||||||
int hwflow_onoff(int on)
|
|
||||||
{
|
|
||||||
switch (on) {
|
|
||||||
case 1:
|
|
||||||
hwflow = 1; /* turn on */
|
|
||||||
break;
|
|
||||||
case -1:
|
|
||||||
hwflow = 0; /* turn off */
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return hwflow;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_MODEM_SUPPORT
|
#ifdef CONFIG_MODEM_SUPPORT
|
||||||
static int be_quiet;
|
static int be_quiet;
|
||||||
void disable_putc(void)
|
void disable_putc(void)
|
||||||
@ -164,11 +148,6 @@ void serial_putc(const char c)
|
|||||||
/* wait for room in the tx FIFO */
|
/* wait for room in the tx FIFO */
|
||||||
while (!(uart->UTRSTAT & 0x2));
|
while (!(uart->UTRSTAT & 0x2));
|
||||||
|
|
||||||
#ifdef CONFIG_HWFLOW
|
|
||||||
/* Wait for CTS up */
|
|
||||||
while (hwflow && !(uart->UMSTAT & 0x1));
|
|
||||||
#endif
|
|
||||||
|
|
||||||
uart->UTXH = c;
|
uart->UTXH = c;
|
||||||
|
|
||||||
/* If \n, also do \r */
|
/* If \n, also do \r */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user