blob: 36ede163b2cb846802543b3f29687f4eda0dd53f [file] [log] [blame]
Peter Yin2e287472023-12-12 21:14:10 +08001#!/bin/bash
2
Peter Yinc3a4edd2024-02-05 17:52:19 +08003# Set Host Power Status Running
Peter Yin2e287472023-12-12 21:14:10 +08004busctl set-property xyz.openbmc_project.State.Host0 /xyz/openbmc_project/state/host0 xyz.openbmc_project.State.Host CurrentHostState s xyz.openbmc_project.State.Host.HostState.Running
5
Peter Yinc3a4edd2024-02-05 17:52:19 +08006# Set Chassis Power Status On
7busctl set-property xyz.openbmc_project.State.Chassis0 /xyz/openbmc_project/state/chassis0 xyz.openbmc_project.State.Chassis CurrentPowerState s xyz.openbmc_project.State.Chassis.PowerState.On
8
Peter Yin2f5f0cb2024-01-09 13:52:48 +08009systemctl start obmc-led-group-start@power_on.service
Peter Yin2e287472023-12-12 21:14:10 +080010
11# The hardware disables the multiplexer in standby
12# to prevent sending a command by mistake to the retimer when it boots up.
13# Therefore, we need to rebind it when powered on.
14
15if [ ! -e "/sys/bus/i2c/drivers/pca954x/3-0070" ]; then
16 sleep 6
17 /usr/bin/echo 3-0070 > /sys/bus/i2c/drivers/pca954x/bind
18fi
19
20exit 0