diff options
author | Zev Weiss <zev@bewilderbeest.net> | 2023-11-07 13:26:23 +0300 |
---|---|---|
committer | Zev Weiss <zev@bewilderbeest.net> | 2024-01-20 04:58:01 +0300 |
commit | 7d461506196f2c5db738aaa35e0d2104fea61e07 (patch) | |
tree | 1a5d6f8b1840d0f8ea4988854b13ded5afbebcc0 | |
parent | 8f456f2e8d59a9f536f43fa9750c5f54cb0cba46 (diff) | |
download | openbmc-7d461506196f2c5db738aaa35e0d2104fea61e07.tar.xz |
meta-asrock: e3c256d4i: Enable and configure x86-power-control
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: Ic6c5460f587ae141ed69e704e359152713171097
3 files changed, 100 insertions, 0 deletions
diff --git a/meta-asrock/meta-e3c256d4i/conf/machine/e3c256d4i.conf b/meta-asrock/meta-e3c256d4i/conf/machine/e3c256d4i.conf index cd29ac3014..d86a973782 100644 --- a/meta-asrock/meta-e3c256d4i/conf/machine/e3c256d4i.conf +++ b/meta-asrock/meta-e3c256d4i/conf/machine/e3c256d4i.conf @@ -12,6 +12,9 @@ require conf/machine/include/obmc-bsp-common.inc PREFERRED_PROVIDER_virtual/obmc-flash-mgmt = "packagegroup-asrock-apps" PREFERRED_PROVIDER_virtual/obmc-system-mgmt = "packagegroup-asrock-apps" +VIRTUAL-RUNTIME_obmc-host-state-manager = "x86-power-control" +VIRTUAL-RUNTIME_obmc-chassis-state-manager = "x86-power-control" + PREFERRED_PROVIDER_virtual/obmc-host-ipmi-hw ?= "phosphor-ipmi-kcs" VIRTUAL-RUNTIME_obmc-inventory-manager = "entity-manager" diff --git a/meta-asrock/meta-e3c256d4i/recipes-x86/chassis/x86-power-control/power-config-host0.json b/meta-asrock/meta-e3c256d4i/recipes-x86/chassis/x86-power-control/power-config-host0.json new file mode 100644 index 0000000000..44025242ad --- /dev/null +++ b/meta-asrock/meta-e3c256d4i/recipes-x86/chassis/x86-power-control/power-config-host0.json @@ -0,0 +1,87 @@ +{ + "gpio_configs": [ + { + "Name" : "IdButton", + "LineName" : "LOCATORBTN", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "NMIButton", + "LineName" : "NMI_BTN_N", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "NMIOut", + "LineName" : "BMC_NMI", + "Type" : "GPIO", + "Polarity": "ActiveHigh" + }, + { + "Name" : "PostComplete", + "LineName" : "FM_BIOS_POST_CMPLT_N", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "PowerButton", + "LineName" : "BMC_PSIN", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "PowerOk", + "LineName" : "O_PWROK", + "Type" : "GPIO", + "Polarity": "ActiveHigh" + }, + { + "Name" : "PowerOut", + "LineName" : "BMC_PSOUT", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "ResetButton", + "LineName" : "BMC_RESETCON", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "ResetOut", + "LineName" : "RESETCON", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "SioOnControl", + "LineName" : "", + "Type" : "GPIO", + "Polarity": "ActiveLow" + }, + { + "Name" : "SioPowerGood", + "LineName" : "", + "Type" : "GPIO", + "Polarity": "ActiveHigh" + }, + { + "Name" : "SIOS5", + "LineName" : "SLP_S5", + "Type" : "GPIO", + "Polarity": "ActiveLow" + } + ], + "timing_configs": { + "PowerPulseMs": 200, + "ForceOffPulseMs": 15000, + "ResetPulseMs": 500, + "PowerCycleMs": 5000, + "SioPowerGoodWatchdogMs": 1000, + "PsPowerOKWatchdogMs": 8000, + "GracefulPowerOffS": 300, + "WarmResetCheckMs": 500, + "PowerOffSaveMs": 7000 + } +} diff --git a/meta-asrock/meta-e3c256d4i/recipes-x86/chassis/x86-power-control_%.bbappend b/meta-asrock/meta-e3c256d4i/recipes-x86/chassis/x86-power-control_%.bbappend new file mode 100644 index 0000000000..aed15e25fb --- /dev/null +++ b/meta-asrock/meta-e3c256d4i/recipes-x86/chassis/x86-power-control_%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += " \ + file://power-config-host0.json \ + " + +do_install:append() { + install -d ${D}/${datadir}/${PN} + install -m 0644 ${WORKDIR}/power-config-host0.json ${D}/${datadir}/${PN} +} |