diff options
author | Brian J. Nemec <bnemec@chromium.org> | 2019-11-11 23:51:35 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-02-07 22:20:18 +0000 |
commit | e18c87761b40ef1aabc6d7c0fda3fd1c64f343f4 (patch) | |
tree | dbb539e237d0f039d49289ccbc92c460d06dff4e /include | |
parent | fe271c67d2b690014e347cb7cddde2a1f8ac3017 (diff) | |
download | chrome-ec-e18c87761b40ef1aabc6d7c0fda3fd1c64f343f4.tar.gz |
ServoMicro: Enable Brownout detection with PVD circuit
Enables the programmable voltage detector (PVD) interrupt in
ServoMicro. This interrupt fires when the supply voltage drops
from the expected 3.3V to under 2.3V after power on. This gives
several hundred microseconds of time for the device to respond
to the power reduction.
In order to ensure that the ServoMicro does not enter a
non-responsive state, it triggers a reboot of the system to
restore it to a good configuration.
BRANCH=servo
BUG=chromium:1023715
TEST=Configured GPIO output to trigger on pvd_interrupt()
and verified the interrupt fires during the following
situations using Saleae analyzer:
* USB Power removed from working device
* Ramping supply voltage from 1.5V to 5V with a DC supply
* Repoducing failure condition from crbug/1016051
1 Connect ServoMicro to Cyan board
2 dut-control power_state:on
3 dut-control fw_wp_vref:pp3300
4 dut-control power_state:off
5 GPIO toggles and system reset occurs
Change-Id: I721f48ab84b01d52a5f98747cc9d879ff2876a07
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1911759
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Tested-by: Brian Nemec <bnemec@chromium.org>
Commit-Queue: Brian Nemec <bnemec@chromium.org>
Auto-Submit: Brian Nemec <bnemec@chromium.org>
(cherry picked from commit 771dd33b149fb94725edf0e29670207b9a013cb6)
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2044707
Reviewed-by: Brian Nemec <bnemec@google.com>
Commit-Queue: Brian Nemec <bnemec@google.com>
Tested-by: Brian Nemec <bnemec@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/config.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/config.h b/include/config.h index 6d34b5e5aa..ab6a60e8df 100644 --- a/include/config.h +++ b/include/config.h @@ -3009,6 +3009,14 @@ */ #undef CONFIG_CPU_PROCHOT_ACTIVE_LOW +/* + * Define this option to enable programmable voltage detector which will + * trigger an interrupt when the voltage drops below a threshold specified + * by the PVD_THRESHOLD which is a chip specific voltage threshold that + * must be defined in board.h. + */ +#undef CONFIG_PVD + /*****************************************************************************/ /* Support PWM control */ #undef CONFIG_PWM |