net: phy: add minimal support for QSGMII PHY
[firefly-linux-kernel-4.4.55.git] / include / linux / i2c-mux-gpio.h
index a36343a37ebced7c26ae036b3f4155efddd18790..4406108201febf917e250aa3d95f2c0e855496a2 100644 (file)
@@ -21,6 +21,9 @@
  * @values: Array of bitmasks of GPIO settings (low/high) for each
  *     position
  * @n_values: Number of multiplexer positions (busses to instantiate)
+ * @classes: Optional I2C auto-detection classes
+ * @gpio_chip: Optional GPIO chip name; if set, GPIO pin numbers are given
+ *     relative to the base GPIO number of that chip
  * @gpios: Array of GPIO numbers used to control MUX
  * @n_gpios: Number of GPIOs used to control MUX
  * @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used
@@ -30,6 +33,8 @@ struct i2c_mux_gpio_platform_data {
        int base_nr;
        const unsigned *values;
        int n_values;
+       const unsigned *classes;
+       char *gpio_chip;
        const unsigned *gpios;
        int n_gpios;
        unsigned idle;