Lancelot Kao | 96a7ee3 | 2021-02-22 18:50:48 -0600 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | source /usr/sbin/kudo-lib.sh |
| 4 | |
| 5 | # set all mux route to CPU before power on host |
| 6 | # BMC_CPU_RTC_I2C_SEL #120 |
| 7 | set_gpio_ctrl 120 out 1 |
| 8 | # BMC_CPU_DDR_I2C_SEL #84 |
| 9 | set_gpio_ctrl 84 out 1 |
| 10 | # BMC_CPU_EEPROM_I2C_SEL #85 |
| 11 | set_gpio_ctrl 85 out 1 |
| 12 | # BMC_CPU_PMBUS_SEL #86 |
| 13 | set_gpio_ctrl 86 out 1 |
| 14 | |
| 15 | # LED control |
XP Chen | 9b90696 | 2021-05-06 15:23:19 -0500 | [diff] [blame] | 16 | # LED_BMC_LIVE #7 |
| 17 | set_gpio_ctrl 7 out 1 |
Lancelot Kao | 96a7ee3 | 2021-02-22 18:50:48 -0600 | [diff] [blame] | 18 | |
| 19 | # SPI control |
| 20 | # Send command to CPLD to switch the bios spi interface to host |
| 21 | i2cset -y -f -a 13 0x76 0x10 0x00 |
| 22 | |
| 23 | # Power control |
| 24 | # MON_BMC_ALIVE, GPIO 10 |
| 25 | set_gpio_ctrl 10 out 1 |
| 26 | # S0_BMC_OK, GPIO 69 |
| 27 | set_gpio_ctrl 69 out 1 |