1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | /* |
3 | * max6697.h |
4 | * Copyright (c) 2012 Guenter Roeck <linux@roeck-us.net> |
5 | */ |
6 | |
7 | #ifndef MAX6697_H |
8 | #define MAX6697_H |
9 | |
10 | #include <linux/types.h> |
11 | |
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 | |
33 | #endif /* MAX6697_H */ |
34 | |