2018-11-30 17:02:11 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
|
|
/*
|
2020-08-27 13:43:34 +00:00
|
|
|
* Copyright 2018-2020 NXP
|
2018-11-30 17:02:11 +00:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __EMC2305_H_
|
|
|
|
#define __EMC2305_H_
|
|
|
|
|
|
|
|
#define I2C_EMC2305_CONF 0x20
|
|
|
|
#define I2C_EMC2305_FAN1 0x30
|
|
|
|
#define I2C_EMC2305_FAN2 0x40
|
|
|
|
#define I2C_EMC2305_FAN3 0x50
|
|
|
|
#define I2C_EMC2305_FAN4 0x60
|
|
|
|
#define I2C_EMC2305_FAN5 0x70
|
|
|
|
|
|
|
|
#define NUM_OF_FANS 5
|
|
|
|
|
2020-08-27 13:43:34 +00:00
|
|
|
void emc2305_init(int chip_addr);
|
|
|
|
void set_fan_speed(u8 data, int chip_addr);
|
2018-11-30 17:02:11 +00:00
|
|
|
|
|
|
|
#endif /* __EMC2305_H_ */
|