]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
OMAP: I2C: convert 'rev1' flag to generic 'rev' u8
authorPaul Walmsley <paul@pwsan.com>
Tue, 14 Oct 2008 12:19:26 +0000 (06:19 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 21:32:19 +0000 (13:32 -0800)
commit7d5c6f2a72e8131670b48c2c5dc04097b9ef6916
tree6c5d22fa4f76de0c4064a56adb6826faf5c815dc
parent0b5007680ac1cbb132d87583e0376f69cf1c673f
OMAP: I2C: convert 'rev1' flag to generic 'rev' u8

i2c-omap discriminates only between "revision 1" or "greater than
revision 1."  A following patch introduces code that must also
discriminate between rev2.x, rev3.6, and rev3.12 controllers.  Support
this by storing the full revision data from the I2C_REV register, rather
than just a single bit.

The revision definitions may need to be extended for other ES levels
that aren't currently available here.  rev3.6 is what's present on the
2430SDP here (unknown ES revision); rev3.12 is used on the 3430ES2
here.

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/i2c/busses/i2c-omap.c