mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 16:29:59 +00:00
![Ganesan Ramalingam](/assets/img/avatar_default.png)
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>
22 lines
708 B
C
22 lines
708 B
C
/*
|
|
* i2c-ocores.h - definitions for the i2c-ocores interface
|
|
*
|
|
* Peter Korsgaard <jacmet@sunsite.dk>
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public License
|
|
* version 2. This program is licensed "as is" without any warranty of any
|
|
* kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef _LINUX_I2C_OCORES_H
|
|
#define _LINUX_I2C_OCORES_H
|
|
|
|
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 */
|
|
};
|
|
|
|
#endif /* _LINUX_I2C_OCORES_H */
|