diff options
author | Madhurima Paruchuri <mparuchuri@google.com> | 2023-04-12 11:29:15 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-04-14 21:35:56 +0000 |
commit | bfebe3b368144aeb86342cfe02252cadd9f36334 (patch) | |
tree | 12e57481c730512dd7e40f0d1fffd20eeb35a9b1 | |
parent | fe2a860907fb41a96bca52940aef65a1506e3b76 (diff) | |
download | chrome-ec-bfebe3b368144aeb86342cfe02252cadd9f36334.tar.gz |
rex: Fix failing unit tests because of new build check
Added a named-i2c-port stub to pass the build check
BRANCH=none
BUG=b:278274316
TEST=./twister -T zephyr/test/rex -c
Change-Id: Iae04f5a1e8dc52c8025b7394e448520c867d046f
Signed-off-by: Madhurima Paruchuri <mparuchuri@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4416742
Reviewed-by: Aaron Massey <aaronmassey@google.com>
-rw-r--r-- | zephyr/test/rex/boards/rex/rex.dtsi | 12 | ||||
-rw-r--r-- | zephyr/test/rex/prj.conf | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/zephyr/test/rex/boards/rex/rex.dtsi b/zephyr/test/rex/boards/rex/rex.dtsi index 0f30563537..9a2f2802d5 100644 --- a/zephyr/test/rex/boards/rex/rex.dtsi +++ b/zephyr/test/rex/boards/rex/rex.dtsi @@ -5,3 +5,15 @@ #include "../native_posix.overlay" #include "../../../../program/rex/rex/cbi.dtsi" + +/ { + /* Unused Stub */ + named-i2c-ports { + compatible = "named-i2c-ports"; + + named_i2c0: i2c0 { + i2c-port = <&i2c0>; + enum-names = "I2C_PORT_USB_MUX"; + }; + }; +}; diff --git a/zephyr/test/rex/prj.conf b/zephyr/test/rex/prj.conf index dc936eca7a..0fe26fc39e 100644 --- a/zephyr/test/rex/prj.conf +++ b/zephyr/test/rex/prj.conf @@ -15,3 +15,5 @@ CONFIG_LOG_MODE_MINIMAL=y CONFIG_AP_X86_INTEL_MTL=y CONFIG_TEST_DISABLE_AP_PWRSEQ=y + +CONFIG_EMUL_COMMON_I2C=y |