#!/bin/sh | |
. /etc/utils.sh | |
usage() { | |
echo "Usage:" | |
echo | |
echo " $0" | |
echo | |
echo " Uses gpio0 (GHN_RESET_N_L) to reset G.hn chip. No arguments." | |
echo | |
exit 99 | |
} | |
platform=$(cat /etc/platform) | |
if ! startswith "$platform" "GFLT4"; then | |
# Only GFLT400 has G.hn chip (Marvell's 88x5153) | |
exit 0 | |
fi | |
if [ "$#" -ne "0" ]; then | |
usage | |
fi | |
echo 0 > /sys/class/gpio/gpio0/value | |
echo 1 > /sys/class/gpio/gpio0/value |