From 07fcf806b6d76608d49b6f3cb26fef27eca8a195 Mon Sep 17 00:00:00 2001 From: Charles Kearney Date: Tue, 30 May 2023 14:32:08 -0500 Subject: meta-hpe: rl300-g11 add x86 power control bb append Change-Id: Ia295013033424e0a973c8314b56b52b46c055a71 Signed-off-by: Charles Kearney --- .../x86-power-control/power-config-host0.json | 91 ++++++++++++++++++++++ .../x86-power-control/x86-power-control_%.bbappend | 9 +++ 2 files changed, 100 insertions(+) create mode 100644 meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control/power-config-host0.json create mode 100644 meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control_%.bbappend (limited to 'meta-hpe/meta-rl300-g11') diff --git a/meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control/power-config-host0.json b/meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control/power-config-host0.json new file mode 100644 index 0000000000..ac565abe4b --- /dev/null +++ b/meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control/power-config-host0.json @@ -0,0 +1,91 @@ +{ + "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", + "DbusName" : "xyz.openbmc_project.Chassis.Gpios", + "Path" : "/xyz/openbmc_project/chassis/gpios", + "Interface" : "xyz.openbmc_project.Chassis.Gpios", + "Property" : "PButton", + "Type" : "DBUS" + }, + { + "Name" : "PowerOk", + "DbusName" : "xyz.openbmc_project.Chassis.Gpios", + "Path" : "/xyz/openbmc_project/chassis/gpios", + "Interface" : "xyz.openbmc_project.Chassis.Gpios", + "Property" : "PGood", + "Type" : "DBUS" + }, + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "ResetButton", + "LineName" : "RESET_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "SioOnControl", + "LineName" : "", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "SioPowerGood", + "LineName" : "", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "SIOS5", + "LineName" : "", + "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-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control_%.bbappend b/meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control_%.bbappend new file mode 100644 index 0000000000..6de157db42 --- /dev/null +++ b/meta-hpe/meta-rl300-g11/recipes-x86/x86-power-control/x86-power-control_%.bbappend @@ -0,0 +1,9 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://power-config-host0.json" + +do_configure:prepend() { +cp ${WORKDIR}/power-config-host0.json ${S}/power-control-x86/config +} + + -- cgit v1.2.3