ds1wm.h 817 B

1234567891011121314151617181920212223242526272829
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /* MFD cell driver data for the DS1WM driver
  3. *
  4. * to be defined in the MFD device that is
  5. * using this driver for one of his sub devices
  6. */
  7. struct ds1wm_driver_data {
  8. int active_high;
  9. int clock_rate;
  10. /* in milliseconds, the amount of time to
  11. * sleep following a reset pulse. Zero
  12. * should work if your bus devices recover
  13. * time respects the 1-wire spec since the
  14. * ds1wm implements the precise timings of
  15. * a reset pulse/presence detect sequence.
  16. */
  17. unsigned int reset_recover_delay;
  18. /* Say 1 here for big endian Hardware
  19. * (only relevant with bus-shift > 0
  20. */
  21. bool is_hw_big_endian;
  22. /* left shift of register number to get register address offsett.
  23. * Only 0,1,2 allowed for 8,16 or 32 bit bus width respectively
  24. */
  25. unsigned int bus_shift;
  26. };