Skip to content

Commit

Permalink
imx8mm-var-dart: Added udev USB rules
Browse files Browse the repository at this point in the history
Enabled autosuspend for USB hub on DART-MX8M-MINI carrier board
to reduce power consumption
  • Loading branch information
Felix Radensky committed Feb 25, 2019
1 parent 51eb1ca commit 9a0d219
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes-core/udev/files/imx8mm-var-dart/usb-power.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Microchip Technology USB2740 Hub
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0424", ATTR{idProduct}=="2740", TEST=="power/control", ATTR{power/control}="auto"
6 changes: 6 additions & 0 deletions recipes-core/udev/udev-rules-imx.bbappend
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

SRC_URI_append_imx8m-var-dart = " file://usb-power.rules"
SRC_URI_append_imx8mm-var-dart = " file://usb-power.rules"

do_install_append_imx8m-var-dart () {
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/usb-power.rules ${D}${sysconfdir}/udev/rules.d/
}

do_install_append_imx8mm-var-dart () {
install -d ${D}${sysconfdir}/udev/rules.d
install -m 0644 ${WORKDIR}/usb-power.rules ${D}${sysconfdir}/udev/rules.d/
}

0 comments on commit 9a0d219

Please sign in to comment.