i2c: xlr: add support for Sigma Designs controller variant
authorMåns Rullgård <mans@mansr.com>
Mon, 2 Nov 2015 02:03:36 +0000 (02:03 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Tue, 15 Dec 2015 12:13:00 +0000 (13:13 +0100)
commit75d31c2372e4a08319919b14bd160c48305373a1
tree080f7a0592d7b64798ee20fd6a5a2820ceddeb0e
parent51549c087f2eb5788de48a7278c3eb169d66f554
i2c: xlr: add support for Sigma Designs controller variant

Sigma Designs chips use a variant of this controller with the following
differences:

- The BUSY bit in the STATUS register is inverted
- Bit 8 of the CONFIG register must be set
- The controller can generate interrupts

This patch adds support for the first two of these.  It also calculates
and sets the correct clock divisor if a clk is provided.  The bus
frequency is optionally speficied in the device tree node.

Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/Kconfig
drivers/i2c/busses/i2c-xlr.c