i2c: omap: Add support for 16-bit registers
authorCory Maccarrone <darkstar6262@gmail.com>
Sun, 13 Dec 2009 01:54:02 +0000 (17:54 -0800)
committerBen Dooks <ben-linux@fluff.org>
Sun, 7 Mar 2010 22:18:17 +0000 (22:18 +0000)
commitd84d3ea317ce0db89ce0903b4037f800c5d4c477
tree1804a752e9d56afffdc64ea54c4b02baca7771a2
parent96eb7164e3c2f8c1b53118078e5c06f7c34c2d49
i2c: omap: Add support for 16-bit registers

The current i2c-omap driver is set up for 32-bit registers, which
corresponds to most OMAP devices.  However, OMAP730/850 based
devices use a 16-bit register size.

This change modifies the driver to perform a runtime CPU type check
to determine the register sizes, and uses a bit shift of either 1
or 2 bits to compute the proper register sizes for all registers.

Signed-off-by: Cory Maccarrone <darkstar6262@gmail.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
drivers/i2c/busses/i2c-omap.c