xref: /OK3568_Linux_fs/kernel/include/linux/platform_data/i2c-xiic.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0-only */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * i2c-xiic.h
4*4882a593Smuzhiyun  * Copyright (c) 2009 Intel Corporation
5*4882a593Smuzhiyun  */
6*4882a593Smuzhiyun 
7*4882a593Smuzhiyun /* Supports:
8*4882a593Smuzhiyun  * Xilinx IIC
9*4882a593Smuzhiyun  */
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #ifndef _LINUX_I2C_XIIC_H
12*4882a593Smuzhiyun #define _LINUX_I2C_XIIC_H
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun /**
15*4882a593Smuzhiyun  * struct xiic_i2c_platform_data - Platform data of the Xilinx I2C driver
16*4882a593Smuzhiyun  * @num_devices:	Number of devices that shall be added when the driver
17*4882a593Smuzhiyun  *			is probed.
18*4882a593Smuzhiyun  * @devices:		The actuall devices to add.
19*4882a593Smuzhiyun  *
20*4882a593Smuzhiyun  * This purpose of this platform data struct is to be able to provide a number
21*4882a593Smuzhiyun  * of devices that should be added to the I2C bus. The reason is that sometimes
22*4882a593Smuzhiyun  * the I2C board info is not enough, a new PCI board can for instance be
23*4882a593Smuzhiyun  * plugged into a standard PC, and the bus number might be unknown at
24*4882a593Smuzhiyun  * early init time.
25*4882a593Smuzhiyun  */
26*4882a593Smuzhiyun struct xiic_i2c_platform_data {
27*4882a593Smuzhiyun 	u8				num_devices;
28*4882a593Smuzhiyun 	struct i2c_board_info const	*devices;
29*4882a593Smuzhiyun };
30*4882a593Smuzhiyun 
31*4882a593Smuzhiyun #endif /* _LINUX_I2C_XIIC_H */
32