Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
24 lines
757 B
C
24 lines
757 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 */
|
|
bool big_endian; /* registers are big endian */
|
|
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 */
|