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