X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Fppc%2Fboot%2Fsimple%2Fm8260_tty.c;h=8deccc5666c52eb4d780086237da94ae9b4b5afd;hb=1731da41698a0b4ce0b124c3771426720490471d;hp=c3e2c39425f8f96502fabc82a3c73672ff934aa6;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/arch/ppc/boot/simple/m8260_tty.c b/arch/ppc/boot/simple/m8260_tty.c index c3e2c3942..8deccc566 100644 --- a/arch/ppc/boot/simple/m8260_tty.c +++ b/arch/ppc/boot/simple/m8260_tty.c @@ -15,22 +15,19 @@ static int cons_hold_cnt; /* If defined, enables serial console. The value (1 through 4) * should designate which SCC is used, but this isn't complete. Only * SCC1 is known to work at this time. - * We're only linked if SERIAL_CPM_CONSOLE=y, so we only need to test - * SERIAL_CPM_SCC1. */ -#ifdef CONFIG_SERIAL_CPM_SCC1 +#ifdef CONFIG_SCC_CONSOLE #define SCC_CONSOLE 1 #endif unsigned long serial_init(int ignored, bd_t *bd) { + volatile smc_t *sp; + volatile smc_uart_t *up; #ifdef SCC_CONSOLE volatile scc_t *sccp; volatile scc_uart_t *sup; -#else - volatile smc_t *sp; - volatile smc_uart_t *up; #endif volatile cbd_t *tbdf, *rbdf; volatile cpm2_map_t *ip; @@ -225,11 +222,8 @@ serial_readbuf(u_char *cbuf) { volatile cbd_t *rbdf; volatile char *buf; -#ifdef SCC_CONSOLE - volatile scc_uart_t *sup; -#else volatile smc_uart_t *up; -#endif + volatile scc_uart_t *sup; volatile cpm2_map_t *ip; int i, nc; @@ -260,12 +254,10 @@ serial_putc(void *ignored, const char c) { volatile cbd_t *tbdf; volatile char *buf; -#ifdef SCC_CONSOLE - volatile scc_uart_t *sup; -#else volatile smc_uart_t *up; -#endif + volatile scc_uart_t *sup; volatile cpm2_map_t *ip; + extern bd_t *board_info; ip = (cpm2_map_t *)CPM_MAP_ADDR; #ifdef SCC_CONSOLE @@ -305,11 +297,8 @@ int serial_tstc(void *ignored) { volatile cbd_t *rbdf; -#ifdef SCC_CONSOLE - volatile scc_uart_t *sup; -#else volatile smc_uart_t *up; -#endif + volatile scc_uart_t *sup; volatile cpm2_map_t *ip; ip = (cpm2_map_t *)CPM_MAP_ADDR;