mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-12-30 06:53:09 +00:00
c63edbc750
emc2305 is a common driver. It should not use platform specific i2c address for slave device. Pass chip_addr as agrument to emc2305_init() and set_fan_speed() so that emc2305 driver can be used with different platforms. Signed-off-by: Wasim Khan <wasim.khan@nxp.com> Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
22 lines
439 B
C
22 lines
439 B
C
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright 2018-2020 NXP
|
|
*
|
|
*/
|
|
|
|
#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
|
|
|
|
void emc2305_init(int chip_addr);
|
|
void set_fan_speed(u8 data, int chip_addr);
|
|
|
|
#endif /* __EMC2305_H_ */
|