diff options
author | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2018-11-28 06:32:20 +0100 |
---|---|---|
committer | Rouven Czerwinski <r.czerwinski@pengutronix.de> | 2018-12-07 15:44:48 +0100 |
commit | 94463f6b1669a7b44743d2484b4bfc62b081c751 (patch) | |
tree | bc27d630d1fb5ae0102d2d199e66984b78601195 | |
parent | bfb4e73fc5126aa01b93810bd34930012100278d (diff) | |
download | DistroKit-94463f6b1669a7b44743d2484b4bfc62b081c751.tar.gz DistroKit-94463f6b1669a7b44743d2484b4bfc62b081c751.tar.xz |
barebox-am335x-defaultenv: add usb limit script from upstream
The barebox beaglebone defaultenv contains an init script to adjust the
usb-limit to 1300mA. Import from upstream to be consistent with the barebox
defaultenv.
Signed-off-by: Rouven Czerwinski <r.czerwinski@pengutronix.de>
-rw-r--r-- | configs/platform-v7a/barebox-am335x-defaultenv/init/usb-limit-1300 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/platform-v7a/barebox-am335x-defaultenv/init/usb-limit-1300 b/configs/platform-v7a/barebox-am335x-defaultenv/init/usb-limit-1300 new file mode 100644 index 0000000..56313bf --- /dev/null +++ b/configs/platform-v7a/barebox-am335x-defaultenv/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" |