diff options
author | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-05-23 00:36:13 +0300 |
---|---|---|
committer | Andrey V.Kosteltsev <AKosteltsev@IBS.RU> | 2022-05-23 00:36:13 +0300 |
commit | 816146249ab44fb9e85f8dfd413e18e92a13842c (patch) | |
tree | 97df436faa8607f63dba853024879f467eea3054 /meta-ibs/meta-cp2-5422/recipes-x86/chassis | |
parent | 1bd1f086e0ecfc9017891b5b9a492446eda41095 (diff) | |
download | openbmc-816146249ab44fb9e85f8dfd413e18e92a13842c.tar.xz |
Layers for SILA CP2-5422
Diffstat (limited to 'meta-ibs/meta-cp2-5422/recipes-x86/chassis')
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control/power-config-host0.json | 87 | ||||
-rw-r--r-- | meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control_%.bbappend | 11 |
2 files changed, 98 insertions, 0 deletions
diff --git a/meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control/power-config-host0.json b/meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control/power-config-host0.json new file mode 100644 index 0000000000..126d2ef1a4 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control/power-config-host0.json @@ -0,0 +1,87 @@ +{ + "gpio_configs":[ + { + "Name" : "IdButton", + "LineName" : "ID_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "NMIButton", + "LineName" : "NMI_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "NMIOut", + "LineName" : "NMI_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "PostComplete", + "LineName" : "POST_COMPLETE", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "PowerButton", + "LineName" : "POWER_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "PowerOk", + "LineName" : "PS_PWROK", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "ResetButton", + "LineName" : "RESET_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "SioPowerGood", + "LineName" : "SIO_POWER_GOOD", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "SioOnControl", + "LineName" : "SIO_ONCONTROL", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "SIOS5", + "LineName" : "SIO_S5", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + } + ], + "timing_configs":{ + "PowerPulseMs": 200, + "ForceOffPulseMs": 15000, + "ResetPulseMs": 500, + "PowerCycleMs": 5000, + "SioPowerGoodWatchdogMs": 12000, + "PsPowerOKWatchdogMs": 8000, + "GracefulPowerOffS": 300, + "WarmResetCheckMs": 500, + "PowerOffSaveMs": 7000 + } +} diff --git a/meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control_%.bbappend b/meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control_%.bbappend new file mode 100644 index 0000000000..c0fe1dd726 --- /dev/null +++ b/meta-ibs/meta-cp2-5422/recipes-x86/chassis/x86-power-control_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" +SRC_URI:append = " \ + file://power-config-host0.json \ +" + +RDEPENDS:${PN}:append = " bash" + +do_install:append() { + install -d ${D}${datadir}/${PN} + install -m 0644 ${WORKDIR}/power-config-host0.json ${D}${datadir}/${PN} +} |