From 219049603784f92d8da4757e038599b4d4415294 Mon Sep 17 00:00:00 2001 From: Matt Spinler Date: Tue, 27 Nov 2018 12:33:58 -0600 Subject: Switch to phosphor-buttons for button handling Use the 2 button packages from the phosphor-buttons repo for button press handling: obmc-phosphor-buttons-signals - Sends signals when buttons are pressed and released obmc-phosphor-buttons-handler - Listens for the signals and performs the corresponding actions, which are the same as the current button code that lives in skeleton. These support the power, host reset, and ID buttons, All buttons are optional, and for a button to be configured its GPIO must reside in /etc/default/obmc/gpio/gpio_defs.json. If the GPIO isn't found, then nothing will listen for those button presses. See the phosphor-buttons code for the naming requirements. Tested: Built and ran image. (From meta-openpower rev: 5c738445228bc3916d24f582fe8b82e6ef7c539e) Change-Id: Ic6ac31d2df0000108b191971b959dbd635558258 Signed-off-by: Matt Spinler Signed-off-by: Brad Bishop --- meta-openpower/recipes-phosphor/packagegroups/packagegroup-op-apps.bb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'meta-openpower') diff --git a/meta-openpower/recipes-phosphor/packagegroups/packagegroup-op-apps.bb b/meta-openpower/recipes-phosphor/packagegroups/packagegroup-op-apps.bb index 421789d3b..cdbc3f014 100644 --- a/meta-openpower/recipes-phosphor/packagegroups/packagegroup-op-apps.bb +++ b/meta-openpower/recipes-phosphor/packagegroups/packagegroup-op-apps.bb @@ -24,8 +24,8 @@ RPROVIDES_${PN}-system += "virtual-obmc-system-mgmt" SUMMARY_${PN}-chassis = "OpenPOWER Chassis" RDEPENDS_${PN}-chassis = " \ - obmc-button-power \ - obmc-button-reset \ + obmc-phosphor-buttons-signals \ + obmc-phosphor-buttons-handler \ obmc-control-chassis \ obmc-op-control-power \ obmc-host-failure-reboots \ -- cgit v1.2.3