![]() |
|
|||
0001 /* SPDX-License-Identifier: GPL-2.0-or-later */ 0002 /* 0003 * I2C multiplexer using a single register 0004 * 0005 * Copyright 2015 Freescale Semiconductor 0006 * York Sun <yorksun@freescale.com> 0007 */ 0008 0009 #ifndef __LINUX_PLATFORM_DATA_I2C_MUX_REG_H 0010 #define __LINUX_PLATFORM_DATA_I2C_MUX_REG_H 0011 0012 /** 0013 * struct i2c_mux_reg_platform_data - Platform-dependent data for i2c-mux-reg 0014 * @parent: Parent I2C bus adapter number 0015 * @base_nr: Base I2C bus number to number adapters from or zero for dynamic 0016 * @values: Array of value for each channel 0017 * @n_values: Number of multiplexer channels 0018 * @little_endian: Indicating if the register is in little endian 0019 * @write_only: Reading the register is not allowed by hardware 0020 * @classes: Optional I2C auto-detection classes 0021 * @idle: Value to write to mux when idle 0022 * @idle_in_use: indicate if idle value is in use 0023 * @reg: Virtual address of the register to switch channel 0024 * @reg_size: register size in bytes 0025 */ 0026 struct i2c_mux_reg_platform_data { 0027 int parent; 0028 int base_nr; 0029 const unsigned int *values; 0030 int n_values; 0031 bool little_endian; 0032 bool write_only; 0033 const unsigned int *classes; 0034 u32 idle; 0035 bool idle_in_use; 0036 void __iomem *reg; 0037 resource_size_t reg_size; 0038 }; 0039 0040 #endif /* __LINUX_PLATFORM_DATA_I2C_MUX_REG_H */
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |