From ad827a500b44a0969d9f835850db23b479eb2c44 Mon Sep 17 00:00:00 2001 From: Marek Vasut Date: Wed, 19 Dec 2018 12:26:27 +0100 Subject: i2c: xiic: Add Xilinx AXI I2C driver Add Xilinx AXI I2C controller driver based on the Linux i2c-xiic driver. This driver is stripped of all the IRQ handling and uses pure polling, yet tries to retain most of the structure of the Linux driver to make backporting of fixes easy. Note that the IP has a known limitation on 255 bytes read and write, according to xilinx this is still being worked on [1]. [1] https://forums.xilinx.com/t5/Embedded-Processor-System-Design/AXI-IIC-V2-0-I2C-Master-Reading-multiple-bytes-from-I2C-slave/m-p/854419/highlight/true#M39387 Signed-off-by: Marek Vasut Cc: Michal Simek Cc: Michal Simek Cc: Heiko Schocher Reviewed-by: Heiko Schocher --- drivers/i2c/Kconfig | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/i2c/Kconfig') diff --git a/drivers/i2c/Kconfig b/drivers/i2c/Kconfig index 1ef22e6bcd..536617115a 100644 --- a/drivers/i2c/Kconfig +++ b/drivers/i2c/Kconfig @@ -450,6 +450,12 @@ config SYS_I2C_BUS_MAX help Define the maximum number of available I2C buses. +config SYS_I2C_XILINX_XIIC + bool "Xilinx AXI I2C driver" + depends on DM_I2C + help + Support for Xilinx AXI I2C controller. + config SYS_I2C_ZYNQ bool "Xilinx I2C driver" depends on ARCH_ZYNQMP || ARCH_ZYNQ -- cgit