Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
3.8: musb: properly set power as 500mA (value * 2)
Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
- Loading branch information
1 parent
b6f61c4
commit 08f4733
Showing
1 changed file
with
46 additions
and
0 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
patches/usb/0011-ARM-OMAP-am335x-musb-use-250-for-power.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
From 9f0d9d7a2cf5725ef737c2eecb1f72d0ec59bd23 Mon Sep 17 00:00:00 2001 | ||
From: Robert Nelson <robertcnelson@gmail.com> | ||
Date: Wed, 3 Apr 2013 13:25:38 -0500 | ||
Subject: [PATCH 11/11] ARM: OMAP: am335x: musb use 250 for power | ||
|
||
Issue first noticed by: Randy Rodes <randyrodesnn@gmail.com> | ||
https://groups.google.com/d/msg/beagleboard/qzlwO9ldULE/kXzFAY9rv8cJ | ||
|
||
According to the docs, the power value is only 8 bits, to specify 500mA | ||
this needs to be set to a value of 250: value * 2 = XmA | ||
|
||
Documentation/devicetree/bindings/usb/omap-usb.txt | ||
|
||
Signed-off-by: Robert Nelson <robertcnelson@gmail.com> | ||
--- | ||
arch/arm/boot/dts/am335x-bone-common.dtsi | 2 +- | ||
arch/arm/boot/dts/am335x-tester.dts | 2 +- | ||
2 files changed, 2 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/arch/arm/boot/dts/am335x-bone-common.dtsi b/arch/arm/boot/dts/am335x-bone-common.dtsi | ||
index ffa0a42..c0bd2db 100644 | ||
--- a/arch/arm/boot/dts/am335x-bone-common.dtsi | ||
+++ b/arch/arm/boot/dts/am335x-bone-common.dtsi | ||
@@ -444,6 +444,6 @@ | ||
|
||
&usb_otg_hs { | ||
interface_type = <1>; | ||
- power = <500>; | ||
+ power = <250>; | ||
status = "okay"; | ||
}; | ||
diff --git a/arch/arm/boot/dts/am335x-tester.dts b/arch/arm/boot/dts/am335x-tester.dts | ||
index d44bc21..7d7f5d3 100644 | ||
--- a/arch/arm/boot/dts/am335x-tester.dts | ||
+++ b/arch/arm/boot/dts/am335x-tester.dts | ||
@@ -396,6 +396,6 @@ | ||
|
||
&usb_otg_hs { | ||
interface_type = <1>; | ||
- power = <500>; | ||
+ power = <250>; | ||
status = "okay"; | ||
}; | ||
-- | ||
1.7.10.4 | ||
|