imx: cpu: support tmu
Support tmu when print cpu info Signed-off-by: peng Fan <peng.fan@nxp.com>
This commit is contained in:
parent
ef56281cf3
commit
dc597d1d40
@ -168,7 +168,7 @@ int print_cpuinfo(void)
|
|||||||
|
|
||||||
cpurev = get_cpu_rev();
|
cpurev = get_cpu_rev();
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_THERMAL)
|
#if defined(CONFIG_IMX_THERMAL) || defined(CONFIG_IMX_TMU)
|
||||||
struct udevice *thermal_dev;
|
struct udevice *thermal_dev;
|
||||||
int cpu_tmp, minc, maxc, ret;
|
int cpu_tmp, minc, maxc, ret;
|
||||||
|
|
||||||
@ -191,7 +191,7 @@ int print_cpuinfo(void)
|
|||||||
mxc_get_clock(MXC_ARM_CLK) / 1000000);
|
mxc_get_clock(MXC_ARM_CLK) / 1000000);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_IMX_THERMAL)
|
#if defined(CONFIG_IMX_THERMAL) || defined(CONFIG_IMX_TMU)
|
||||||
puts("CPU: ");
|
puts("CPU: ");
|
||||||
switch (get_cpu_temp_grade(&minc, &maxc)) {
|
switch (get_cpu_temp_grade(&minc, &maxc)) {
|
||||||
case TEMP_AUTOMOTIVE:
|
case TEMP_AUTOMOTIVE:
|
||||||
|
Loading…
Reference in New Issue
Block a user