forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ITE: drivers/i2c: I2C driver divided into two compatibles
As mentioned in zephyrproject-rtos#42882, the I2C of IT8XXX2 is designed for two different IP blocks, so this PR divides this I2C driver into two compatibles. Signed-off-by: Tim Lin <[email protected]>
- Loading branch information
1 parent
f18decd
commit f2c4266
Showing
15 changed files
with
1,211 additions
and
739 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,22 @@ | ||
# Copyright (c) 2020 ITE Corporation. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
DT_COMPAT_ITE_IT8XXX2_I2C := ite,it8xxx2-i2c | ||
DT_COMPAT_ITE_ENHANCE_I2C := ite,enhance-i2c | ||
|
||
config I2C_ITE_IT8XXX2 | ||
bool "ITE IT8XXX2 I2C driver" | ||
depends on SOC_IT8XXX2 | ||
default $(dt_compat_enabled,$(DT_COMPAT_ITE_IT8XXX2_I2C)) | ||
help | ||
Enable I2C support on it8xxx2_evb. | ||
Supported Speeds: 100kHz, 400kHz and 1MHz. | ||
This driver supports repeated start. | ||
|
||
config I2C_ITE_ENHANCE | ||
bool "ITE IT8XXX2 I2C enhance driver" | ||
depends on SOC_IT8XXX2 | ||
default $(dt_compat_enabled,$(DT_COMPAT_ITE_ENHANCE_I2C)) | ||
help | ||
This option can enable the enhance I2C | ||
of IT8XXX2 and support three channels. |
Oops, something went wrong.