2018-03-07 14:07:47 -06:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-02-16 13:50:15 -06:00
|
|
|
# Export GPIO10 if needed
|
|
|
|
[ -d /sys/class/gpio/gpio10 ] || echo 10 > /sys/class/gpio/export
|
|
|
|
echo out > /sys/class/gpio/gpio10/direction
|
|
|
|
|
|
|
|
#Toggle GPIO10 pin (to reset MUX)
|
|
|
|
echo 1 > /sys/class/gpio/gpio10/value
|
|
|
|
echo 0 > /sys/class/gpio/gpio10/value
|
|
|
|
|
|
|
|
|
|
|
|
#Power Reset
|
2018-03-07 14:07:47 -06:00
|
|
|
echo 1 > /sys/devices/platform/dell-s6000-cpld.0/power_reset
|