summaryrefslogtreecommitdiff
path: root/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh
diff options
context:
space:
mode:
authorAmithash Prasad <amithash@fb.com>2019-03-09 01:24:26 +0300
committerAndrew Geissler <geissonator@yahoo.com>2019-03-11 00:20:42 +0300
commit645ef2988be6765b043c15641ea47f49cb90f930 (patch)
tree509a07c18fa39a218eaf72e05d383404784e04e2 /meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh
parentc13b82eebd60cd38cc174994520076d8857b62fa (diff)
downloadopenbmc-645ef2988be6765b043c15641ea47f49cb90f930.tar.xz
Add support for reset, cycle and sled-cycle.
Remove the requirement of the fru-id 1 from the command line. Add support to reset and cycle the server Add support to cycle the entire sled (Through the hotswap controller) Basic checks during power on/off to ensure valid initial steps. (From meta-facebook rev: af4ff94581bafa922e84b75b8eeff8b7e821328d) Change-Id: I8044e2afd52e58b095dd4ffad89e4397121a971a Signed-off-by: Amithash Prasad <amithash@fb.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh')
-rwxr-xr-xmeta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh14
1 files changed, 12 insertions, 2 deletions
diff --git a/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh b/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh
index 4e13109cb..1b1b2e3f0 100755
--- a/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh
+++ b/meta-facebook/meta-tiogapass/recipes-fbtp/fb-powerctrl/files/setup_gpio.sh
@@ -17,12 +17,22 @@ GPIO_BASE=$(cat /sys/class/gpio/gpio*/base)
set_gpio_active_low $((${GPIO_BASE} + 144 +1)) high
# FM_BMC_SSB_SMI_LPC_N, GPIO Q6, active low
-set_gpio_active_low $((${GPIO_BASE} + 128 + 6)) high
+#set_gpio_active_low $((${GPIO_BASE} + 128 + 6)) high
# FP_PWR_BTN_PASS_R_N, GPIO E3, active low
set_gpio_active_low $((${GPIO_BASE} + 32 + 3)) high
# FP_PWR_GOOD, GPIO B6, active low
-set_gpio_active_low $((${GPIO_BASE} + 8 + 6)) high
+set_gpio_active_low $((${GPIO_BASE} + 8 + 6)) in
+
+# SYSRST_BTN_OUT_N, GPIO E1, active low
+set_gpio_active_low $((${GPIO_BASE} + 32 + 1)) high
+
+# FP_PECI_MUX, active low
+set_gpio_active_low $((${GPIO_BASE} + 212)) high
+
+# Set PECI Mux to high to select Peci interface
+echo 1 > /sys/class/gpio/gpio$((${GPIO_BASE} + 212))/value
+
exit 0;