diff options
author | John Wang <wangzhiqiang.bj@bytedance.com> | 2020-09-30 08:38:12 +0300 |
---|---|---|
committer | Lei YU <yulei.sh@bytedance.com> | 2021-05-24 11:47:11 +0300 |
commit | 000fd965915b31e7e613f7e9dfe7042f76dcc951 (patch) | |
tree | aa18c1faaa5c8927e96552f465e786c3c1fa29c5 /meta-bytedance/meta-g220a/recipes-phosphor/chassis | |
parent | 418ae316dad0a67a5b25347952737c43858b3bf9 (diff) | |
download | openbmc-000fd965915b31e7e613f7e9dfe7042f76dcc951.tar.xz |
bytedance: g220a: Add power config
Add the power related config to enable power on.
Signed-off-by: John Wang <wangzhiqiang.bj@bytedance.com>
Signed-off-by: Lotus Xu <xuxiaohan@bytedance.com>
Change-Id: I3912fc603cf249bb2a1f48f69b7e14d458a6e0f1
Diffstat (limited to 'meta-bytedance/meta-g220a/recipes-phosphor/chassis')
-rw-r--r-- | meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json | 11 | ||||
-rw-r--r-- | meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control_%.bbappend | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json b/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json new file mode 100644 index 000000000..c16564440 --- /dev/null +++ b/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json @@ -0,0 +1,11 @@ +{ + "gpio_configs": { + "NMIButton": "NMI_BUTTON", + "NMIOut": "NMI_OUT", + "PostComplete": "POST_COMPLETE", + "PwrButton": "POWER_BUTTON", + "PwrOK": "PS_PWROK", + "PwrOut": "POWER_OUT", + "RstOut": "RESET_OUT" + } +} diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control_%.bbappend b/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control_%.bbappend new file mode 100644 index 000000000..6ec2a728c --- /dev/null +++ b/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" + +SRC_URI += " file://power-config-host0.json" + +do_install_append() { + install -d {D}/usr/share/x86-power-control/ + install -m 0644 ${WORKDIR}/power-config-host0.json ${D}/usr/share/x86-power-control/ +} + +EXTRA_OECMAKE = "-DWITH_RESETBUTTON=OFF" + |