diff options
author | Fabio Baltieri <fabiobaltieri@google.com> | 2022-11-11 15:13:10 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-14 10:33:27 +0000 |
commit | 62eb3b6338ba083d156ea63a32748996eab0741d (patch) | |
tree | dea4a609e86a07438cb00439a121b89dc54c25b7 /zephyr/Kconfig.i2c | |
parent | 31223f411e8b554dfcfd8d84251943bc7697c44b (diff) | |
download | chrome-ec-62eb3b6338ba083d156ea63a32748996eab0741d.tar.gz |
zephyr: Kconfig: enable PLATFORM_EC_I2C automatically
Enable PLATFORM_EC_I2C automatically based on the presence of the
named-i2c-node, select I2C automatically as well, drop all the now
redundant config options and safety checks.
Note that the DT_PATH check is not exactly equivalent to the
DT_HAS_NAMED_I2C_PORTS_ENABLED dependency, will address that in a
followup patch.
BRANCH=none
BUG=none
TEST=cq dry run
Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
Change-Id: I38e9725e63a02caae8f5efb1224262ee0430efb2
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4023447
Reviewed-by: Jeremy Bettis <jbettis@chromium.org>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'zephyr/Kconfig.i2c')
-rw-r--r-- | zephyr/Kconfig.i2c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/zephyr/Kconfig.i2c b/zephyr/Kconfig.i2c index 0187409b31..9fa1d274aa 100644 --- a/zephyr/Kconfig.i2c +++ b/zephyr/Kconfig.i2c @@ -3,7 +3,10 @@ # found in the LICENSE file. config PLATFORM_EC_I2C - def_bool I2C + bool "EC I2C Support" + default y + depends on DT_HAS_NAMED_I2C_PORTS_ENABLED + select I2C help Enable compilation of the EC i2c module. Once enabled, it will be possible to make calls using the old platform/ec i2c APIs defined |