Add support for 16-bit registers
authorCory Maccarrone <darkstar6262@gmail.com>
Sun, 13 Dec 2009 01:54:02 +0000 (01:54 +0000)
committerTony Lindgren <tony@atomide.com>
Mon, 11 Jan 2010 23:29:40 +0000 (15:29 -0800)
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>
Signed-off-by: Tony Lindgren <tony@atomide.com>

No differences found