summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common/cpu.c
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-03-31 09:56:27 +0800
committerPeng Fan <Peng.Fan@freescale.com>2015-04-29 15:00:31 +0800
commitfe02c2c77fa7b29b1a073cc08ecea34af6d87fd2 (patch)
treeb8e6c74ef3d5fd18db73a19a405254334a93b76e /arch/arm/imx-common/cpu.c
parent8d52c67d2680f42f21274675bb36b253a6a8d7ad (diff)
downloadu-boot-imx-fe02c2c77fa7b29b1a073cc08ecea34af6d87fd2.zip
u-boot-imx-fe02c2c77fa7b29b1a073cc08ecea34af6d87fd2.tar.gz
u-boot-imx-fe02c2c77fa7b29b1a073cc08ecea34af6d87fd2.tar.bz2
MLK-10774-30 imx:mx7 dm thermal driver support
Add thermal driver for mx7 Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'arch/arm/imx-common/cpu.c')
-rw-r--r--arch/arm/imx-common/cpu.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/imx-common/cpu.c b/arch/arm/imx-common/cpu.c
index 6e3e617..da2629a 100644
--- a/arch/arm/imx-common/cpu.c
+++ b/arch/arm/imx-common/cpu.c
@@ -168,7 +168,7 @@ int print_cpuinfo(void)
(struct dbg_monitor_regs *)DEBUG_MONITOR_BASE_ADDR;
#endif
-#if defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)
+#if defined(CONFIG_IMX_THERMAL)
struct udevice *thermal_dev;
int cpu_tmp, ret;
#endif
@@ -181,8 +181,7 @@ int print_cpuinfo(void)
(cpurev & 0x0000F) >> 0,
mxc_get_clock(MXC_ARM_CLK) / 1000000);
-#if (defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)) || \
- (defined(CONFIG_MX7) && defined(CONFIG_IMX7_THERMAL))
+#if defined(CONFIG_IMX_THERMAL)
ret = uclass_get_device(UCLASS_THERMAL, 0, &thermal_dev);
if (!ret) {
ret = thermal_get_temp(thermal_dev, &cpu_tmp);