From b72169d0e60abb116aeb5bfe226b3c3f36758823 Mon Sep 17 00:00:00 2001 From: Lei YU Date: Thu, 6 Apr 2017 15:08:50 +0800 Subject: Fix Romulus power and reset button The POWER_BUTTON and RESET_BUTTON direction needs to be set to `both`, otherwise there is no interrupt generated and thus the buttons do not work. Change the direction to `both` fix the issue. Fixes openbmc/openbmc#1437 Change-Id: If586dd2e44aa2a8790f045d1e37f4d8f3ea210c8 Signed-off-by: Lei YU --- configs/Romulus.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configs') diff --git a/configs/Romulus.py b/configs/Romulus.py index bb124ce..a1d89d4 100644 --- a/configs/Romulus.py +++ b/configs/Romulus.py @@ -280,11 +280,11 @@ GPIO_CONFIG['IDBTN'] = \ # PM_FP_PWRBTN_IN_L GPIO_CONFIG['POWER_BUTTON'] = \ - {'gpio_pin': 'I3', 'direction': 'in'} + {'gpio_pin': 'I3', 'direction': 'both'} # PM_NMIBTN_IN_L GPIO_CONFIG['RESET_BUTTON'] = \ - {'gpio_pin': 'J1', 'direction': 'in'} + {'gpio_pin': 'J1', 'direction': 'both'} HWMON_CONFIG = { '4-0050' : { -- cgit v1.2.1