Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * i2c-ocores.h - definitions for the i2c-ocores interface
0004  *
0005  * Peter Korsgaard <peter@korsgaard.com>
0006  */
0007 
0008 #ifndef _LINUX_I2C_OCORES_H
0009 #define _LINUX_I2C_OCORES_H
0010 
0011 struct ocores_i2c_platform_data {
0012     u32 reg_shift; /* register offset shift value */
0013     u32 reg_io_width; /* register io read/write width */
0014     u32 clock_khz; /* input clock in kHz */
0015     u32 bus_khz; /* bus clock in kHz */
0016     bool big_endian; /* registers are big endian */
0017     u8 num_devices; /* number of devices in the devices list */
0018     struct i2c_board_info const *devices; /* devices connected to the bus */
0019 };
0020 
0021 #endif /* _LINUX_I2C_OCORES_H */