mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 05:25:11 +07:00
273cbf61c3
Pull i2c updates from Wolfram Sang: "New stuff from the I2C world: - in the core, getting irqs from ACPI is now similar to OF - new driver for MediaTek MT7621/7628/7688 SoCs - bcm2835, i801, and tegra drivers got some more attention - GPIO API cleanups - cleanups in the core headers - lots of usual driver updates" * 'i2c/for-5.3' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux: (74 commits) i2c: mt7621: Fix platform_no_drv_owner.cocci warnings i2c: cpm: remove casting dma_alloc dt-bindings: i2c: sun6i-p2wi: Fix the binding example dt-bindings: i2c: mv64xxx: Fix the example compatible i2c: i801: Documentation update i2c: i801: Add support for Intel Tiger Lake i2c: i801: Fix PCI ID sorting dt-bindings: i2c-stm32: document optional dmas i2c: i2c-stm32f7: Add I2C_SMBUS_I2C_BLOCK_DATA support i2c: core: Tidy up handling of init_irq i2c: core: Move ACPI gpio IRQ handling into i2c_acpi_get_irq i2c: core: Move ACPI IRQ handling to probe time i2c: acpi: Factor out getting the IRQ from ACPI i2c: acpi: Use available IRQ helper functions i2c: core: Allow whole core to use i2c_dev_irq_from_resources eeprom: at24: modify a comment referring to platform data dt-bindings: i2c: omap: Add new compatible for J721E SoCs dt-bindings: i2c: mv64xxx: Add YAML schemas dt-bindings: i2c: sun6i-p2wi: Add YAML schemas i2c: mt7621: Add MediaTek MT7621/7628/7688 I2C driver ...
34 lines
955 B
C
34 lines
955 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* i2c-mux-gpio interface to platform code
|
|
*
|
|
* Peter Korsgaard <peter.korsgaard@barco.com>
|
|
*/
|
|
|
|
#ifndef _LINUX_I2C_MUX_GPIO_H
|
|
#define _LINUX_I2C_MUX_GPIO_H
|
|
|
|
/* MUX has no specific idle mode */
|
|
#define I2C_MUX_GPIO_NO_IDLE ((unsigned)-1)
|
|
|
|
/**
|
|
* struct i2c_mux_gpio_platform_data - Platform-dependent data for i2c-mux-gpio
|
|
* @parent: Parent I2C bus adapter number
|
|
* @base_nr: Base I2C bus number to number adapters from or zero for dynamic
|
|
* @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
|
|
* @idle: Bitmask to write to MUX when idle or GPIO_I2CMUX_NO_IDLE if not used
|
|
*/
|
|
struct i2c_mux_gpio_platform_data {
|
|
int parent;
|
|
int base_nr;
|
|
const unsigned *values;
|
|
int n_values;
|
|
const unsigned *classes;
|
|
unsigned idle;
|
|
};
|
|
|
|
#endif /* _LINUX_I2C_MUX_GPIO_H */
|