Howard Chiu | 0eb09a1 | 2021-12-09 13:27:04 +0800 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | |
Potin Lai | 501f4c7 | 2022-06-13 13:23:57 +0800 | [diff] [blame] | 3 | # shellcheck source=meta-facebook/meta-bletchley/recipes-bletchley/plat-tools/files/bletchley-common-functions |
| 4 | source /usr/libexec/bletchley-common-functions |
Howard Chiu | 0eb09a1 | 2021-12-09 13:27:04 +0800 | [diff] [blame] | 5 | |
| 6 | # set initial value for GPIO output pins |
| 7 | set_gpio SEL_SPI2_MUX 1 |
| 8 | set_gpio SPI2_MUX1 1 |
| 9 | set_gpio SPI2_MUX2 1 |
| 10 | set_gpio SPI2_MUX3 1 |
| 11 | set_gpio SWITCH_FRU_MUX 1 |
| 12 | set_gpio BAT_DETECT 1 |
Potin Lai | 9428ff2 | 2022-05-10 12:19:46 +0800 | [diff] [blame] | 13 | set_gpio BMC_BT_WP0_N 1 |
| 14 | set_gpio BMC_BT_WP1_N 1 |
Howard Chiu | 0eb09a1 | 2021-12-09 13:27:04 +0800 | [diff] [blame] | 15 | set_gpio USB2_SEL0_A 1 |
| 16 | set_gpio USB2_SEL1_A 1 |
| 17 | set_gpio USB2_SEL0_B 1 |
| 18 | set_gpio USB2_SEL1_B 1 |
Potin Lai | 9428ff2 | 2022-05-10 12:19:46 +0800 | [diff] [blame] | 19 | set_gpio RST_FRONT_IOEXP_N 1 |
| 20 | set_gpio BSM_FLASH_LATCH_N 1 |
Howard Chiu | 0eb09a1 | 2021-12-09 13:27:04 +0800 | [diff] [blame] | 21 | |
| 22 | # set initial duty value for each fan |
| 23 | set_fan 0 70 |
| 24 | set_fan 1 70 |
| 25 | set_fan 2 70 |
| 26 | set_fan 3 70 |
| 27 | |
| 28 | exit 0; |