Message ID | 4d34a0a70905140141t3f8e2b08uefb4141f904bfcc@mail.gmail.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Kevin Hilman |
Headers | show |
2009/5/14 Kim Kyuwon <chammoru@gmail.com>: > Hi All, > > We are using two UARTs port in OMAP3430 board shown as following >  UART 1 - not used >  UART 2 - BT >  UART 3 - console ("console=ttyS2,115200n8" in 'bootargs' of bootloader) > > Because we are not using UART port 1, I configured our board file as following >  735 static struct omap_uart_config omap3_boardname_uart_config __initdata = { >  736     .enabled_uarts  = ((1 << 1) | (1 << 2)), >  737 }; > However, I couldn't see any console message. > > If I configured like >  735 static struct omap_uart_config omap3_boardname_uart_config __initdata = { >  736     .enabled_uarts  = ((1 << 0) (1 << 1) | (1 << 2)), >  737 }; > I could see console messages. But I think this is not the real solution. > > Is it correct to use ttyS2, if I use UART3 as console UART? > > Anyway, I kept track of this problem and I'm sending the patch. In your case UART2 becomes ttyS0 and UART3 becomes ttyS1, so use "console=ttyS1" in your bootargs. There is no point exposing UART1 as ttyS0 in Linux if it's not connected on your board. -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 4dcf39c..01c2da7 100644 --- a/arch/arm/mach-omap2/serial.c +++ b/arch/arm/mach-omap2/serial.c @@ -118,11 +118,8 @@ void __init omap_serial_init(void) for (i = 0; i < OMAP_MAX_NR_PORTS; i++) { struct plat_serial8250_port *p = serial_platform_data + i; - if (!(info->enabled_uarts & (1 << i))) { - p->membase = NULL; - p->mapbase = 0; + if (!(info->enabled_uarts & (1 << i))) continue; - } sprintf(name, "uart%d_ick", i+1); uart_ick[i] = clk_get(NULL, name);