i2c: designware: Add support for 16bit register access
authorStefan Roese <sr@denx.de>
Wed, 18 Apr 2012 13:01:41 +0000 (15:01 +0200)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 12 May 2012 12:28:11 +0000 (14:28 +0200)
commita8a9f3fef1aa5226818af91b7a241de6d74d369c
tree8002e2cc53f5e195b0237e9ee54cccd6d31d72ec
parent44454baa7ca7bb57c47a5564ed2528ba211fe8db
i2c: designware: Add support for 16bit register access

The STM SPEAr platform can only access the i2c controller register
via 16bit read/write functions. This patch adds support to
automatically detect this 16bit access mode.

Signed-off-by: Stefan Roese <sr@denx.de>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
drivers/i2c/busses/i2c-designware-core.c
drivers/i2c/busses/i2c-designware-core.h