diff options
author | Charles Boyer <Charles.Boyer@fii-usa.com> | 2021-10-30 00:39:16 +0300 |
---|---|---|
committer | Charles Boyer <Charles.Boyer@fii-usa.com> | 2021-11-11 19:08:16 +0300 |
commit | a3dc550e57470746a049356c99e3d6df0ed096c7 (patch) | |
tree | 48730d36df8ffd03c1a0322797410b4026c25482 /meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility | |
parent | 962fa6a37db32335fb6584fe1746c426544fd0b4 (diff) | |
download | openbmc-a3dc550e57470746a049356c99e3d6df0ed096c7.tar.xz |
meta-fii/meta-kudo: Add power button support
Adds support for Power On for power button press and Power Off when
holding the power button. This is a temporary and rudimentary method
to handle button presses. The intention is to eventually use
phosphor-buttons with Nuvoton support.
Signed-off-by: Charles Boyer <Charles.Boyer@fii-usa.com>
Change-Id: Iede64f89c716102a688880280c11ff7f3068021b
Diffstat (limited to 'meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility')
-rw-r--r-- | meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh index b87f12d0a..55661df80 100644 --- a/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh +++ b/meta-fii/meta-kudo/recipes-kudo/kudo-sys-utility/kudo-boot/init_once.sh @@ -64,3 +64,6 @@ if [[ $CPU1_STATUS_N == 1 ]]; then i2cset -y -a -f 16 0x6a 11 1 0x01 i i2cset -y -a -f 17 0x67 1 2 0x3f 0x0c i fi + +# Create /run/openbmc for system power files +mkdir "/run/openbmc" |