[PATCH 2/2] ARM: AM335x: beaglebone: add simple script to change usb current limit

Jan Luebbe jlu at pengutronix.de
Wed Jun 18 12:43:19 PDT 2014


Signed-off-by: Jan Luebbe <jlu at pengutronix.de>
---
 arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300 | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300

diff --git a/arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300 b/arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300
new file mode 100644
index 0000000..56313bf
--- /dev/null
+++ b/arch/arm/boards/beaglebone/defaultenv-beaglebone/init/usb-limit-1300
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+echo -n "changing USB current limit to 1300 mA... "
+i2c_write -b 0 -a 0x24 -r 0x01 0x3e
+echo "done"
-- 
1.9.1




More information about the barebox mailing list