diff options
author | Wolfram Sang <wsa+renesas@sang-engineering.com> | 2020-09-11 09:16:58 +0200 |
---|---|---|
committer | Wolfram Sang <wsa@kernel.org> | 2020-09-21 11:02:17 +0200 |
commit | a8335c64c5f0916c9ee8b88835ce114085c3642e (patch) | |
tree | a26de00eeea4a585165d311baa83bf71275323d6 /drivers/i2c/Kconfig | |
parent | i2c: stm32: name slave slot to ease maintenance (diff) | |
download | linux-a8335c64c5f0916c9ee8b88835ce114085c3642e.tar.xz linux-a8335c64c5f0916c9ee8b88835ce114085c3642e.zip |
i2c: add slave testunit driver
Here is an I2C slave backend driver which allows to test some uncommon
functionalities of the I2C and SMBus world. Usually, you need specific
devices to test e.g. SMBus Host Notify and such. With this driver you
just need the slave interface of another I2C controller.
This initial version has testcases for multi-master and SMBus Host
Notify. Already planned but not yet implemented are SMBus Alert and
messages with I2C_M_RECV_LEN.
Please read the documentation for further details.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Diffstat (limited to 'drivers/i2c/Kconfig')
-rw-r--r-- | drivers/i2c/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 5449729cdb87..438905e2a1d0 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -125,6 +125,14 @@ config I2C_SLAVE_EEPROM This backend makes Linux behave like an I2C EEPROM. Please read Documentation/i2c/slave-eeprom-backend.rst for further details. +config I2C_SLAVE_TESTUNIT + tristate "I2C eeprom testunit driver" + help + This backend can be used to trigger test cases for I2C bus masters + which require a remote device with certain capabilities, e.g. + multi-master, SMBus Host Notify, etc. Please read + Documentation/i2c/slave-testunit-backend.rst for further details. + endif config I2C_DEBUG_CORE |