summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2021-04-10 08:22:05 -0700
committerCommit Bot <commit-bot@chromium.org>2021-06-17 01:08:19 +0000
commit6bb2d508988e9725e41915d430e1feb21fe68534 (patch)
tree0aab84e31b96838b017bdb238c2cfde57ac72c61 /include
parent2252a56cd80adb017614c35fe1a27716cc0046f8 (diff)
downloadchrome-ec-6bb2d508988e9725e41915d430e1feb21fe68534.tar.gz
PCHG: Fuzz PCHG and ctn730 driver
This patch adds a fuzz test for PCHG and ctn730 driver. With the given corpus, the test currently reaches all the normal mode states. BUG=b:190841496 BRANCH=trogdor TEST=make run-pchg_fuzz TEST=pchg_fuzz.exe -seed=1 -runs=1000000 -dict=fuzz/pchg_fuzz.corpus Change-Id: I6eedbbbdbf3396dfa2b98ca302e16d142ea251d5 Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2956076
Diffstat (limited to 'include')
-rw-r--r--include/peripheral_charger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/peripheral_charger.h b/include/peripheral_charger.h
index 702d3c9835..b1f82bb1f3 100644
--- a/include/peripheral_charger.h
+++ b/include/peripheral_charger.h
@@ -7,6 +7,7 @@
#define __CROS_EC_PERIPHERAL_CHARGER_H
#include "common.h"
+#include "ec_commands.h"
#include "gpio.h"
#include "queue.h"
#include "stdbool.h"
@@ -146,6 +147,8 @@ enum pchg_error {
enum pchg_mode {
PCHG_MODE_NORMAL = 0,
PCHG_MODE_DOWNLOAD,
+ /* Add no more entries below here. */
+ PCHG_MODE_COUNT,
};
/**