From: Cory Maccarrone Date: Sun, 13 Dec 2009 01:54:02 +0000 (-0800) Subject: i2c: omap: Add support for 16-bit registers X-Git-Tag: v2.6.34-rc1~8^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d84d3ea317ce0db89ce0903b4037f800c5d4c477;p=pandora-kernel.git 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 Acked-by: Tony Lindgren Signed-off-by: Ben Dooks --- Reading git-diff-tree failed