diff options
author | Felipe Balbi <balbi@ti.com> | 2010-11-08 01:56:15 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-11-30 16:48:46 -0500 |
commit | c6c4dea4011278f03ab8a3c8329fba9098d2a892 (patch) | |
tree | 3b21c0ba621f2d113afc90f28a4b4a7b5ca98ed7 /arch/arm/mach-omap2/board-zoom.c | |
parent | 20826853853aa1e1ba219ea65f1e6ba3bd662495 (diff) |
arm: omap: zoom: substitute gpio number with symbolic name
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>
Diffstat (limited to 'arch/arm/mach-omap2/board-zoom.c')
-rw-r--r-- | arch/arm/mach-omap2/board-zoom.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-zoom.c b/arch/arm/mach-omap2/board-zoom.c index f10766ba7b5e..3da69e4102a4 100644 --- a/arch/arm/mach-omap2/board-zoom.c +++ b/arch/arm/mach-omap2/board-zoom.c | |||
@@ -31,6 +31,8 @@ | |||
31 | #include "sdram-micron-mt46h32m32lf-6.h" | 31 | #include "sdram-micron-mt46h32m32lf-6.h" |
32 | #include "sdram-hynix-h8mbx00u0mer-0em.h" | 32 | #include "sdram-hynix-h8mbx00u0mer-0em.h" |
33 | 33 | ||
34 | #define ZOOM3_EHCI_RESET_GPIO 64 | ||
35 | |||
34 | static void __init omap_zoom_init_irq(void) | 36 | static void __init omap_zoom_init_irq(void) |
35 | { | 37 | { |
36 | if (machine_is_omap_zoom2()) | 38 | if (machine_is_omap_zoom2()) |
@@ -112,7 +114,7 @@ static const struct ehci_hcd_omap_platform_data ehci_pdata __initconst = { | |||
112 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, | 114 | .port_mode[2] = EHCI_HCD_OMAP_MODE_UNKNOWN, |
113 | .phy_reset = true, | 115 | .phy_reset = true, |
114 | .reset_gpio_port[0] = -EINVAL, | 116 | .reset_gpio_port[0] = -EINVAL, |
115 | .reset_gpio_port[1] = 64, | 117 | .reset_gpio_port[1] = ZOOM3_EHCI_RESET_GPIO, |
116 | .reset_gpio_port[2] = -EINVAL, | 118 | .reset_gpio_port[2] = -EINVAL, |
117 | }; | 119 | }; |
118 | 120 | ||
@@ -122,7 +124,7 @@ static void __init omap_zoom_init(void) | |||
122 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); | 124 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBB); |
123 | } else if (machine_is_omap_zoom3()) { | 125 | } else if (machine_is_omap_zoom3()) { |
124 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); | 126 | omap3_mux_init(board_mux, OMAP_PACKAGE_CBP); |
125 | omap_mux_init_gpio(64, OMAP_PIN_OUTPUT); | 127 | omap_mux_init_gpio(ZOOM3_EHCI_RESET_GPIO, OMAP_PIN_OUTPUT); |
126 | usb_ehci_init(&ehci_pdata); | 128 | usb_ehci_init(&ehci_pdata); |
127 | } | 129 | } |
128 | 130 | ||