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