diff --git a/iopsys-brcm63xx-arm/base-files/lib/db/boards/FT-P3410B b/iopsys-brcm63xx-arm/base-files/lib/db/boards/FT-P3410B index e7ea0a1b28cabc167eb16e22b1d0709701a6fd64..b314cff9d7c1435368d110ab86ae05687929ab04 100644 --- a/iopsys-brcm63xx-arm/base-files/lib/db/boards/FT-P3410B +++ b/iopsys-brcm63xx-arm/base-files/lib/db/boards/FT-P3410B @@ -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 diff --git a/iopsys-brcm63xx-arm/base-files/lib/db/boards/XG6846B b/iopsys-brcm63xx-arm/base-files/lib/db/boards/XG6846B index 3ba05c292c448b0e99c057a1c7c1f6b86e9befdd..d46da86d67b117cf65d48332fbc4d07aa1eecd77 100644 --- a/iopsys-brcm63xx-arm/base-files/lib/db/boards/XG6846B +++ b/iopsys-brcm63xx-arm/base-files/lib/db/boards/XG6846B @@ -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 diff --git a/iopsys-brcm63xx-arm/panther/base-files/etc/init.d/hw_setup b/iopsys-brcm63xx-arm/panther/base-files/etc/init.d/hw_setup new file mode 100644 index 0000000000000000000000000000000000000000..c75a7184d54555b4fc0c1e3f394f096bf699cbad --- /dev/null +++ b/iopsys-brcm63xx-arm/panther/base-files/etc/init.d/hw_setup @@ -0,0 +1,17 @@ +#!/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 +} +