diff options
Diffstat (limited to 'bsps')
-rw-r--r-- | bsps/powerpc/shared/console/console.c | 4 | ||||
-rw-r--r-- | bsps/powerpc/shared/console/uart.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/bsps/powerpc/shared/console/console.c b/bsps/powerpc/shared/console/console.c index f275683cc2..f6c802135a 100644 --- a/bsps/powerpc/shared/console/console.c +++ b/bsps/powerpc/shared/console/console.c @@ -153,8 +153,8 @@ static int console_first_open(int major, int minor, void *arg) /* must not open a minor device we have no ISR for */ assert( minor>=0 && minor < sizeof(ttyS)/sizeof(ttyS[0]) && ttyS[minor].isr ); - /* 9600-8-N-1 */ - BSP_uart_init(minor, 9600, 0); + /* BSP_CONSOLE_BAUD-8-N-1 */ + BSP_uart_init(minor, BSP_CONSOLE_BAUD, 0); status = BSP_uart_install_isr(minor, ttyS[minor].isr); if (!status) { printk("Error installing serial console interrupt handler for '%s'!\n", diff --git a/bsps/powerpc/shared/console/uart.c b/bsps/powerpc/shared/console/uart.c index 62212b98db..41db52f8ff 100644 --- a/bsps/powerpc/shared/console/uart.c +++ b/bsps/powerpc/shared/console/uart.c @@ -160,7 +160,7 @@ BSP_uart_init(int uart, int baud, int hwFlow) if ( (int)BSPBaseBaud <= 0 ) { /* Use current divisor assuming BSPBaseBaud gives us the current speed */ - BSPBaseBaud = BSPBaseBaud ? -BSPBaseBaud : 9600; + BSPBaseBaud = BSPBaseBaud ? -BSPBaseBaud : BSP_CONSOLE_BAUD; BSPBaseBaud *= ((uread(uart, DLM) << 8) | uread(uart, DLL)); } |