usb2514: skip gpio script on kernels that export GPIOs themselves
This commit is contained in:
parent
eefee096cd
commit
53f89ad74d
|
@ -1,5 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
# in more recent kernels the kernel is itself taking care of exporting
|
||||
# the right GPIOs and setting their direction and level. We can detect
|
||||
# this by checking for the below sysfs path
|
||||
if [ -d /sys/devices/platform/sob-odu.0 ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
cd /sys/class/gpio
|
||||
|
||||
# !mdm1_pwr_ind
|
||||
|
|
|
@ -4,7 +4,7 @@ LICENSE = "GPLv2+"
|
|||
LIC_FILES_CHKSUM = "file://${WORKDIR}/usb2514.c;beginline=1;endline=18;md5=3b8421a1c05d21add65cc20fccfa29cd"
|
||||
DEPENDS += "lmsensors-apps"
|
||||
|
||||
PR = "r1"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "file://usb2514.c \
|
||||
file://gpio_usb2514 \
|
||||
|
|
Loading…
Reference in New Issue