| 1 |
|
| 2 |
|
| 3 |
#ifndef EC_CLEVO_IT5570E_CHIP_H |
| 4 |
#define EC_CLEVO_IT5570E_CHIP_H |
| 5 |
|
| 6 |
#define IT5570E_FAN_CURVE_LEN 4 |
| 7 |
#define IT5570E_MAX_FAN_CNT 4 |
| 8 |
|
| 9 |
enum ec_clevo_it5570e_fan_mode { |
| 10 |
FAN_MODE_AUTO = 0, |
| 11 |
FAN_MODE_CUSTOM, |
| 12 |
}; |
| 13 |
|
| 14 |
struct ec_clevo_it5570e_fan_curve { |
| 15 |
uint8_t temperature[IT5570E_FAN_CURVE_LEN]; |
| 16 |
uint8_t speed[IT5570E_FAN_CURVE_LEN]; |
| 17 |
}; |
| 18 |
|
| 19 |
struct ec_clevo_it5570e_config { |
| 20 |
uint8_t pl2_on_battery; |
| 21 |
enum ec_clevo_it5570e_fan_mode fan_mode; |
| 22 |
struct ec_clevo_it5570e_fan_curve fan_curves[IT5570E_MAX_FAN_CNT]; |
| 23 |
}; |
| 24 |
|
| 25 |
typedef struct ec_clevo_it5570e_config ec_config_t; |
| 26 |
|
| 27 |
#endif |