arm: omap: zoom: substitute gpio number with symbolic name
authorFelipe Balbi <balbi@ti.com>
Mon, 8 Nov 2010 06:56:15 +0000 (06:56 +0000)
committerTony Lindgren <tony@atomide.com>
Tue, 30 Nov 2010 21:48:46 +0000 (13:48 -0800)
It's easier to understand what that number means and
also avoids problems if we ever have to change it.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/board-zoom.c

index f10766ba7b5ed2c02473d8d2b9d3f8d8140ac788..3da69e4102a4a23b21331872f3915543a1a43196 100644 (file)
@@ -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);
        }