Karthikeyan Pasupathi | 36f035b | 2022-08-28 17:35:29 +0530 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | export POWER_BTN_HIGH=0xFF |
| 4 | export POWER_BTN_LOW=0xFE |
Delphine CC Chiu | 0528ecd | 2022-11-03 15:40:43 +0800 | [diff] [blame^] | 5 | export RESET_BTN_HIGH=0xFF |
| 6 | export RESET_BTN_LOW=0xFD |
Karthikeyan Pasupathi | 36f035b | 2022-08-28 17:35:29 +0530 | [diff] [blame] | 7 | export power_seq=( "$POWER_BTN_HIGH" "$POWER_BTN_LOW" "$POWER_BTN_HIGH" ) |
Delphine CC Chiu | 0528ecd | 2022-11-03 15:40:43 +0800 | [diff] [blame^] | 8 | export reset_seq=( "$RESET_BTN_HIGH" "$RESET_BTN_LOW" "$RESET_BTN_HIGH") |
Karthikeyan Pasupathi | 36f035b | 2022-08-28 17:35:29 +0530 | [diff] [blame] | 9 | export SERVICE="xyz.openbmc_project.Ipmi.Channel.Ipmb" |
| 10 | export OBJECT_PATH="/xyz/openbmc_project/Ipmi/Channel/Ipmb" |
| 11 | export INTERFACE="org.openbmc.Ipmb" |
| 12 | export DATA_LEN=0x05 |
| 13 | export NETFN=0x06 |
| 14 | export LUN=0x00 |
| 15 | export CMD=0x52 |
| 16 | export STATE_OFF=0 |
| 17 | export STATE_ON=1 |
| 18 | export BUS_NUM=12 |
| 19 | export POW_ON_SLOT=0x01 |
| 20 | export POW_OFF_SLOT=0x00 |
| 21 | export CPLD_PWR_CTRL_ADDR=0xf |
| 22 | export PWRGD_SYS_PWROK_INDEX=12 |