summaryrefslogtreecommitdiff
path: root/board/freescale/common/emc2305.h
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2019-02-20 12:26:05 -0500
committerTom Rini <trini@konsulko.com>2019-02-20 12:26:05 -0500
commit176b32cd4fec52307dd8234ec1c86d2f340e7a36 (patch)
treea0cb5ffc2543573d1e5af1ddb7500d97e15b3a00 /board/freescale/common/emc2305.h
parent97f9830849c64d60d0cf2fd69e87dfe4557d02a4 (diff)
parentb0d4a854751b1bee75fc04fac58561212f6b9c64 (diff)
Merge git://git.denx.de/u-boot-fsl-qoriq
- Support of NXP's LX2160RDB and LX2160QDS platform - Enable SATA DM model for NXP's ARM SoCs
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_ */