i2c-mux-pinctrl.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * i2c-mux-pinctrl platform data
  3. *
  4. * Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved.
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. #ifndef _LINUX_I2C_MUX_PINCTRL_H
  19. #define _LINUX_I2C_MUX_PINCTRL_H
  20. /**
  21. * struct i2c_mux_pinctrl_platform_data - Platform data for i2c-mux-pinctrl
  22. * @parent_bus_num: Parent I2C bus number
  23. * @base_bus_num: Base I2C bus number for the child busses. 0 for dynamic.
  24. * @bus_count: Number of child busses. Also the number of elements in
  25. * @pinctrl_states
  26. * @pinctrl_states: The names of the pinctrl state to select for each child bus
  27. * @pinctrl_state_idle: The pinctrl state to select when no child bus is being
  28. * accessed. If NULL, the most recently used pinctrl state will be left
  29. * selected.
  30. */
  31. struct i2c_mux_pinctrl_platform_data {
  32. int parent_bus_num;
  33. int base_bus_num;
  34. int bus_count;
  35. const char **pinctrl_states;
  36. const char *pinctrl_state_idle;
  37. };
  38. #endif