Skip to contentSkip to conversation

Combine zoom board-files

PATCH In review Felipe Balbi 3 participants 7 messages Oct 20, 2010 – Nov 6, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Combine zoom board-files

Those boards are so similar that they don't
deserve separate board files.

Felipe Balbi (2):
arm: omap: combine zoom2 and zoom3 board-files
arm: omap: zoom: substitute gpio number with symbolic name

 arch/arm/mach-omap2/Makefile                       |    4 +-
 .../arm/mach-omap2/{board-zoom2.c => board-zoom.c} |   54 +++++++--
 arch/arm/mach-omap2/board-zoom3.c                  |  133 --------------------
 3 files changed, 47 insertions(+), 144 deletions(-)
 rename arch/arm/mach-omap2/{board-zoom2.c => board-zoom.c} (72%)
 delete mode 100644 arch/arm/mach-omap2/board-zoom3.c
Signature · 1 line
1.7.3.1.120.g38a18
#1 lore raw

PATCH 1/2 arm: omap: combine zoom2 and zoom3 board-files

They are extremely similar anyway, let's get rid
of one file.

While at that, also remove the empty zoom_config
variable.

---
 arch/arm/mach-omap2/Makefile                       |    4 +-
 .../arm/mach-omap2/{board-zoom2.c => board-zoom.c} |   52 +++++++--
 arch/arm/mach-omap2/board-zoom3.c                  |  133 --------------------
 3 files changed, 45 insertions(+), 144 deletions(-)
 rename arch/arm/mach-omap2/{board-zoom2.c => board-zoom.c} (73%)
 delete mode 100644 arch/arm/mach-omap2/board-zoom3.c
arch/arm/mach-omap2/Makefile +2 -2
index 7352412..a57ae62 100644
@@ -140,12 +140,12 @@ obj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
 					   board-rx51-peripherals.o \
 					   board-rx51-video.o \
 					   hsmmc.o
-obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
+obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom.o \
 					   board-zoom-peripherals.o \
 					   board-flash.o \
 					   hsmmc.o \
 					   board-zoom-debugboard.o
-obj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom3.o \
+obj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom.o \
 					   board-zoom-peripherals.o \
 					   board-flash.o \
 					   hsmmc.o \
arch/arm/mach-omap2/board-zoom.c renamed from arch/arm/mach-omap2/board-zoom2.c +43 -9

86 lines not on this page · raw message

arch/arm/mach-omap2/board-zoom3.c deleted +0 -133

133 lines not on this page · raw message

Signature · 1 line
1.7.3.1.120.g38a18
maintainer
#2 lore raw

Re: [PATCH 1/2] arm: omap: combine zoom2 and zoom3 board-files

Quoted 5 lines · Felipe Balbi

They are extremely similar anyway, let's get rid
of one file.

While at that, also remove the empty zoom_config
variable.

Nice, that saves up some memory.

Tony

#3 lore raw

PATCH 2/2 arm: omap: zoom: substitute gpio number with symbolic name

In reply to Felipe Balbi

It's easier to understand what that number means and also avoids problems if we ever have to change it.

---
 arch/arm/mach-omap2/board-zoom.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/board-zoom.c +4 -2
index 4215abc..d641be8 100644
@@ -30,6 +30,8 @@
 #include "sdram-micron-mt46h32m32lf-6.h"
 #include "sdram-hynix-h8mbx00u0mer-0em.h"
 
+#define ZOOM3_EHCI_RESET_GPIO		64
+
 static void __init omap_zoom_init_irq(void)
 {
 	if (machine_is_omap_zoom2())
@@ -146,7 +148,7 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
 	.port_mode[2]		= EHCI_HCD_OMAP_MODE_UNKNOWN,
 	.phy_reset		= true,
 	.reset_gpio_port[0]	= -EINVAL,
-	.reset_gpio_port[1]	= 64,
+	.reset_gpio_port[1]	= ZOOM3_EHCI_RESET_GPIO,
 	.reset_gpio_port[2]	= -EINVAL,
 };
 
@@ -156,7 +158,7 @@ static void __init omap_zoom_init(void)
 		omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
 	} else if (machine_is_omap_zoom3()) {
 		omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
-		omap_mux_init_gpio(64, OMAP_PIN_OUTPUT);
+		omap_mux_init_gpio(ZOOM3_EHCI_RESET_GPIO, OMAP_PIN_OUTPUT);
 		usb_ehci_init(&ehci_pdata);
 	}
 
Signature · 1 line
1.7.3.1.120.g38a18
author Tested-by Anand Gadiyar on the v1 series
#4 lore raw
In reply to Felipe Balbi

Hi,

Quoted 6 lines · Felipe

Those boards are so similar that they don't
deserve separate board files.

Felipe Balbi (2):
arm: omap: combine zoom2 and zoom3 board-files
arm: omap: zoom: substitute gpio number with symbolic name

a gentle ping on these two patches. Here are patchwork links:

[1] https://patchwork.kernel.org/patch/267491/
[2] https://patchwork.kernel.org/patch/267501/

they are also rebased on top of today's l-o and compile tested with omap2plus_defconfig, attached to this mail.

Signature · 1 line
balbi
Quoted 1 line

From 74e7c8eba11d4e50513c3484843a634ac29584be Mon Sep 17 00:00:00 2001

From: Felipe Balbi <[email protected]>
Date: Mon, 11 Oct 2010 10:01:17 +0300
Subject: [PATCH 2/2] arm: omap: zoom: substitute gpio number with symbolic name
Organization: Texas Instruments\n

It's easier to understand what that number means and also avoids problems if we ever have to change it.

---
 arch/arm/mach-omap2/board-zoom.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/mach-omap2/board-zoom.c +4 -2
index f10766b..3da69e4 100644
@@ -31,6 +31,8 @@
 #include "sdram-micron-mt46h32m32lf-6.h"
 #include "sdram-hynix-h8mbx00u0mer-0em.h"
 
+#define ZOOM3_EHCI_RESET_GPIO		64
+
 static void __init omap_zoom_init_irq(void)
 {
 	if (machine_is_omap_zoom2())
@@ -112,7 +114,7 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = {
 	.port_mode[2]		= EHCI_HCD_OMAP_MODE_UNKNOWN,
 	.phy_reset		= true,
 	.reset_gpio_port[0]	= -EINVAL,
-	.reset_gpio_port[1]	= 64,
+	.reset_gpio_port[1]	= ZOOM3_EHCI_RESET_GPIO,
 	.reset_gpio_port[2]	= -EINVAL,
 };
 
@@ -122,7 +124,7 @@ static void __init omap_zoom_init(void)
 		omap3_mux_init(board_mux, OMAP_PACKAGE_CBB);
 	} else if (machine_is_omap_zoom3()) {
 		omap3_mux_init(board_mux, OMAP_PACKAGE_CBP);
-		omap_mux_init_gpio(64, OMAP_PIN_OUTPUT);
+		omap_mux_init_gpio(ZOOM3_EHCI_RESET_GPIO, OMAP_PIN_OUTPUT);
 		usb_ehci_init(&ehci_pdata);
 	}
 
Signature · 1 line
1.7.3.2.146.gca209
Quoted 1 line

From 5d2b5a7bde72cca63d981b6c28cf3804da8c49d4 Mon Sep 17 00:00:00 2001

From: Felipe Balbi <[email protected]>
Date: Fri, 8 Oct 2010 15:24:34 +0300
Subject: [PATCH 1/2] arm: omap: combine zoom2 and zoom3 board-files
Organization: Texas Instruments\n

They are extremely similar anyway, let's get rid
of one file.

While at that, also remove the empty zoom_config
variable.

---
 arch/arm/mach-omap2/Makefile                       |    4 +-
 .../arm/mach-omap2/{board-zoom3.c => board-zoom.c} |  100 ++++++++++-------
 arch/arm/mach-omap2/board-zoom2.c                  |  117 --------------------
 3 files changed, 61 insertions(+), 160 deletions(-)
 rename arch/arm/mach-omap2/{board-zoom3.c => board-zoom.c} (77%)
 delete mode 100644 arch/arm/mach-omap2/board-zoom2.c
arch/arm/mach-omap2/Makefile +2 -2
index 60e51bc..b0810b9 100644
@@ -144,12 +144,12 @@ obj-$(CONFIG_MACH_NOKIA_RX51)		+= board-rx51.o \
 					   board-rx51-peripherals.o \
 					   board-rx51-video.o \
 					   hsmmc.o
-obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom2.o \
+obj-$(CONFIG_MACH_OMAP_ZOOM2)		+= board-zoom.o \
 					   board-zoom-peripherals.o \
 					   board-flash.o \
 					   hsmmc.o \
 					   board-zoom-debugboard.o
-obj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom3.o \
+obj-$(CONFIG_MACH_OMAP_ZOOM3)		+= board-zoom.o \
 					   board-zoom-peripherals.o \
 					   board-flash.o \
 					   hsmmc.o \
arch/arm/mach-omap2/board-zoom.c renamed from arch/arm/mach-omap2/board-zoom3.c +59 -41

140 lines not on this page · raw message

arch/arm/mach-omap2/board-zoom2.c deleted +0 -117

117 lines not on this page · raw message

Signature · 1 line
1.7.3.2.146.gca209
maintainer
#5 lore raw
Quoted 10 lines · Felipe Balbi

Hi,

Quoted 6 lines · Felipe

Those boards are so similar that they don't
deserve separate board files.

Felipe Balbi (2):
arm: omap: combine zoom2 and zoom3 board-files
arm: omap: zoom: substitute gpio number with symbolic name

Quoted 7 lines

a gentle ping on these two patches. Here are patchwork links:

[1] https://patchwork.kernel.org/patch/267491/
[2] https://patchwork.kernel.org/patch/267501/

they are also rebased on top of today's l-o and compile tested with omap2plus_defconfig, attached to this mail.

Looks good to me, but please can you please repost with also linux-arm-kernel list Cc'd? That way I don't have to repost before merging.

Regards,

Tony

#6 lore raw

Hi Tony,

Quoted 3 lines · Tony Lindgren

Looks good to me, but please can you please repost with also linux-arm-kernel list Cc'd? That way I don't have to repost before merging.

Sure, will do that first thing on monday. Sorry that I forgot.

Signature · 1 line
balbi