Don't mask TCD in IMR0 when we initialize the channel. Doing so makes

it impossible to check the interrupt status bit when we try to get a
character in the low level console code.
This commit is contained in:
Marcel Moolenaar 2004-04-25 04:30:40 +00:00
parent 024035e822
commit b4f00e0bb7

View file

@ -252,7 +252,7 @@ sab82532_init(struct uart_bas *bas, int baudrate, int databits, int stopbits,
sab82532_param(bas, baudrate, databits, stopbits, parity);
/* Clear interrupts. */
uart_setreg(bas, SAB_IMR0, 0xff);
uart_setreg(bas, SAB_IMR0, (unsigned char)~SAB_IMR0_TCD);
uart_setreg(bas, SAB_IMR1, 0xff);
uart_barrier(bas);
uart_getreg(bas, SAB_ISR0);