2019-02-14 01:51:33 -07:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2006-06-04 12:01:08 -06:00
|
|
|
/*
|
|
|
|
* i2c-ocores.h - definitions for the i2c-ocores interface
|
|
|
|
*
|
2018-08-22 10:16:07 -06:00
|
|
|
* Peter Korsgaard <peter@korsgaard.com>
|
2006-06-04 12:01:08 -06:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LINUX_I2C_OCORES_H
|
|
|
|
#define _LINUX_I2C_OCORES_H
|
|
|
|
|
|
|
|
struct ocores_i2c_platform_data {
|
2012-07-13 07:44:23 -06:00
|
|
|
u32 reg_shift; /* register offset shift value */
|
2012-07-13 07:44:25 -06:00
|
|
|
u32 reg_io_width; /* register io read/write width */
|
2006-06-04 12:01:08 -06:00
|
|
|
u32 clock_khz; /* input clock in kHz */
|
2019-02-13 20:24:50 -07:00
|
|
|
u32 bus_khz; /* bus clock in kHz */
|
2015-10-06 17:45:11 -06:00
|
|
|
bool big_endian; /* registers are big endian */
|
2009-06-05 07:40:32 -06:00
|
|
|
u8 num_devices; /* number of devices in the devices list */
|
|
|
|
struct i2c_board_info const *devices; /* devices connected to the bus */
|
2006-06-04 12:01:08 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* _LINUX_I2C_OCORES_H */
|