diff options
Diffstat (limited to 'recipes-kernel/linux/linux-mainline-3.2/beagle/0008-Turn-on-the-USB-regulator-on-Beagle-xM-explicitly.patch')
-rw-r--r-- | recipes-kernel/linux/linux-mainline-3.2/beagle/0008-Turn-on-the-USB-regulator-on-Beagle-xM-explicitly.patch | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-mainline-3.2/beagle/0008-Turn-on-the-USB-regulator-on-Beagle-xM-explicitly.patch b/recipes-kernel/linux/linux-mainline-3.2/beagle/0008-Turn-on-the-USB-regulator-on-Beagle-xM-explicitly.patch new file mode 100644 index 00000000..1aec9520 --- /dev/null +++ b/recipes-kernel/linux/linux-mainline-3.2/beagle/0008-Turn-on-the-USB-regulator-on-Beagle-xM-explicitly.patch | |||
@@ -0,0 +1,55 @@ | |||
1 | From 3d9465ffd5becb88c1ba36b98f8375898605f529 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Nelson <robertcnelson@gmail.com> | ||
3 | Date: Thu, 23 Feb 2012 09:23:10 -0600 | ||
4 | Subject: [PATCH 08/13] Turn on the USB regulator on Beagle xM explicitly | ||
5 | |||
6 | Turn on the USB regulator on Beagle xM explicitly when the USB | ||
7 | subsystem asks for it, rather than relying on u-boot to do it. | ||
8 | |||
9 | http://www.spinics.net/lists/linux-omap/msg65102.html | ||
10 | |||
11 | Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | ||
12 | --- | ||
13 | arch/arm/mach-omap2/board-omap3beagle.c | 19 +++++++++++++++++++ | ||
14 | 1 files changed, 19 insertions(+), 0 deletions(-) | ||
15 | |||
16 | diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c | ||
17 | index e28ae72..30cb2f0 100644 | ||
18 | --- a/arch/arm/mach-omap2/board-omap3beagle.c | ||
19 | +++ b/arch/arm/mach-omap2/board-omap3beagle.c | ||
20 | @@ -411,6 +411,24 @@ static struct regulator_consumer_supply beagle_vsim_supply[] = { | ||
21 | REGULATOR_SUPPLY("vmmc_aux", "omap_hsmmc.0"), | ||
22 | }; | ||
23 | |||
24 | +static struct regulator_consumer_supply beagle_usb_supply[] = { | ||
25 | + REGULATOR_SUPPLY("hsusb0", "ehci-omap.0"), | ||
26 | + REGULATOR_SUPPLY("hsusb1", "ehci-omap.0") | ||
27 | +}; | ||
28 | + | ||
29 | +static struct regulator_init_data usb_power = { | ||
30 | + .constraints = { | ||
31 | + .min_uV = 1800000, | ||
32 | + .max_uV = 1800000, | ||
33 | + .valid_modes_mask = REGULATOR_MODE_NORMAL, | ||
34 | + .valid_ops_mask = REGULATOR_CHANGE_VOLTAGE | ||
35 | + | REGULATOR_CHANGE_MODE | ||
36 | + | REGULATOR_CHANGE_STATUS, | ||
37 | + }, | ||
38 | + .num_consumer_supplies = ARRAY_SIZE(beagle_usb_supply), | ||
39 | + .consumer_supplies = beagle_usb_supply | ||
40 | +}; | ||
41 | + | ||
42 | static struct gpio_led gpio_leds[]; | ||
43 | |||
44 | static int beagle_twl_gpio_setup(struct device *dev, | ||
45 | @@ -513,6 +531,7 @@ static struct twl4030_platform_data beagle_twldata = { | ||
46 | .gpio = &beagle_gpio_data, | ||
47 | .vmmc1 = &beagle_vmmc1, | ||
48 | .vsim = &beagle_vsim, | ||
49 | + .vaux2 = &usb_power, | ||
50 | }; | ||
51 | |||
52 | static struct i2c_board_info __initdata beagle_i2c_eeprom[] = { | ||
53 | -- | ||
54 | 1.7.7.4 | ||
55 | |||