summaryrefslogtreecommitdiffstats
path: root/include/configs/mx6sabre_common.h
diff options
context:
space:
mode:
authorYe.Li <B37916@freescale.com>2014-11-20 21:14:15 +0800
committerStefano Babic <sbabic@denx.de>2014-11-21 15:30:12 +0100
commit6c920ee91039ef27fec9e7c5591fa79ad4b4f8d1 (patch)
tree62e2880f86748f5a259fb1c0b44793e02acb6735 /include/configs/mx6sabre_common.h
parent7a264168473b8a9ad94352d55a0392ae251676a8 (diff)
downloadtalos-obmc-uboot-6c920ee91039ef27fec9e7c5591fa79ad4b4f8d1.tar.gz
talos-obmc-uboot-6c920ee91039ef27fec9e7c5591fa79ad4b4f8d1.zip
mx6: mx6sabre common: Enable i.MX thermal DM driver
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>
Diffstat (limited to 'include/configs/mx6sabre_common.h')
-rw-r--r--include/configs/mx6sabre_common.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/configs/mx6sabre_common.h b/include/configs/mx6sabre_common.h
index 1e104229f9..9fdd8410a4 100644
--- a/include/configs/mx6sabre_common.h
+++ b/include/configs/mx6sabre_common.h
@@ -25,6 +25,11 @@
#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
OpenPOWER on IntegriCloud