summaryrefslogtreecommitdiff
path: root/power
diff options
context:
space:
mode:
authorAseda Aboagye <aaboagye@google.com>2020-02-15 13:28:19 -0800
committerCommit Bot <commit-bot@chromium.org>2020-02-21 10:30:10 +0000
commitf5e6d1888ac11686305c55fcc54f74ef131c6792 (patch)
tree9936e58253e1f5186f72af2fb97b4d19ba173077 /power
parentb7b3d637ead031ce244f192cbcb5c1dad91e487e (diff)
downloadchrome-ec-f5e6d1888ac11686305c55fcc54f74ef131c6792.tar.gz
intel_x86: Add CONFIG_BOARD_HAS_AFTER_RSMRST
Some x86 boards need to perform some workarounds after handling RSMRST_L, therefore this commit adds a CONFIG_* option to enable this, CONFIG_BOARD_HAS_AFTER_RSMRST. A board callback, board_after_rsmrst() will be called after RSMRST is changed. BUG=b:148688874 BRANCH=None TEST=Enable CONFIG_* option, verify that callback is called once RSMRST changes. Change-Id: Ic6b6b4a0f23639e3fd4d9e69c95b3d94e44a2162 Signed-off-by: Aseda Aboagye <aaboagye@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2058693 Tested-by: Aseda Aboagye <aaboagye@chromium.org> Commit-Queue: Aseda Aboagye <aaboagye@chromium.org> Reviewed-by: Diana Z <dzigterman@chromium.org>
Diffstat (limited to 'power')
-rw-r--r--power/intel_x86.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/power/intel_x86.c b/power/intel_x86.c
index 334a9367ca..89bc477640 100644
--- a/power/intel_x86.c
+++ b/power/intel_x86.c
@@ -628,6 +628,10 @@ void common_intel_x86_handle_rsmrst(enum power_state state)
gpio_set_level(GPIO_PCH_RSMRST_L, rsmrst_in);
CPRINTS("Pass through GPIO_RSMRST_L_PGOOD: %d", rsmrst_in);
+
+#ifdef CONFIG_BOARD_HAS_AFTER_RSMRST
+ board_after_rsmrst(rsmrst_in);
+#endif
}
#ifdef CONFIG_POWER_TRACK_HOST_SLEEP_STATE