From: Rouven Czerwinski <rouven@czerwinskis.de>
To: distrokit@pengutronix.de
Cc: Rouven Czerwinski <r.czerwinski@pengutronix.de>
Subject: [DistroKit] [PATCH 3/4] barebox-am335x-defaultenv: add usb limit script from upstream
Date: Wed, 5 Dec 2018 08:57:57 +0100 [thread overview]
Message-ID: <20181205075758.15257-3-rouven@czerwinskis.de> (raw)
In-Reply-To: <20181205075758.15257-1-rouven@czerwinskis.de>
From: Rouven Czerwinski <r.czerwinski@pengutronix.de>
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>
---
.../barebox-am335x-defaultenv/init/usb-limit-1300 | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 configs/platform-v7a/barebox-am335x-defaultenv/init/usb-limit-1300
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"
--
2.19.1
_______________________________________________
DistroKit mailing list
DistroKit@pengutronix.de
next prev parent reply other threads:[~2018-12-05 7:57 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-05 7:57 [DistroKit] [PATCH 1/4] platform-v7a: disable CONFIG_BPFILTER_UMH Rouven Czerwinski
2018-12-05 7:57 ` [DistroKit] [PATCH 2/4] barebox-am335x-defaultenv: fix bootsource selection Rouven Czerwinski
2018-12-05 7:57 ` Rouven Czerwinski [this message]
2018-12-05 7:57 ` [DistroKit] [PATCH 4/4] barebox-am335x-defaultenv: remove state entries Rouven Czerwinski
2018-12-05 8:19 ` [DistroKit] [PATCH 1/4] platform-v7a: disable CONFIG_BPFILTER_UMH Michael Olbrich
2018-12-05 13:29 ` Rouven Czerwinski
2018-12-05 13:31 ` Michael Olbrich
2018-12-05 16:27 ` Rouven Czerwinski
2018-12-10 8:55 ` Robert Schwebel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181205075758.15257-3-rouven@czerwinskis.de \
--to=rouven@czerwinskis.de \
--cc=distrokit@pengutronix.de \
--cc=r.czerwinski@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox