All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Aguirre, Sergio" <saaguirre@ti.com>
Cc: Tony Lindgren <tony@atomide.com>,
	"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
	"Pandita, Vikram" <vikram.pandita@ti.com>,
	"Sonasath, Moiz" <m-sonasath@ti.com>
Subject: Re: [PATCH] omap2/3/4: serial: Don't init UART4 for 3630 still
Date: Wed, 24 Feb 2010 06:33:11 -0800	[thread overview]
Message-ID: <87iq9mu2jc.fsf@deeprootsystems.com> (raw)
In-Reply-To: <A24693684029E5489D1D202277BE8944538C6D8E@dlee02.ent.ti.com> (Sergio Aguirre's message of "Wed\, 24 Feb 2010 05\:24\:03 -0600")

"Aguirre, Sergio" <saaguirre@ti.com> writes:

>> -----Original Message-----
>> From: Aguirre, Sergio
>> Sent: Wednesday, February 24, 2010 3:02 AM
>> To: Tony Lindgren
>> Cc: linux-omap@vger.kernel.org; Pandita, Vikram; Sonasath, Moiz; Aguirre,
>> Sergio
>> Subject: [PATCH] omap2/3/4: serial: Don't init UART4 for 3630 still
>> 
>> The patch named:
>>   "omap2/3/4: Fix mach-omap2/serial.c for multiboot"
>> 
>> Which added UART4 init also for 36xx based boards, broke zoom3
>> booting.
>> 
>> In theory, for zoom3 case, we should have UART4 + external debugboard
>> UART running with no issues. But unless the real issue is fixed,
>> this patch is crucial for Zoom3 booting.
>
> Just FYI,
>
> I tried by changing id field in board-zoom-debugboard.c for external
> UART to -1, which in theory would add a ttyS4, but somehow it didn't
> worked for me...

That id field should probably be just changed to 4, or better it should
be changed to use a symbolic constant that reflects the max number
of on-chip UARTs.

Kevin

> I guess the proper fix will be to have:
>
> ttyS0 - OMAP3_UART1
> ttyS1 - OMAP3_UART2
> ttyS2 - OMAP3_UART3
> ttyS3 - OMAP3_UART4
> ttyS4 - ZOOM_UART
>
> Any Zoom debugboard expert that wants to comment on this?

>> 
>> Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
>> ---
>>  arch/arm/mach-omap2/serial.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
>> index b79bc89..c4a810b 100644
>> --- a/arch/arm/mach-omap2/serial.c
>> +++ b/arch/arm/mach-omap2/serial.c
>> @@ -764,7 +764,7 @@ void __init omap_serial_init(void)
>>  {
>>  	int i, nr_ports;
>> 
>> -	if (!(cpu_is_omap3630() || cpu_is_omap4430()))
>> +	if (!cpu_is_omap4430())
>>  		nr_ports = 3;
>>  	else
>>  		nr_ports = ARRAY_SIZE(omap_uart);
>> --
>> 1.6.3.3
>
> --
> 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

      reply	other threads:[~2010-02-24 14:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-24  9:02 [PATCH] omap2/3/4: serial: Don't init UART4 for 3630 still Sergio Aguirre
2010-02-24 11:24 ` Aguirre, Sergio
2010-02-24 14:33   ` Kevin Hilman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87iq9mu2jc.fsf@deeprootsystems.com \
    --to=khilman@deeprootsystems.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=m-sonasath@ti.com \
    --cc=saaguirre@ti.com \
    --cc=tony@atomide.com \
    --cc=vikram.pandita@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.