blob: 295982dc5644d5fa1e4dcb2cc4253f7016fd48fe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/bin/bash
# shellcheck source=meta-facebook/meta-harma/recipes-phosphor/state/phosphor-state-manager/power-cmd
source /usr/libexec/phosphor-state-manager/power-cmd
#Sled cycle
echo "Starting Chassis Power Cycle"
# LTC4287 MFR_REBOOT_CONTROL (FDh) Read/Write
# [3]:
# REBOOT 0 Write a 1 to reboot.
# [2:0]
# RBT_DL 100 Configures Auto-Reboot turn-on Delay (tDL(RBT)) after the REBOOT bit is set to 1
# RBT_DL[2:0] DELAY
# 000 0.580 s
# 001 1.16 s
# 010 2.32 s
# 011 4.64 s
# 100 9.28 s
# 101 18.6 s
# 110 37.1 s
# 111 74.2 s
ltc4287-chassis-power-cycle() {
i2cset -f -y 4 0x44 0xfd 0x04
i2cset -f -y 4 0x44 0xfd 0x0e
}
echo "Starting Chassis Power Cycle"
ltc4287-chassis-power-cycle
|