![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-only */ 0002 /* 0003 * i2c-mux-gpio interface to platform code 0004 * 0005 * Peter Korsgaard <peter.korsgaard@barco.com> 0006 */ 0007 0008 #ifndef _LINUX_I2C_MUX_GPIO_H 0009 #define _LINUX_I2C_MUX_GPIO_H 0010 0011 /* MUX has no specific idle mode */ 0012 #define I2C_MUX_GPIO_NO_IDLE ((unsigned)-1) 0013 0014 /** 0015 * struct i2c_mux_gpio_platform_data - Platform-dependent data for i2c-mux-gpio 0016 * @parent: Parent I2C bus adapter number 0017 * @base_nr: Base I2C bus number to number adapters from or zero for dynamic 0018 * @values: Array of bitmasks of GPIO settings (low/high) for each 0019 * position 0020 * @n_values: Number of multiplexer positions (busses to instantiate) 0021 * @classes: Optional I2C auto-detection classes 0022 * @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used 0023 */ 0024 struct i2c_mux_gpio_platform_data { 0025 int parent; 0026 int base_nr; 0027 const unsigned *values; 0028 int n_values; 0029 const unsigned *classes; 0030 unsigned idle; 0031 }; 0032 0033 #endif /* _LINUX_I2C_MUX_GPIO_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |