diff options
Diffstat (limited to 'arch/arm/imx-common/cpu.c')
-rw-r--r-- | arch/arm/imx-common/cpu.c | 5 |
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); |