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 <mine260309@gmail.com>
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 @@
# 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' : {