]> git.sur5r.net Git - u-boot/commitdiff
mx6sxsabresd: Add thermal support
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 25 Nov 2014 15:11:07 +0000 (13:11 -0200)
committerStefano Babic <sbabic@denx.de>
Mon, 1 Dec 2014 09:20:18 +0000 (10:20 +0100)
Add thermal support so that the temperature of the chip can be displayed on
boot:

U-Boot 2015.01-rc1-18268-g1366c05-dirty (Nov 25 2014 - 13:02:42)

CPU:   Freescale i.MX6SX rev1.0 at 792 MHz
CPU:   Temperature 50 C

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
include/configs/mx6sxsabresd.h

index d8ab2917ea177fe7025eb439b1c82c28b3a687ff..5e0edabf3738812cfb84feb48280e7f841b87f7c 100644 (file)
 #define CONFIG_PCIE_IMX_POWER_GPIO     IMX_GPIO_NR(2, 1)
 #endif
 
+#define CONFIG_DM
+#define CONFIG_DM_THERMAL
+#define CONFIG_SYS_MALLOC_F_LEN        (1 << 10)
+#define CONFIG_IMX6_THERMAL
+
+#define CONFIG_CMD_FUSE
+#if defined(CONFIG_CMD_FUSE) || defined(CONFIG_IMX6_THERMAL)
+#define CONFIG_MXC_OCOTP
+#endif
+
 /* FLASH and environment organization */
 #define CONFIG_SYS_NO_FLASH