summaryrefslogtreecommitdiff
path: root/arch/arm/imx-common
diff options
context:
space:
mode:
authorPeng Fan <Peng.Fan@freescale.com>2015-03-31 09:56:27 +0800
committerMax Krummenacher <max.krummenacher@toradex.com>2016-03-09 14:42:13 +0100
commitd6c37f9dd8eb74f8a79e39e03eb1bdcfd81f2663 (patch)
tree1b95fe493c9b0abb25da83f5a48b849b4b71a14d /arch/arm/imx-common
parentdc9a0bcb0ca62ecdc6a615e76581dc0869f6dd33 (diff)
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')
-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 6e3e61744f4..da2629ad0de 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);