summaryrefslogtreecommitdiff
path: root/driver/ppc/syv682x.h
diff options
context:
space:
mode:
authorEric Herrmann <eherrmann@chromium.org>2021-03-25 19:16:25 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-31 22:47:20 +0000
commitd3c52ae401f9190377cc4f1feb24300491fdc922 (patch)
treedf44d1a26ef1d1d17824f69289b27cb2ca502aa3 /driver/ppc/syv682x.h
parent562676b526dfa9c35bfbe2b4dd36c35da13d566a (diff)
downloadchrome-ec-d3c52ae401f9190377cc4f1feb24300491fdc922.tar.gz
SYV682x: Fix Source OCP for SYV682B revision
Force the EC to wait at least 15ms before checking to see if the alerts are cleared. This will fix source OCP for the SYV682B, which added a 10ms HW deglitch to the source OC alert. BUG=b:183761055 TEST=Check that OCP is triggered instead of TSD when the port is overloaded on SYV682B TEST=Check that the SYV682A OCP still works with 100ms deglitch TEST=make buildall BRANCH=None Signed-off-by: Eric Herrmann <eherrmann@chromium.org> Change-Id: I40207fecc034a8e8238f0deaa7beeaf8dab2a2d6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2787706 Reviewed-by: Abe Levkoy <alevkoy@chromium.org>
Diffstat (limited to 'driver/ppc/syv682x.h')
-rw-r--r--driver/ppc/syv682x.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/driver/ppc/syv682x.h b/driver/ppc/syv682x.h
index 0afa56190f..3ecbede18c 100644
--- a/driver/ppc/syv682x.h
+++ b/driver/ppc/syv682x.h
@@ -10,6 +10,9 @@
#include "driver/ppc/syv682x_public.h"
+/* Source OC deglitch implemented in HW for SYV682B */
+#define SYV682X_HW_OC_DEGLITCH_MS 10
+
/* SYV682x register addresses */
#define SYV682X_STATUS_REG 0x00
#define SYV682X_CONTROL_1_REG 0x01