summaryrefslogtreecommitdiff
path: root/src/drivers/sil
diff options
context:
space:
mode:
authorFurquan Shaikh <furquan@google.com>2018-03-01 15:21:05 -0800
committerFurquan Shaikh <furquan@google.com>2018-03-05 17:55:32 +0000
commit10c3b96ac74cf00b44fca40c83c7b13964cff08c (patch)
tree9c8b24830a0596cdd588120d2fb2c5b9278a3efc /src/drivers/sil
parent591be2d58128c4469f6c3c48725874fab60b1c5b (diff)
soc/intel/common/block/smm: Add configurable delay before entering S5
This change adds a configurable delay in milliseconds before SLP_EN is set in SLP_SMI for S5. Reason for doing this is to avoid race between SLP and power button SMIs. On some platforms (Nami, Nautilus), it was observed that power button SMI triggered by EC was competing with the SLP SMI triggered by keyboard driver. Keyboard driver indicated power button press which resulted in depthcharge triggering SLP_SMI, causing the AP to enter S5. However, the power button press also causes the EC to send a pulse on PWRBTN# line, which is debounced for 16ms before an interrupt is triggered. This interrupt was generated after SLP_SMI is processed which resulted in the device waking back up from S5. This change adds a config option SOC_INTEL_COMMON_BLOCK_SMM_S5_DELAY_MS which is used to add a delay before SLP_EN is set for S5. This change should only affect CHROMEOS boards as the config option will be 0 in other cases. BUG=b:74083107 TEST=Verified that nami, nautilus do not wake back from S5 on power button press at dev mode screen. Change-Id: Iaee19b5aba0aad7eb34bd126fda5b0f6ef394ed7 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/24964 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/drivers/sil')
0 files changed, 0 insertions, 0 deletions