From fe02c2c77fa7b29b1a073cc08ecea34af6d87fd2 Mon Sep 17 00:00:00 2001 From: Peng Fan Date: Tue, 31 Mar 2015 09:56:27 +0800 Subject: MLK-10774-30 imx:mx7 dm thermal driver support Add thermal driver for mx7 Signed-off-by: Peng Fan --- arch/arm/imx-common/cpu.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'arch/arm/imx-common/cpu.c') 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); -- cgit v1.1