* [PATCH] omap2/3/4: serial: Don't init UART4 for 3630 still
@ 2010-02-24 9:02 Sergio Aguirre
2010-02-24 11:24 ` Aguirre, Sergio
0 siblings, 1 reply; 3+ messages in thread
From: Sergio Aguirre @ 2010-02-24 9:02 UTC (permalink / raw)
To: Tony Lindgren; +Cc: linux-omap, Vikram Pandita, Moiz Sonasath, Sergio Aguirre
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.
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
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH] omap2/3/4: serial: Don't init UART4 for 3630 still
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
0 siblings, 1 reply; 3+ messages in thread
From: Aguirre, Sergio @ 2010-02-24 11:24 UTC (permalink / raw)
To: Aguirre, Sergio, Tony Lindgren
Cc: linux-omap@vger.kernel.org, Pandita, Vikram, Sonasath, Moiz
> -----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...
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?
Regards,
Sergio
>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] omap2/3/4: serial: Don't init UART4 for 3630 still
2010-02-24 11:24 ` Aguirre, Sergio
@ 2010-02-24 14:33 ` Kevin Hilman
0 siblings, 0 replies; 3+ messages in thread
From: Kevin Hilman @ 2010-02-24 14:33 UTC (permalink / raw)
To: Aguirre, Sergio
Cc: Tony Lindgren, linux-omap@vger.kernel.org, Pandita, Vikram,
Sonasath, Moiz
"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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-02-24 14:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.