i2c: xiic: Add Xilinx AXI I2C driver
authorMarek Vasut <marex@denx.de>
Wed, 19 Dec 2018 11:26:27 +0000 (12:26 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 15 Jan 2019 08:04:49 +0000 (09:04 +0100)
commitad827a500b44a0969d9f835850db23b479eb2c44
tree67544b83a3b2cf26c3339c622a45ed0631c245db
parentd3689267f92c5956e09cc7d1baa4700141662bff
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 <marex@denx.de>
Cc: Michal Simek <monstr@monstr.eu>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Heiko Schocher <hs@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/Kconfig
drivers/i2c/Makefile
drivers/i2c/xilinx_xiic.c [new file with mode: 0644]