max6697.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * max6697.h
  3. * Copyright (c) 2012 Guenter Roeck <linux@roeck-us.net>
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #ifndef MAX6697_H
  10. #define MAX6697_H
  11. #include <linux/types.h>
  12. /*
  13. * For all bit masks:
  14. * bit 0: local temperature
  15. * bit 1..7: remote temperatures
  16. */
  17. struct max6697_platform_data {
  18. bool smbus_timeout_disable; /* set to disable SMBus timeouts */
  19. bool extended_range_enable; /* set to enable extended temp range */
  20. bool beta_compensation; /* set to enable beta compensation */
  21. u8 alert_mask; /* set bit to 1 to disable alert */
  22. u8 over_temperature_mask; /* set bit to 1 to disable */
  23. u8 resistance_cancellation; /* set bit to 0 to disable
  24. * bit mask for MAX6581,
  25. * boolean for other chips
  26. */
  27. u8 ideality_mask; /* set bit to 0 to disable */
  28. u8 ideality_value; /* transistor ideality as per
  29. * MAX6581 datasheet
  30. */
  31. };
  32. #endif /* MAX6697_H */