diff options
author | Ganesan Ramalingam <ganesanr@broadcom.com> | 2012-07-13 19:14:25 +0530 |
---|---|---|
committer | Wolfram Sang <w.sang@pengutronix.de> | 2012-07-14 13:30:25 +0200 |
commit | 7326e38ffe894d0cd2904704b7d8c53d4a55d752 (patch) | |
tree | 7261b5bad76ce15dbad07f78a5b5e4b210f6d634 /include/linux/i2c-ocores.h | |
parent | d739a464f3b83cc879a2ba6aec33634c44068531 (diff) | |
download | lwn-7326e38ffe894d0cd2904704b7d8c53d4a55d752.tar.gz lwn-7326e38ffe894d0cd2904704b7d8c53d4a55d752.zip |
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>
Diffstat (limited to 'include/linux/i2c-ocores.h')
-rw-r--r-- | include/linux/i2c-ocores.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/i2c-ocores.h b/include/linux/i2c-ocores.h index 5d95df2436f4..1c06b5c7c308 100644 --- a/include/linux/i2c-ocores.h +++ b/include/linux/i2c-ocores.h @@ -13,6 +13,7 @@ struct ocores_i2c_platform_data { u32 reg_shift; /* register offset shift value */ + u32 reg_io_width; /* register io read/write width */ u32 clock_khz; /* input clock in kHz */ u8 num_devices; /* number of devices in the devices list */ struct i2c_board_info const *devices; /* devices connected to the bus */ |