i2c: xlr: add interrupt support for Sigma Designs chips
authorMåns Rullgård <mans@mansr.com>
Tue, 15 Dec 2015 23:15:06 +0000 (23:15 +0000)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 16 Dec 2015 10:42:58 +0000 (11:42 +0100)
commit5398b7ef6cdbc88581457b26b924081fc53d1de8
tree60aeae266a3febdbfa25cd265036e4f2855bd801
parenta45af72a609b095820feab26c49286337301377e
i2c: xlr: add interrupt support for Sigma Designs chips

The Sigma Designs variant of this controller has the ability to generate
interrupts.  This is controlled using two additional registers, oddly
enough overlapping with the defined but unused HDSTATIM.

This patch adds support for using this feature instead of busy-looping
if an IRQ is specified.

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