Meenakshi Aggarwal | bbd3318 | 2018-11-30 22:32:11 +0530 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
Wasim Khan | 1424198 | 2020-08-27 19:13:34 +0530 | [diff] [blame] | 3 | * Copyright 2018-2020 NXP |
Meenakshi Aggarwal | bbd3318 | 2018-11-30 22:32:11 +0530 | [diff] [blame] | 4 | * |
Meenakshi Aggarwal | bbd3318 | 2018-11-30 22:32:11 +0530 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __EMC2305_H_ |
| 8 | #define __EMC2305_H_ |
| 9 | |
| 10 | #define I2C_EMC2305_CONF 0x20 |
| 11 | #define I2C_EMC2305_FAN1 0x30 |
| 12 | #define I2C_EMC2305_FAN2 0x40 |
| 13 | #define I2C_EMC2305_FAN3 0x50 |
| 14 | #define I2C_EMC2305_FAN4 0x60 |
| 15 | #define I2C_EMC2305_FAN5 0x70 |
| 16 | |
| 17 | #define NUM_OF_FANS 5 |
| 18 | |
Wasim Khan | 1424198 | 2020-08-27 19:13:34 +0530 | [diff] [blame] | 19 | void emc2305_init(int chip_addr); |
| 20 | void set_fan_speed(u8 data, int chip_addr); |
Meenakshi Aggarwal | bbd3318 | 2018-11-30 22:32:11 +0530 | [diff] [blame] | 21 | |
| 22 | #endif /* __EMC2305_H_ */ |