public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] omap2/3/4: serial: Half revert multiboot changes
@ 2010-02-24  7:30 Aguirre, Sergio
  2010-02-24  7:40 ` Aguirre, Sergio
  0 siblings, 1 reply; 6+ messages in thread
From: Aguirre, Sergio @ 2010-02-24  7:30 UTC (permalink / raw)
  To: Tony Lindgren; +Cc: linux-omap@vger.kernel.org, Sonasath, Moiz, Pandita, Vikram

[-- Attachment #1: Type: text/plain, Size: 2020 bytes --]

>From 14bc4ee14ac5a3dab79d9292bf22ab0401879cd5 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 24 Feb 2010 01:15:55 -0600
Subject: [PATCH] omap2/3/4: serial: Half revert multiboot changes

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. External UART must be correctly initialized already
by board-zoom-debugboard.c file, therefore the addition on UART4
initialization can't be done blindly (i.e. board agnostic)

This patch removes the 36xx uart4 init for the above reason.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 arch/arm/mach-omap2/serial.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index b79bc89..fe3122b 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -115,7 +115,6 @@ static struct plat_serial8250_port serial_platform_data2[] = {
 	}
 };
 
-#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
 static struct plat_serial8250_port serial_platform_data3[] = {
 	{
 		.irq		= 70,
@@ -132,11 +131,6 @@ static inline void omap2_set_globals_uart4(struct omap_globals *omap2_globals)
 {
 	serial_platform_data3[0].mapbase = omap2_globals->uart4_phys;
 }
-#else
-static inline void omap2_set_globals_uart4(struct omap_globals *omap2_globals)
-{
-}
-#endif
 
 void __init omap2_set_globals_uart(struct omap_globals *omap2_globals)
 {
@@ -597,7 +591,7 @@ static struct omap_uart_state omap_uart[] = {
 			},
 		},
 	},
-#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
+#ifdef CONFIG_ARCH_OMAP4
 	{
 		.pdev = {
 			.name			= "serial8250",
@@ -764,7 +758,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


[-- Attachment #2: 0001-omap2-3-4-serial-Half-revert-multiboot-changes.patch --]
[-- Type: application/octet-stream, Size: 1954 bytes --]

From 14bc4ee14ac5a3dab79d9292bf22ab0401879cd5 Mon Sep 17 00:00:00 2001
From: Sergio Aguirre <saaguirre@ti.com>
Date: Wed, 24 Feb 2010 01:15:55 -0600
Subject: [PATCH] omap2/3/4: serial: Half revert multiboot changes

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. External UART must be correctly initialized already
by board-zoom-debugboard.c file, therefore the addition on UART4
initialization can't be done blindly (i.e. board agnostic)

This patch removes the 36xx uart4 init for the above reason.

Signed-off-by: Sergio Aguirre <saaguirre@ti.com>
---
 arch/arm/mach-omap2/serial.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index b79bc89..fe3122b 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -115,7 +115,6 @@ static struct plat_serial8250_port serial_platform_data2[] = {
 	}
 };
 
-#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
 static struct plat_serial8250_port serial_platform_data3[] = {
 	{
 		.irq		= 70,
@@ -132,11 +131,6 @@ static inline void omap2_set_globals_uart4(struct omap_globals *omap2_globals)
 {
 	serial_platform_data3[0].mapbase = omap2_globals->uart4_phys;
 }
-#else
-static inline void omap2_set_globals_uart4(struct omap_globals *omap2_globals)
-{
-}
-#endif
 
 void __init omap2_set_globals_uart(struct omap_globals *omap2_globals)
 {
@@ -597,7 +591,7 @@ static struct omap_uart_state omap_uart[] = {
 			},
 		},
 	},
-#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_ARCH_OMAP4)
+#ifdef CONFIG_ARCH_OMAP4
 	{
 		.pdev = {
 			.name			= "serial8250",
@@ -764,7 +758,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] 6+ messages in thread

end of thread, other threads:[~2010-02-25 20:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-24  7:30 [PATCH] omap2/3/4: serial: Half revert multiboot changes Aguirre, Sergio
2010-02-24  7:40 ` Aguirre, Sergio
2010-02-24 16:21   ` Tony Lindgren
2010-02-25  3:07     ` Aguirre, Sergio
2010-02-25 18:55       ` Tony Lindgren
2010-02-25 20:36         ` Aguirre, Sergio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox