Initial commit
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=System unit to hard reset or system reset chassis
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=i2cset -y 7 0x45 0xd9 c
|
||||
|
||||
[Install]
|
||||
WantedBy=chassis-system-reset.target
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=System unit to hard reset or system reset chassis for yosemitev2
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=no
|
||||
ExecStart=i2cset -f -y 10 0x40 0xd9 c
|
||||
|
||||
[Install]
|
||||
WantedBy=chassis-system-reset.target
|
||||
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"gpio_configs":[
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "POST_COMPLETE",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "SlotPower",
|
||||
"LineName" : "SLOT1_POWER",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "POWER_OUT1",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "RESET_OUT1",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
"DbusName" : "xyz.openbmc_project.IpmbSensor",
|
||||
"Path" : "/xyz/openbmc_project/gpio/ipmbGpioState/1_CPU_Good",
|
||||
"Interface" : "xyz.openbmc_project.Chassis.Control.Power",
|
||||
"Property" : "PGood",
|
||||
"Type" : "DBUS"
|
||||
}
|
||||
],
|
||||
"timing_configs":{
|
||||
"PowerPulseMs": 200,
|
||||
"ForceOffPulseMs": 15000,
|
||||
"ResetPulseMs": 500,
|
||||
"PowerCycleMs": 5000,
|
||||
"SioPowerGoodWatchdogMs": 1000,
|
||||
"PsPowerOKWatchdogMs": 8000,
|
||||
"GracefulPowerOffS": 300,
|
||||
"WarmResetCheckMs": 500,
|
||||
"PowerOffSaveMs": 7000,
|
||||
"slotPowerCycleTimeMs": 200
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"gpio_configs":[
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "POST_COMPLETE2",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "SlotPower",
|
||||
"LineName" : "SLOT2_POWER",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "POWER_OUT2",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "RESET_OUT2",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
"DbusName" : "xyz.openbmc_project.IpmbSensor",
|
||||
"Path" : "/xyz/openbmc_project/gpio/ipmbGpioState/2_CPU_Good",
|
||||
"Interface" : "xyz.openbmc_project.Chassis.Control.Power",
|
||||
"Property" : "PGood",
|
||||
"Type" : "DBUS"
|
||||
}
|
||||
],
|
||||
"timing_configs":{
|
||||
"PowerPulseMs": 200,
|
||||
"ForceOffPulseMs": 15000,
|
||||
"ResetPulseMs": 500,
|
||||
"PowerCycleMs": 5000,
|
||||
"SioPowerGoodWatchdogMs": 1000,
|
||||
"PsPowerOKWatchdogMs": 8000,
|
||||
"GracefulPowerOffS": 300,
|
||||
"WarmResetCheckMs": 500,
|
||||
"PowerOffSaveMs": 7000,
|
||||
"slotPowerCycleTimeMs": 200
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"gpio_configs":[
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "POST_COMPLETE3",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "SlotPower",
|
||||
"LineName" : "SLOT3_POWER",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "POWER_OUT3",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "RESET_OUT3",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
"DbusName" : "xyz.openbmc_project.IpmbSensor",
|
||||
"Path" : "/xyz/openbmc_project/gpio/ipmbGpioState/3_CPU_Good",
|
||||
"Interface" : "xyz.openbmc_project.Chassis.Control.Power",
|
||||
"Property" : "PGood",
|
||||
"Type" : "DBUS"
|
||||
}
|
||||
],
|
||||
"timing_configs":{
|
||||
"PowerPulseMs": 200,
|
||||
"ForceOffPulseMs": 15000,
|
||||
"ResetPulseMs": 500,
|
||||
"PowerCycleMs": 5000,
|
||||
"SioPowerGoodWatchdogMs": 1000,
|
||||
"PsPowerOKWatchdogMs": 8000,
|
||||
"GracefulPowerOffS": 300,
|
||||
"WarmResetCheckMs": 500,
|
||||
"PowerOffSaveMs": 7000,
|
||||
"slotPowerCycleTimeMs": 200
|
||||
}
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"gpio_configs":[
|
||||
{
|
||||
"Name" : "PostComplete",
|
||||
"LineName" : "POST_COMPLETE4",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "SlotPower",
|
||||
"LineName" : "SLOT4_POWER",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOut",
|
||||
"LineName" : "POWER_OUT4",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "ResetOut",
|
||||
"LineName" : "RESET_OUT4",
|
||||
"Type" : "GPIO",
|
||||
"Polarity" : "ActiveLow"
|
||||
},
|
||||
|
||||
{
|
||||
"Name" : "PowerOk",
|
||||
"DbusName" : "xyz.openbmc_project.IpmbSensor",
|
||||
"Path" : "/xyz/openbmc_project/gpio/ipmbGpioState/4_CPU_Good",
|
||||
"Interface" : "xyz.openbmc_project.Chassis.Control.Power",
|
||||
"Property" : "PGood",
|
||||
"Type" : "DBUS"
|
||||
}
|
||||
],
|
||||
"timing_configs":{
|
||||
"PowerPulseMs": 200,
|
||||
"ForceOffPulseMs": 15000,
|
||||
"ResetPulseMs": 500,
|
||||
"PowerCycleMs": 5000,
|
||||
"SioPowerGoodWatchdogMs": 1000,
|
||||
"PsPowerOKWatchdogMs": 8000,
|
||||
"GracefulPowerOffS": 300,
|
||||
"WarmResetCheckMs": 500,
|
||||
"PowerOffSaveMs": 7000,
|
||||
"slotPowerCycleTimeMs": 200
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
EXTRA_OEMESON += "-Dchassis-system-reset=enabled"
|
||||
|
||||
SRC_URI:append:yosemitev2 = " file://power-config-host1.json"
|
||||
SRC_URI:append:yosemitev2 = " file://power-config-host2.json"
|
||||
SRC_URI:append:yosemitev2 = " file://power-config-host3.json"
|
||||
SRC_URI:append:yosemitev2 = " file://power-config-host4.json"
|
||||
|
||||
do_install:append:yosemitev2() {
|
||||
install -m 0755 -d ${D}/${datadir}/${BPN}
|
||||
install -m 0644 -D ${WORKDIR}/*.json \
|
||||
${D}/${datadir}/${BPN}/
|
||||
}
|
||||
Reference in New Issue
Block a user