]> git.ipfire.org Git - thirdparty/u-boot.git/commit
i2c: xiic: Add Xilinx AXI I2C driver
authorMarek Vasut <marex@denx.de>
Wed, 19 Dec 2018 11:26:27 +0000 (12:26 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 28 Jan 2019 07:37:48 +0000 (08:37 +0100)
commitc4b5cf418d79f661167948385efe56ac0430a893
tree0a374e8e8e8e00e4fbd92201ceac064273541487
parent61620db46685d14782ca811f91a347e6ea25664d
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]