i2c: designware: add SLAVE mode functions
- Changes in Kconfig to enable I2C_DESIGNWARE_SLAVE support - Slave functions added to core library file - Slave abort sources added to common source file - New driver: i2c-designware-slave added - Changes in the Makefile to compile the I2C_DESIGNWARE_SLAVE module when supported by the architecture. All the SLAVE flow is added but it is not enabled via platform driver. Signed-off-by: Luis Oliveira <lolivei@synopsys.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Acked-by: Jarkko Nikula <jarkko.nikula@linux.intel.com> [wsa: made a function static and one-lined a message] Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
This commit is contained in:

committed by
Wolfram Sang

parent
86766a3e15
commit
9f3e065c54
@@ -56,6 +56,12 @@ static char *abort_sources[] = {
|
||||
"trying to use disabled adapter",
|
||||
[ARB_LOST] =
|
||||
"lost arbitration",
|
||||
[ABRT_SLAVE_FLUSH_TXFIFO] =
|
||||
"read command so flush old data in the TX FIFO",
|
||||
[ABRT_SLAVE_ARBLOST] =
|
||||
"slave lost the bus while transmitting data to a remote master",
|
||||
[ABRT_SLAVE_RD_INTX] =
|
||||
"incorrect slave-transmitter mode configuration",
|
||||
};
|
||||
|
||||
u32 dw_readl(struct dw_i2c_dev *dev, int offset)
|
||||
|
Reference in New Issue
Block a user