i2c: i2c-ocores: support for 16bit and 32bit IO
authorGanesan Ramalingam <ganesanr@broadcom.com>
Fri, 13 Jul 2012 13:44:25 +0000 (19:14 +0530)
committerWolfram Sang <w.sang@pengutronix.de>
Sat, 14 Jul 2012 11:30:25 +0000 (13:30 +0200)
commit7326e38ffe894d0cd2904704b7d8c53d4a55d752
tree7261b5bad76ce15dbad07f78a5b5e4b210f6d634
parentd739a464f3b83cc879a2ba6aec33634c44068531
i2c: i2c-ocores: support for 16bit and 32bit IO

Some architectures supports only 16-bit or 32-bit read/write access to
their IO space. Add a 'reg-io-width' platform and OF parameter which
specifies the IO width to support these platforms.

reg-io-width can be specified as 1, 2 or 4, and has a default value
of 1 if it is unspecified.

Signed-off-by: Ganesan Ramalingam <ganesanr@broadcom.com>
Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Documentation/devicetree/bindings/i2c/i2c-ocores.txt
drivers/i2c/busses/i2c-ocores.c
include/linux/i2c-ocores.h