]>
git.ipfire.org Git - thirdparty/u-boot.git/blob - board/freescale/common/emc2305.c
8523084da9c94d99b32002e8f68c249b1a996c78
1 // SPDX-License-Identifier: GPL-2.0+
5 * SPDX-License-Identifier: GPL-2.0+
15 DECLARE_GLOBAL_DATA_PTR
;
17 void set_fan_speed(u8 data
)
20 u8 Fan
[NUM_OF_FANS
] = {I2C_EMC2305_FAN1
,
26 for (index
= 0; index
< NUM_OF_FANS
; index
++) {
27 if (i2c_write(I2C_EMC2305_ADDR
, Fan
[index
], 1, &data
, 1) != 0) {
28 printf("Error: failed to change fan speed @%x\n",
34 void emc2305_init(void)
38 data
= I2C_EMC2305_CMD
;
39 if (i2c_write(I2C_EMC2305_ADDR
, I2C_EMC2305_CONF
, 1, &data
, 1) != 0)
40 printf("Error: failed to configure EMC2305\n");