Re: [PATCH] OMAP: UART: don't initialize membase and mapbase when its port is not enabled

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/5/14 Kim Kyuwon <chammoru@xxxxxxxxx>:
> 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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux