Skip to content
Snippets Groups Projects
Commit 50853e54 authored by Benjamin Larsson's avatar Benjamin Larsson
Browse files

panther: add support for setting gpio pins to fixed values

parent 857ee5b0
Branches
No related tags found
No related merge requests found
......@@ -19,6 +19,7 @@ config board 'board'
option ethernetPortNames 'LAN1 LAN2 LAN3 LAN4 WAN'
option ethernetPortOrder 'eth0 eth1 eth2 eth3 eth4'
option ethernetLanPorts 'eth0 eth1 eth2 eth3'
option gpio_one '67 40 22'
###############################################################################
# Button config, start
......
......@@ -21,6 +21,8 @@ config board 'board'
option ethernetPortNames 'LAN1 LAN2 LAN3 LAN4 LAN5 WAN'
option ethernetPortOrder 'eth0 eth1 eth2 eth3 eth4 eth5'
option ethernetLanPorts 'eth0 eth1 eth2 eth3 eth4'
option gpio_zero '0 1 3 67'
option gpio_one '2 40'
###############################################################################
# Button config, start
......
#!/bin/sh /etc/rc.common
START=19
USE_PROCD=1
boot() {
# set static gpios
# one
for gpio in $(db -q get hw.board.gpio_one); do
brcm_fw_tool set -x $gpio -p 1 >/dev/null
done
# zero
for gpio in $(db -q get hw.board.gpio_zero); do
brcm_fw_tool set -x $gpio -p 0 >/dev/null
done
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment