summaryrefslogtreecommitdiff
path: root/board/freescale/common/emc2305.h
diff options
context:
space:
mode:
authorMeenakshi Aggarwal <meenakshi.aggarwal@nxp.com>2018-11-30 22:32:11 +0530
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2019-02-19 10:26:43 +0530
commite088e587eda7a8813c977ddee84207ca728f87c5 (patch)
treef85ed14ac2c1acb0a175d077b25f78450396e75f /board/freescale/common/emc2305.h
parent58c3e62040befff8a32a9fd157b0dcd23de194ec (diff)
armv8: emc2305: add support for fan controller
Add support for fan controller emc2305. Signed-off-by: Sriram Dash <sriram.dash@nxp.com> Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com> Signed-off-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Diffstat (limited to 'board/freescale/common/emc2305.h')
-rw-r--r--board/freescale/common/emc2305.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/board/freescale/common/emc2305.h b/board/freescale/common/emc2305.h
new file mode 100644
index 0000000000..eddf537138
--- /dev/null
+++ b/board/freescale/common/emc2305.h
@@ -0,0 +1,23 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright 2018 NXP
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#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(void);
+void set_fan_speed(u8 data);
+
+#endif /* __EMC2305_H_ */