RE: enabling uart2 on omap5912 osk

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

 



Each bit enables one uart.
For uarts 1, 2, 3 it will look like:

static struct omap_uart_config osk_uart_config __initdata = {
	.enabled_uarts = (1 << 0) | (1 << 1) | (1 << 2),
};


Just a hint. You can look board-xxx.c config files and see examples
there.



Roman Tereshonkov

-----Original Message-----
From: linux-omap-owner@xxxxxxxxxxxxxxx
[mailto:linux-omap-owner@xxxxxxxxxxxxxxx] On Behalf Of ext mohammed
shareef
Sent: 21 May, 2008 20:12
To: Tony Lindgren
Cc: omap; linux-omap-open-source@xxxxxxxxxxxxxx
Subject: Re: enabling uart2 on omap5912 osk

i see the following lines in the omap-osk.c file regarding the uarts:

static struct omap_uart_config osk_uart_config __initdata = {
	.enabled_uarts = (1 << 0),
};


what does it mean? i want all my uarts (1,2,3) enabled. how do i have
to modify the above line?

thanx for the help.

regards,
Shareef

On Wed, May 21, 2008 at 9:10 PM, Tony Lindgren <tony@xxxxxxxxxxx> wrote:
> * mohammed shareef <mdshareef@xxxxxxxxx> [080520 23:43]:
>> Hello,
>>
>> How do i enable UART2 on omap5912_osk in the kernel?
>>
>> and is there a way by which i can test if the uart2 has been
recongnised?
>>
>> i dont see uart module being initialized during the kernel boot-up.
>
> You need to enable it in board-osk.c, see enabled_uarts. Then to use
it
> you also need the right hardware attached to it.
>
> Tony
>
--
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
--
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