3 * Dirk Eibach, Guntermann & Drunck GmbH, eibach@gdsys.de
5 * SPDX-License-Identifier: GPL-2.0+
13 FAN_TACHLIM_LSB = 0x48,
14 FAN_TACHLIM_MSB = 0x49,
18 void init_fan_controller(u8 addr)
22 /* set PWM Frequency to 2.5% resolution */
23 i2c_reg_write(addr, FAN_PWM_FREQ, 20);
25 /* set Tachometer Limit */
26 i2c_reg_write(addr, FAN_TACHLIM_LSB, 0x10);
27 i2c_reg_write(addr, FAN_TACHLIM_MSB, 0x0a);
29 /* enable Tach input */
30 val = i2c_reg_read(addr, FAN_CONFIG) | 0x04;
31 i2c_reg_write(addr, FAN_CONFIG, val);