From a45d94ac0bd388445957e0b116bbae12d010ae1a Mon Sep 17 00:00:00 2001 From: Werner Zeh Date: Wed, 14 Feb 2018 07:52:08 +0100 Subject: drivers/i2c: Add chip driver for I/O expander PCA9538 The chip PCA9538 is a 8 bit I/O expander connected to the systems I2C bus. Add a chip driver to support this chip. Beside the pure chip driver two interface functions are provided to read the state of the pins and write output values to the pins. As the slave address of this chip is hardware configurable the function pca9538_get_dev() is used to get the right slave address. This function needs to be implemented in mainboard code if one needs to use the interface functions to read and write I/O state. Change-Id: Ic856123b4f4c8b721928ee3a2a4bb37833ea4b20 Signed-off-by: Werner Zeh Reviewed-on: https://review.coreboot.org/23748 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/drivers/i2c/pca9538/Kconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/drivers/i2c/pca9538/Kconfig (limited to 'src/drivers/i2c/pca9538/Kconfig') diff --git a/src/drivers/i2c/pca9538/Kconfig b/src/drivers/i2c/pca9538/Kconfig new file mode 100644 index 0000000000..558332be3d --- /dev/null +++ b/src/drivers/i2c/pca9538/Kconfig @@ -0,0 +1,5 @@ +config DRIVERS_I2C_PCA9538 + bool + default n + help + Enable support for I2C I/O expander PCA9538. -- cgit v1.2.3