diff options
author | Dino Li <Dino.Li@ite.com.tw> | 2021-04-08 16:10:14 +0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-08 10:47:50 +0000 |
commit | ea450db6e1cfa56a34b03141640a9bb44dcc40e7 (patch) | |
tree | e777e7f9532e2d02736d443417056315a66c87bb /chip/it83xx/system.c | |
parent | c2e9a8b208387e50c480a3f9edc9c67f3088cf22 (diff) | |
download | chrome-ec-ea450db6e1cfa56a34b03141640a9bb44dcc40e7.tar.gz |
it83xx: disable pre-defined command at default
With this change, no master is able to see the slave device of
pre-defined command on port 0.
BUG=b:184804044
BRANCH=none
TEST=run i2cscan command on icarus, verified that the slave address
isn't present on port 0.
Signed-off-by: Dino Li <Dino.Li@ite.com.tw>
Change-Id: I6df72132d08a3be6ff97fb501eefc4a9fa8d6f08
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2813878
Reviewed-by: Eric Yilun Lin <yllin@chromium.org>
Diffstat (limited to 'chip/it83xx/system.c')
-rw-r--r-- | chip/it83xx/system.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chip/it83xx/system.c b/chip/it83xx/system.c index 2f6fbd504b..7281977e44 100644 --- a/chip/it83xx/system.c +++ b/chip/it83xx/system.c @@ -210,6 +210,9 @@ int system_is_reboot_warm(void) void chip_pre_init(void) { + /* bit1=0: disable pre-defined command */ + IT83XX_SMB_SFFCTL &= ~IT83XX_SMB_HSAPE; + /* bit0, EC received the special waveform from iteflash */ if (IT83XX_GCTRL_DBGROS & IT83XX_SMB_DBGR) { /* |