diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-26 08:28:35 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-02-09 10:34:51 -0500 |
commit | 3259701cc2969ae16a0018d7e3a89f327fa23a6e (patch) | |
tree | 3358d9ceab051cfe25ccf1b7def49078722d26be /drivers/usb/host/ohci-sa1111.c | |
parent | ae99ddbc976572194e8a68cb9ca1e27805ce30c7 (diff) |
ARM: sa11x0: badge4: move board specific ohci initialization to badge4.c
Move the handling of the 5v supply into badge4.c, removing this board
specific detail from the sa1111 ohci driver.
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/usb/host/ohci-sa1111.c')
-rw-r--r-- | drivers/usb/host/ohci-sa1111.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/usb/host/ohci-sa1111.c b/drivers/usb/host/ohci-sa1111.c index f61f4f90529e..48300080433c 100644 --- a/drivers/usb/host/ohci-sa1111.c +++ b/drivers/usb/host/ohci-sa1111.c | |||
@@ -16,7 +16,6 @@ | |||
16 | #include <mach/hardware.h> | 16 | #include <mach/hardware.h> |
17 | #include <asm/mach-types.h> | 17 | #include <asm/mach-types.h> |
18 | #include <mach/assabet.h> | 18 | #include <mach/assabet.h> |
19 | #include <mach/badge4.h> | ||
20 | #include <asm/hardware/sa1111.h> | 19 | #include <asm/hardware/sa1111.h> |
21 | 20 | ||
22 | #ifndef CONFIG_SA1111 | 21 | #ifndef CONFIG_SA1111 |
@@ -35,12 +34,6 @@ static int sa1111_start_hc(struct sa1111_dev *dev) | |||
35 | printk(KERN_DEBUG "%s: starting SA-1111 OHCI USB Controller\n", | 34 | printk(KERN_DEBUG "%s: starting SA-1111 OHCI USB Controller\n", |
36 | __FILE__); | 35 | __FILE__); |
37 | 36 | ||
38 | #ifdef CONFIG_SA1100_BADGE4 | ||
39 | if (machine_is_badge4()) { | ||
40 | badge4_set_5V(BADGE4_5V_USB, 1); | ||
41 | } | ||
42 | #endif | ||
43 | |||
44 | if (machine_is_xp860() || | 37 | if (machine_is_xp860() || |
45 | machine_has_neponset() || | 38 | machine_has_neponset() || |
46 | machine_is_pfs168() || | 39 | machine_is_pfs168() || |
@@ -84,13 +77,6 @@ static void sa1111_stop_hc(struct sa1111_dev *dev) | |||
84 | * Stop the USB clock. | 77 | * Stop the USB clock. |
85 | */ | 78 | */ |
86 | sa1111_disable_device(dev); | 79 | sa1111_disable_device(dev); |
87 | |||
88 | #ifdef CONFIG_SA1100_BADGE4 | ||
89 | if (machine_is_badge4()) { | ||
90 | /* Disable power to the USB bus */ | ||
91 | badge4_set_5V(BADGE4_5V_USB, 0); | ||
92 | } | ||
93 | #endif | ||
94 | } | 80 | } |
95 | 81 | ||
96 | 82 | ||