blob: a0b5c5ae17366a4cb0e84054c5c107dfd77bbc53 [file] [log] [blame]
#!/bin/bash -e
# shellcheck source=meta-facebook/meta-bletchley/recipes-bletchley/plat-tools/files/bletchley-common-functions
source /usr/libexec/bletchley-common-functions
# set initial value for GPIO output pins
set_gpio SEL_SPI2_MUX 1
set_gpio SPI2_MUX1 1
set_gpio SPI2_MUX2 1
set_gpio SPI2_MUX3 1
set_gpio SWITCH_FRU_MUX 1
set_gpio BAT_DETECT 1
set_gpio BMC_BT_WP0_N 1
set_gpio BMC_BT_WP1_N 1
set_gpio USB2_SEL0_A 1
set_gpio USB2_SEL1_A 1
set_gpio USB2_SEL0_B 1
set_gpio USB2_SEL1_B 1
set_gpio RST_FRONT_IOEXP_N 1
set_gpio BSM_FLASH_LATCH_N 1
# set initial duty value for each fan
set_fan 0 70
set_fan 1 70
set_fan 2 70
set_fan 3 70
exit 0;