Merge "device/qcom/common: export the GPIOs and set I2C-5 device permission for MPQ8064" into jb

This commit is contained in:
Linux Build Service Account 2012-08-08 08:30:05 -07:00 committed by QuIC Gerrit Code Review
commit 587fb6b8ab
2 changed files with 35 additions and 0 deletions

View File

@ -136,6 +136,40 @@ case "$target" in
chmod 664 /sys/devices/system/cpu/cpu2/online
chmod 664 /sys/devices/system/cpu/cpu3/online
start qosmgrd
soc_id=`cat /sys/devices/system/soc/soc0/id`
case "$soc_id" in
"130")
echo 230 > /sys/class/gpio/export
echo 228 > /sys/class/gpio/export
echo 229 > /sys/class/gpio/export
echo "in" > /sys/class/gpio/gpio230/direction
echo "rising" > /sys/class/gpio/gpio230/edge
echo "in" > /sys/class/gpio/gpio228/direction
echo "rising" > /sys/class/gpio/gpio228/edge
echo "in" > /sys/class/gpio/gpio229/direction
echo "rising" > /sys/class/gpio/gpio229/edge
echo 253 > /sys/class/gpio/export
echo 254 > /sys/class/gpio/export
echo 257 > /sys/class/gpio/export
echo 258 > /sys/class/gpio/export
echo 259 > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio253/direction
echo "out" > /sys/class/gpio/gpio254/direction
echo "out" > /sys/class/gpio/gpio257/direction
echo "out" > /sys/class/gpio/gpio258/direction
echo "out" > /sys/class/gpio/gpio259/direction
chown media /sys/class/gpio/gpio253/value
chown media /sys/class/gpio/gpio254/value
chown media /sys/class/gpio/gpio257/value
chown media /sys/class/gpio/gpio258/value
chown media /sys/class/gpio/gpio259/value
chown media /sys/class/gpio/gpio253/direction
chown media /sys/class/gpio/gpio254/direction
chown media /sys/class/gpio/gpio257/direction
chown media /sys/class/gpio/gpio258/direction
chown media /sys/class/gpio/gpio259/direction
;;
esac
;;
esac

View File

@ -94,3 +94,4 @@
/dev/sdio_tty_ciq_00 0660 system system
/dev/tty_sdio_00 0660 system system
/dev/ttyGS0 0660 system system
/dev/i2c-5 0660 media media