diff options
-rw-r--r-- | arch/arm/mach-sa1100/badge4.c | 15 | ||||
-rw-r--r-- | drivers/usb/host/ohci-sa1111.c | 14 |
2 files changed, 15 insertions, 14 deletions
diff --git a/arch/arm/mach-sa1100/badge4.c b/arch/arm/mach-sa1100/badge4.c index b07a2c024cb7..d84924993bad 100644 --- a/arch/arm/mach-sa1100/badge4.c +++ b/arch/arm/mach-sa1100/badge4.c | |||
@@ -51,8 +51,23 @@ static struct resource sa1111_resources[] = { | |||
51 | }, | 51 | }, |
52 | }; | 52 | }; |
53 | 53 | ||
54 | static int badge4_sa1111_enable(void *data, unsigned devid) | ||
55 | { | ||
56 | if (devid == SA1111_DEVID_USB) | ||
57 | badge4_set_5V(BADGE4_5V_USB, 1); | ||
58 | return 0; | ||
59 | } | ||
60 | |||
61 | static void badge4_sa1111_disable(void *data, unsigned devid) | ||
62 | { | ||
63 | if (devid == SA1111_DEVID_USB) | ||
64 | badge4_set_5V(BADGE4_5V_USB, 0); | ||
65 | } | ||
66 | |||
54 | static struct sa1111_platform_data sa1111_info = { | 67 | static struct sa1111_platform_data sa1111_info = { |
55 | .irq_base = IRQ_BOARD_END, | 68 | .irq_base = IRQ_BOARD_END, |
69 | .enable = badge4_sa1111_enable, | ||
70 | .disable = badge4_sa1111_disable, | ||
56 | }; | 71 | }; |
57 | 72 | ||
58 | static u64 sa1111_dmamask = 0xffffffffUL; | 73 | static u64 sa1111_dmamask = 0xffffffffUL; |
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 | ||