diff options
Diffstat (limited to 'arch/arm/mach-mx5/board-mx51_babbage.c')
-rw-r--r-- | arch/arm/mach-mx5/board-mx51_babbage.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/arch/arm/mach-mx5/board-mx51_babbage.c b/arch/arm/mach-mx5/board-mx51_babbage.c index bea4e4135f9d..c7b3fabf50f9 100644 --- a/arch/arm/mach-mx5/board-mx51_babbage.c +++ b/arch/arm/mach-mx5/board-mx51_babbage.c | |||
@@ -16,9 +16,6 @@ | |||
16 | #include <linux/gpio.h> | 16 | #include <linux/gpio.h> |
17 | #include <linux/delay.h> | 17 | #include <linux/delay.h> |
18 | #include <linux/io.h> | 18 | #include <linux/io.h> |
19 | #include <linux/fsl_devices.h> | ||
20 | #include <linux/fec.h> | ||
21 | #include <linux/gpio_keys.h> | ||
22 | #include <linux/input.h> | 19 | #include <linux/input.h> |
23 | #include <linux/spi/flash.h> | 20 | #include <linux/spi/flash.h> |
24 | #include <linux/spi/spi.h> | 21 | #include <linux/spi/spi.h> |
@@ -26,7 +23,6 @@ | |||
26 | #include <mach/common.h> | 23 | #include <mach/common.h> |
27 | #include <mach/hardware.h> | 24 | #include <mach/hardware.h> |
28 | #include <mach/iomux-mx51.h> | 25 | #include <mach/iomux-mx51.h> |
29 | #include <mach/mxc_ehci.h> | ||
30 | 26 | ||
31 | #include <asm/irq.h> | 27 | #include <asm/irq.h> |
32 | #include <asm/setup.h> | 28 | #include <asm/setup.h> |
@@ -208,18 +204,16 @@ static inline void babbage_usbhub_reset(void) | |||
208 | { | 204 | { |
209 | int ret; | 205 | int ret; |
210 | 206 | ||
211 | /* Bring USB hub out of reset */ | 207 | /* Reset USB hub */ |
212 | ret = gpio_request(BABBAGE_USB_HUB_RESET, "GPIO1_7"); | 208 | ret = gpio_request_one(BABBAGE_USB_HUB_RESET, |
209 | GPIOF_OUT_INIT_LOW, "GPIO1_7"); | ||
213 | if (ret) { | 210 | if (ret) { |
214 | printk(KERN_ERR"failed to get GPIO_USB_HUB_RESET: %d\n", ret); | 211 | printk(KERN_ERR"failed to get GPIO_USB_HUB_RESET: %d\n", ret); |
215 | return; | 212 | return; |
216 | } | 213 | } |
217 | gpio_direction_output(BABBAGE_USB_HUB_RESET, 0); | ||
218 | 214 | ||
219 | /* USB HUB RESET - De-assert USB HUB RESET_N */ | 215 | msleep(2); |
220 | msleep(1); | 216 | /* Deassert reset */ |
221 | gpio_set_value(BABBAGE_USB_HUB_RESET, 0); | ||
222 | msleep(1); | ||
223 | gpio_set_value(BABBAGE_USB_HUB_RESET, 1); | 217 | gpio_set_value(BABBAGE_USB_HUB_RESET, 1); |
224 | } | 218 | } |
225 | 219 | ||
@@ -361,7 +355,7 @@ static void __init mx51_babbage_init(void) | |||
361 | 355 | ||
362 | /* Set the PAD settings for the pwr key. */ | 356 | /* Set the PAD settings for the pwr key. */ |
363 | mxc_iomux_v3_setup_pad(power_key); | 357 | mxc_iomux_v3_setup_pad(power_key); |
364 | imx51_add_gpio_keys(&imx_button_data); | 358 | imx_add_gpio_keys(&imx_button_data); |
365 | 359 | ||
366 | imx51_add_imx_i2c(0, &babbage_i2c_data); | 360 | imx51_add_imx_i2c(0, &babbage_i2c_data); |
367 | imx51_add_imx_i2c(1, &babbage_i2c_data); | 361 | imx51_add_imx_i2c(1, &babbage_i2c_data); |