]> git.sur5r.net Git - u-boot/commitdiff
mx6: mx6sabre common: Enable i.MX thermal DM driver
authorYe.Li <B37916@freescale.com>
Thu, 20 Nov 2014 13:14:15 +0000 (21:14 +0800)
committerStefano Babic <sbabic@denx.de>
Fri, 21 Nov 2014 14:30:12 +0000 (15:30 +0100)
Enable i.MX thermal DM driver to mx6sabre_common.h file. Since the
thermal is used in init_sequence_f, so define the CONFIG_SYS_MALLOC_F_LEN
to support DM driver using in pre relocation phase.

Additional, thermal driver depends on ocotp, make sure to enable
CONFIG_MXC_OCOTP when CONFIG_IMX6_THERMAL is selected.

Signed-off-by: Ye.Li <B37916@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>
include/configs/mx6sabre_common.h

index 1e104229f94e3b94c5a28d3f9bd8c30fbd3a5a27..9fdd8410a421f12110d0c3856695114ceef45777 100644 (file)
 #define CONFIG_INITRD_TAG
 #define CONFIG_REVISION_TAG
 
+#define CONFIG_DM
+#define CONFIG_DM_THERMAL
+#define CONFIG_SYS_MALLOC_F_LEN        (1 << 10)
+#define CONFIG_IMX6_THERMAL
+
 #define CONFIG_SYS_GENERIC_BOARD
 
 /* Size of malloc() pool */
@@ -37,7 +42,7 @@
 #define CONFIG_MXC_UART
 
 #define CONFIG_CMD_FUSE
-#ifdef CONFIG_CMD_FUSE
+#if defined(CONFIG_CMD_FUSE) || defined(CONFIG_IMX6_THERMAL)
 #define CONFIG_MXC_OCOTP
 #endif