blob: a0b5c5ae17366a4cb0e84054c5c107dfd77bbc53 [file] [log] [blame]
Howard Chiu0eb09a12021-12-09 13:27:04 +08001#!/bin/bash -e
2
Potin Lai501f4c72022-06-13 13:23:57 +08003# shellcheck source=meta-facebook/meta-bletchley/recipes-bletchley/plat-tools/files/bletchley-common-functions
4source /usr/libexec/bletchley-common-functions
Howard Chiu0eb09a12021-12-09 13:27:04 +08005
6# set initial value for GPIO output pins
7set_gpio SEL_SPI2_MUX 1
8set_gpio SPI2_MUX1 1
9set_gpio SPI2_MUX2 1
10set_gpio SPI2_MUX3 1
11set_gpio SWITCH_FRU_MUX 1
12set_gpio BAT_DETECT 1
Potin Lai9428ff22022-05-10 12:19:46 +080013set_gpio BMC_BT_WP0_N 1
14set_gpio BMC_BT_WP1_N 1
Howard Chiu0eb09a12021-12-09 13:27:04 +080015set_gpio USB2_SEL0_A 1
16set_gpio USB2_SEL1_A 1
17set_gpio USB2_SEL0_B 1
18set_gpio USB2_SEL1_B 1
Potin Lai9428ff22022-05-10 12:19:46 +080019set_gpio RST_FRONT_IOEXP_N 1
20set_gpio BSM_FLASH_LATCH_N 1
Howard Chiu0eb09a12021-12-09 13:27:04 +080021
22# set initial duty value for each fan
23set_fan 0 70
24set_fan 1 70
25set_fan 2 70
26set_fan 3 70
27
28exit 0;