diff options
author | Caveh Jalali <caveh@chromium.org> | 2021-09-21 16:28:42 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-01 22:25:12 +0000 |
commit | 70b07f8504ba32ace9292b36e0bc22fa2319c4e9 (patch) | |
tree | d8431c65fafab582f392686f58aeff928f1a6b6c /util/ectool.h | |
parent | f92bca6657e571259911e33f88af2a301c887b01 (diff) | |
download | chrome-ec-70b07f8504ba32ace9292b36e0bc22fa2319c4e9.tar.gz |
ectool: Split I2C commands into separate file
This splits the I2C related commands into their own file.
BRANCH=none
BUG=b:201039003
TEST=buildall passes
Change-Id: Iaa22bcb624580e5a3893791a46e11afc8b7517f6
Signed-off-by: Caveh Jalali <caveh@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3181507
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Boris Mittelberg <bmbm@google.com>
Diffstat (limited to 'util/ectool.h')
-rw-r--r-- | util/ectool.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/util/ectool.h b/util/ectool.h index c47edbf27c..a0cc0c72a0 100644 --- a/util/ectool.h +++ b/util/ectool.h @@ -40,3 +40,11 @@ struct command { * The key matrix is read from the fdt. */ int cmd_keyscan(int argc, char *argv[]); + +/* ASCII mode for printing, default off */ +extern int ascii_mode; + +int cmd_i2c_protect(int argc, char *argv[]); +int cmd_i2c_read(int argc, char *argv[]); +int cmd_i2c_write(int argc, char *argv[]); +int cmd_i2c_xfer(int argc, char *argv[]); |