Skip to contentSkip to conversation

imx: mx6: use OTP for teperature grade info

PATCH Superseded Tim Harvey 5 participants 11 messages May 18, 2015 – May 20, 2015

Subsystems (3)
lore
Share & tools
lore

Tim Harvey

author
#0 lore raw

v3 cover imx: mx6: use OTP for teperature grade info

Use Temperature grade info in OTP/eFUSE for thermal management and display of thermal data.

Cc Stefan Roese <[email protected]>
Cc Eric Nelson <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Nikita Kiryanov <[email protected]>
Cc Jon Nettleton <[email protected]>
Cc Jason Liu <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Christian Gmeiner <[email protected]>
Cc Markus Niebel <[email protected]>
Cc Peng Fan <[email protected]>

---
v3:
- include display of temperature grade for IMX6SX
v2:
- split into two series: 1 for CPU frequency, other for Temperature grade

Tim Harvey (4):
mx6: add OTP bank1 registers
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from
OTP
imx: mx6: add display of CPU temperature grade in print_cpuinfo()
thermal: imx_thermal: use CPU temperature grade for trip points

 arch/arm/cpu/armv7/mx6/soc.c              | 38 +++++++++++++++++++++++++++++++
 arch/arm/imx-common/cpu.c                 | 25 ++++++++++++++++----
 arch/arm/include/asm/arch-mx6/imx-regs.h  | 19 ++++++++++++++++
 arch/arm/include/asm/arch-mx6/sys_proto.h |  1 +
 drivers/thermal/imx_thermal.c             | 29 +++++++++++++++--------
 include/imx_thermal.h                     |  6 +++++
 6 files changed, 104 insertions(+), 14 deletions(-)
Signature · 1 line
1.9.1
author
#1 lore raw

PATCH v3 1/4 mx6: add OTP bank1 registers

---
 arch/arm/include/asm/arch-mx6/imx-regs.h | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
arch/arm/include/asm/arch-mx6/imx-regs.h +19 -0
index 9a4ad8b..35bb005 100644
@@ -640,6 +640,25 @@ struct fuse_bank0_regs {
 	u32	rsvd7[3];
 };
 
+struct fuse_bank1_regs {
+	u32	mem0;
+	u32	rsvd0[3];
+	u32	mem1;
+	u32	rsvd1[3];
+	u32	mem2;
+	u32	rsvd2[3];
+	u32	mem3;
+	u32	rsvd3[3];
+	u32	mem4;
+	u32	rsvd4[3];
+	u32	ana0;
+	u32	rsvd5[3];
+	u32	ana1;
+	u32	rsvd6[3];
+	u32	ana2;
+	u32	rsvd7[3];
+};
+
 #ifdef CONFIG_MX6SX
 struct fuse_bank4_regs {
 	u32 sjc_resp_low;
Signature · 1 line
1.9.1
author
#2 lore raw

PATCH v3 2/4 imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from OTP

In reply to Tim Harvey

The MX6 has a temperature grade defined by OCOTP_MEM0[7:6] which is at 0x480 in the Fusemap Description Table in the reference manual. Return this value as well as min/max temperature based on the value.

Note that the IMX6SDLRM and the IMX6SXRM do not indicate this in the their Fusemap Description Table however Freescale has confirmed that these eFUSE bits match the description within the IMX6DQRM and that they will be added to the next revision of the respective reference manuals.

This has been tested with IMX6 Automative and Industrial parts.

---
v2:
- split out adding get_cpu_temp_grade to its own patch
- added note about support of MX6SDL and MX6SX

---
 arch/arm/cpu/armv7/mx6/soc.c              | 38 +++++++++++++++++++++++++++++++
 arch/arm/include/asm/arch-mx6/sys_proto.h |  1 +
 include/imx_thermal.h                     |  6 +++++
 3 files changed, 45 insertions(+)
arch/arm/cpu/armv7/mx6/soc.c +38 -0
index 71fa1fb..6f501ac 100644
@@ -124,6 +124,44 @@ u32 get_cpu_speed_grade_hz(void)
 	return 0;
 }
 
+/*
+ * OCOTP_MEM0[7:6] (see Fusemap Description Table offset 0x480)
+ * defines a 2-bit Temperature Grade
+ *
+ * return temperature grade and min/max temperature in celcius
+ */
+#define OCOTP_MEM0_TEMP_SHIFT          6
+
+u32 get_cpu_temp_grade(int *minc, int *maxc)
+{
+	struct ocotp_regs *ocotp = (struct ocotp_regs *)OCOTP_BASE_ADDR;
+	struct fuse_bank *bank = &ocotp->bank[1];
+	struct fuse_bank1_regs *fuse =
+		(struct fuse_bank1_regs *)bank->fuse_regs;
+	uint32_t val;
+
+	val = readl(&fuse->mem0);
+	val >>= OCOTP_MEM0_TEMP_SHIFT;
+	val &= 0x3;
+
+	if (minc && maxc) {
+		if (val == TEMP_AUTOMOTIVE) {
+			*minc = -40;
+			*maxc = 125;
+		} else if (val == TEMP_INDUSTRIAL) {
+			*minc = -40;
+			*maxc = 105;
+		} else if (val == TEMP_EXTCOMMERCIAL) {
+			*minc = -20;
+			*maxc = 105;
+		} else {
+			*minc = 0;
+			*maxc = 95;
+		}
+	}
+	return val;
+}
+
 #ifdef CONFIG_REVISION_TAG
 u32 __weak get_board_rev(void)
 {
arch/arm/include/asm/arch-mx6/sys_proto.h +1 -0
index a2cd0a9..c583291 100644
@@ -17,6 +17,7 @@
 u32 get_nr_cpus(void);
 u32 get_cpu_rev(void);
 u32 get_cpu_speed_grade_hz(void);
+u32 get_cpu_temp_grade(int *minc, int *maxc);
 
 /* returns MXC_CPU_ value */
 #define cpu_type(rev) (((rev) >> 12)&0xff)
include/imx_thermal.h +6 -0
index be13652..8ce333c 100644
@@ -8,6 +8,12 @@
 #ifndef _IMX_THERMAL_H_
 #define _IMX_THERMAL_H_
 
+/* CPU Temperature Grades */
+#define TEMP_COMMERCIAL         0
+#define TEMP_EXTCOMMERCIAL      1
+#define TEMP_INDUSTRIAL         2
+#define TEMP_AUTOMOTIVE         3
+
 struct imx_thermal_plat {
 	void *regs;
 	int fuse_bank;
Signature · 1 line
1.9.1
author
#3 lore raw

PATCH v3 3/4 imx: mx6: add display of CPU temperature grade in print_cpuinfo()

In reply to Tim Harvey

When CONFIG_IMX6_THERMAL is defined print the CPU temperature grade info along with the current temperature.

Before:
CPU: Temperature 42 C

After:

 CPU:   Automotive temperature grade (-40C to 125C) at 42C
 CPU:   Industrial temperature grade (-40C to 105C) at 42C
 CPU:   Extended Commercial temperature grade (-20C to 105C) at 42C
Cc Stefan Roese <[email protected]>
Cc Eric Nelson <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Nikita Kiryanov <[email protected]>
Cc Jon Nettleton <[email protected]>
Cc Jason Liu <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Christian Gmeiner <[email protected]>
Cc Markus Niebel <[email protected]>
Cc Peng Fan <[email protected]>

---
v3:
- remove check for IMX6SX - it supports the same OTP regs/definitions for this
- fixed typo in commit message
- added Nokolay's tested by
v2:
- moved display of CPU temperature grade to own patch and combined with the current temperature from the thermal sensor driver
- add example output to description

---
 arch/arm/imx-common/cpu.c | 25 +++++++++++++++++++++----
 1 file changed, 21 insertions(+), 4 deletions(-)
arch/arm/imx-common/cpu.c +21 -4
index 6b20482..5be07a2 100644
@@ -16,6 +16,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/sys_proto.h>
 #include <asm/arch/crm_regs.h>
+#include <imx_thermal.h>
 #include <ipu_pixfmt.h>
 #include <thermal.h>
 #include <sata.h>
@@ -146,7 +147,7 @@ int print_cpuinfo(void)
 
 #if defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)
 	struct udevice *thermal_dev;
-	int cpu_tmp, ret;
+	int cpu_tmp, minc, maxc, ret;
 #endif
 
 	cpurev = get_cpu_rev();
@@ -172,16 +173,32 @@ int print_cpuinfo(void)
 #endif
 
 #if defined(CONFIG_MX6) && defined(CONFIG_IMX6_THERMAL)
+	puts("CPU:   ");
+	switch (get_cpu_temp_grade(&minc, &maxc)) {
+	case TEMP_AUTOMOTIVE:
+		puts("Automotive temperature grade ");
+		break;
+	case TEMP_INDUSTRIAL:
+		puts("Industrial temperature grade ");
+		break;
+	case TEMP_EXTCOMMERCIAL:
+		puts("Extended Commercial temperature grade ");
+		break;
+	default:
+		puts("Commercial temperature grade ");
+		break;
+	}
+	printf("(%dC to %dC)", minc, maxc);
 	ret = uclass_get_device(UCLASS_THERMAL, 0, &thermal_dev);
 	if (!ret) {
 		ret = thermal_get_temp(thermal_dev, &cpu_tmp);
 
 		if (!ret)
-			printf("CPU:   Temperature %d C\n", cpu_tmp);
+			printf(" at %dC\n", cpu_tmp);
 		else
-			printf("CPU:   Temperature: invalid sensor data\n");
+			puts(" - invalid sensor data\n");
 	} else {
-		printf("CPU:   Temperature: Can't find sensor device\n");
+		puts(" - invalid sensor device\n");
 	}
 #endif
 
Signature · 1 line
1.9.1
author
#4 lore raw

PATCH v3 4/4 thermal: imx_thermal: use CPU temperature grade for trip points

In reply to Tim Harvey

Replace the hard-coded values for min/max/passive with values derived from the CPU temperature grade.

---
 drivers/thermal/imx_thermal.c | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)
drivers/thermal/imx_thermal.c +19 -10
index 0bd9cfd..b5dab63 100644
@@ -12,15 +12,13 @@
 #include <fuse.h>
 #include <asm/io.h>
 #include <asm/arch/clock.h>
+#include <asm/arch/sys_proto.h>
 #include <dm.h>
 #include <errno.h>
 #include <malloc.h>
 #include <thermal.h>
 #include <imx_thermal.h>
 
-#define TEMPERATURE_MIN		-40
-#define TEMPERATURE_HOT		80
-#define TEMPERATURE_MAX		125
 #define FACTOR0			10000000
 #define FACTOR1			15976
 #define FACTOR2			4297157
@@ -34,14 +32,21 @@
 #define MISC0_REFTOP_SELBIASOFF		(1 << 3)
 #define TEMPSENSE1_MEASURE_FREQ		0xffff
 
+struct thermal_data {
+	unsigned int fuse;
+	int passive;
+	int minc;
+	int maxc;
+};
+
 static int read_cpu_temperature(struct udevice *dev)
 {
 	int temperature;
 	unsigned int reg, n_meas;
 	const struct imx_thermal_plat *pdata = dev_get_platdata(dev);
 	struct anatop_regs *anatop = (struct anatop_regs *)pdata->regs;
-	unsigned int *priv = dev_get_priv(dev);
-	u32 fuse = *priv;
+	struct thermal_data *priv = dev_get_priv(dev);
+	u32 fuse = priv->fuse;
 	int t1, n1;
 	u32 c1, c2;
 	u64 temp64;
@@ -119,11 +124,12 @@ static int read_cpu_temperature(struct udevice *dev)
 
 int imx_thermal_get_temp(struct udevice *dev, int *temp)
 {
+	struct thermal_data *priv = dev_get_priv(dev);
 	int cpu_tmp = 0;
 
 	cpu_tmp = read_cpu_temperature(dev);
-	while (cpu_tmp > TEMPERATURE_MIN && cpu_tmp < TEMPERATURE_MAX) {
-		if (cpu_tmp >= TEMPERATURE_HOT) {
+	while (cpu_tmp > priv->minc && cpu_tmp < priv->maxc) {
+		if (cpu_tmp >= priv->passive) {
 			printf("CPU Temperature is %d C, too hot to boot, waiting...\n",
 			       cpu_tmp);
 			udelay(5000000);
@@ -147,7 +153,7 @@ static int imx_thermal_probe(struct udevice *dev)
 	unsigned int fuse = ~0;
 
 	const struct imx_thermal_plat *pdata = dev_get_platdata(dev);
-	unsigned int *priv = dev_get_priv(dev);
+	struct thermal_data *priv = dev_get_priv(dev);
 
 	/* Read Temperature calibration data fuse */
 	fuse_read(pdata->fuse_bank, pdata->fuse_word, &fuse);
@@ -158,7 +164,10 @@ static int imx_thermal_probe(struct udevice *dev)
 		return -EPERM;
 	}
 
-	*priv = fuse;
+	/* set passive cooling temp to max - 20C */
+	get_cpu_temp_grade(&priv->minc, &priv->maxc);
+	priv->passive = priv->maxc - 20;
+	priv->fuse = fuse;
 
 	enable_thermal_clk();
 
@@ -170,6 +179,6 @@ U_BOOT_DRIVER(imx_thermal) = {
 	.id	= UCLASS_THERMAL,
 	.ops	= &imx_thermal_ops,
 	.probe	= imx_thermal_probe,
-	.priv_auto_alloc_size = sizeof(unsigned int),
+	.priv_auto_alloc_size = sizeof(struct thermal_data),
 	.flags  = DM_FLAG_PRE_RELOC,
 };
Signature · 1 line
1.9.1
author
#5 lore raw

PATCH v3 4/4 thermal: imx_thermal: use CPU temperature grade for trip points

Quoted 9 lines · Tim Harvey

Replace the hard-coded values for min/max/passive with values derived from the CPU temperature grade.

---
 drivers/thermal/imx_thermal.c | 29 +++++++++++++++++++----------
 1 file changed, 19 insertions(+), 10 deletions(-)
drivers/thermal/imx_thermal.c +0 -0

<snip>

Quoted 3 lines
drivers/thermal/imx_thermal.c +0 -3
-#define TEMPERATURE_MIN                -40
-#define TEMPERATURE_HOT                80
-#define TEMPERATURE_MAX                125

<snip>

Quoted 5 lines
drivers/thermal/imx_thermal.c +1 -0
@@ -119,11 +124,12 @@ static int read_cpu_temperature(struct udevice *dev)
 
 int imx_thermal_get_temp(struct udevice *dev, int *temp)
 {
+       struct thermal_data *priv = dev_get_priv(dev);

drivers/thermal/imx_thermal.c static int read_cpu_temperature(struct udevice *dev) · line 135

Quoted 10 lines
drivers/thermal/imx_thermal.c +2 -2
        int cpu_tmp = 0;
 
        cpu_tmp = read_cpu_temperature(dev);
-       while (cpu_tmp > TEMPERATURE_MIN && cpu_tmp < TEMPERATURE_MAX) {
-               if (cpu_tmp >= TEMPERATURE_HOT) {
+       while (cpu_tmp > priv->minc && cpu_tmp < priv->maxc) {
+               if (cpu_tmp >= priv->passive) {
                        printf("CPU Temperature is %d C, too hot to boot, waiting...\n",
                               cpu_tmp);
                        udelay(5000000);

Ye,

I'm curious where you got your previous hard-coded values of -40/80/125 from?

The range of -40 to 125 makes me think it was assumed that the IMX6 was Automotive grade (probably a bad assumption) but I'm more curious about the value of 80C that kicks in this busywait loop above.

<snip>

drivers/thermal/imx_thermal.c static int imx_thermal_probe(struct udevice *dev) · line 170

Quoted 5 lines
drivers/thermal/imx_thermal.c +4 -0
+       /* set passive cooling temp to max - 20C */
+       get_cpu_temp_grade(&priv->minc, &priv->maxc);
+       priv->passive = priv->maxc - 20;
+       priv->fuse = fuse;

In my patch here I am calling your TEMPERATURE_HOT the 'passive' temp and setting it to maxc-20 which for an industrial grade CPU with a max of 105C is 85C.

Do we really want to sit in a busywait loop if the board is too hot and if so isn't maxc-20 way too aggressive? I think that I should re-work this patch and set 'passive' to 'maxc' or maybe just a few C under it instead of 20C. Until then I'll need to disable CONFIG_IMX6_THERMAL for our board because it doesn't allow us to even run at an ambient temperature of 80C with an intdustrial processor (80C is the point at which the CPU hits 85C at 800Mhz in U-Boot on our board).

Tim

#6 lore raw

v3 cover imx: mx6: use OTP for teperature grade info

In reply to Tim Harvey

Hi Tim,

Quoted 28 lines · Tim Harvey

Use Temperature grade info in OTP/eFUSE for thermal management and display of thermal data.

Cc Stefan Roese <[email protected]>
Cc Eric Nelson <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Nikita Kiryanov <[email protected]>
Cc Jon Nettleton <[email protected]>
Cc Jason Liu <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Christian Gmeiner <[email protected]>
Cc Markus Niebel <[email protected]>
Cc Peng Fan <[email protected]>

---
v3:
- include display of temperature grade for IMX6SX
v2:
- split into two series: 1 for CPU frequency, other for Temperature grade

Tim Harvey (4):
mx6: add OTP bank1 registers
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from
OTP
imx: mx6: add display of CPU temperature grade in print_cpuinfo()
thermal: imx_thermal: use CPU temperature grade for trip points

Quoted 7 lines
arch/arm/cpu/armv7/mx6/soc.c              | 38 +++++++++++++++++++++++++++++++
arch/arm/imx-common/cpu.c                 | 25 ++++++++++++++++----
arch/arm/include/asm/arch-mx6/imx-regs.h  | 19 ++++++++++++++++
arch/arm/include/asm/arch-mx6/sys_proto.h |  1 +
drivers/thermal/imx_thermal.c             | 29 +++++++++++++++--------
include/imx_thermal.h                     |  6 +++++
6 files changed, 104 insertions(+), 14 deletions(-)

Tested on mx6sxsabresd RevB TO1.2 board.

I also applied this two patch for this test:
https://patchwork.ozlabs.org/patch/473405/
https://patchwork.ozlabs.org/patch/473406/

U-Boot 2015.07-rc1-00260-g44bf513 (May 19 2015 - 09:14:52)

CPU:   Freescale i.MX6SX rev1.2 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 33C
Reset cause: POR
Board: MX6SX SABRE SDB
I2C:   ready
DRAM:  1 GiB
PMIC:  PFUZE100 ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Hit any key to stop autoboot:  0

=>

Quoted 4 lines
Signature · 2 lines
-- 
1.9.1
#7 lore raw

v3 cover imx: mx6: use OTP for teperature grade info

Hi Peng, Tim,

Quoted 16 lines · Peng Fan

U-Boot 2015.07-rc1-00260-g44bf513 (May 19 2015 - 09:14:52)

CPU:   Freescale i.MX6SX rev1.2 996 MHz (running at 792 MHz)
CPU:   Extended Commercial temperature grade (-20C to 105C) at 33C
Reset cause: POR
Board: MX6SX SABRE SDB
I2C:   ready
DRAM:  1 GiB
PMIC:  PFUZE100 ID=0x11
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Hit any key to stop autoboot:  0
Quoted 4 lines

=>

Thanks.

It looks like the last issue was solved - if nobody else complains, these patches are ready for merging.

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
#8 lore raw

v3 cover imx: mx6: use OTP for teperature grade info

In reply to Tim Harvey

Am 18.05.2015 um 15:56 schrieb Tim Harvey:

Quoted 28 lines

Use Temperature grade info in OTP/eFUSE for thermal management and display of thermal data.

Cc Stefan Roese <[email protected]>
Cc Eric Nelson <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Nikita Kiryanov <[email protected]>
Cc Jon Nettleton <[email protected]>
Cc Jason Liu <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Christian Gmeiner <[email protected]>
Cc Markus Niebel <[email protected]>
Cc Peng Fan <[email protected]>

---
v3:
- include display of temperature grade for IMX6SX
v2:
- split into two series: 1 for CPU frequency, other for Temperature grade

Tim Harvey (4):
mx6: add OTP bank1 registers
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from
OTP
imx: mx6: add display of CPU temperature grade in print_cpuinfo()
thermal: imx_thermal: use CPU temperature grade for trip points

Quoted 8 lines
 arch/arm/cpu/armv7/mx6/soc.c              | 38 +++++++++++++++++++++++++++++++
 arch/arm/imx-common/cpu.c                 | 25 ++++++++++++++++----
 arch/arm/include/asm/arch-mx6/imx-regs.h  | 19 ++++++++++++++++
 arch/arm/include/asm/arch-mx6/sys_proto.h |  1 +
 drivers/thermal/imx_thermal.c             | 29 +++++++++++++++--------
 include/imx_thermal.h                     |  6 +++++
 6 files changed, 104 insertions(+), 14 deletions(-)

Tested on TQMa6Q and TQMa6D

following patches were also applied:
https://patchwork.ozlabs.org/patch/473405/
https://patchwork.ozlabs.org/patch/473406/

#9 lore raw

v3 cover imx: mx6: use OTP for teperature grade info

Quoted 38 lines · Markus Niebel

Am 18.05.2015 um 15:56 schrieb Tim Harvey:

Quoted 28 lines

Use Temperature grade info in OTP/eFUSE for thermal management and display of thermal data.

Cc Stefan Roese <[email protected]>
Cc Eric Nelson <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Nikita Kiryanov <[email protected]>
Cc Jon Nettleton <[email protected]>
Cc Jason Liu <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Christian Gmeiner <[email protected]>
Cc Markus Niebel <[email protected]>
Cc Peng Fan <[email protected]>

---
v3:
- include display of temperature grade for IMX6SX
v2:
- split into two series: 1 for CPU frequency, other for Temperature grade

Tim Harvey (4):
mx6: add OTP bank1 registers
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from
OTP
imx: mx6: add display of CPU temperature grade in print_cpuinfo()
thermal: imx_thermal: use CPU temperature grade for trip points

Quoted 8 lines
 arch/arm/cpu/armv7/mx6/soc.c              | 38 +++++++++++++++++++++++++++++++
 arch/arm/imx-common/cpu.c                 | 25 ++++++++++++++++----
 arch/arm/include/asm/arch-mx6/imx-regs.h  | 19 ++++++++++++++++
 arch/arm/include/asm/arch-mx6/sys_proto.h |  1 +
 drivers/thermal/imx_thermal.c             | 29 +++++++++++++++--------
 include/imx_thermal.h                     |  6 +++++
 6 files changed, 104 insertions(+), 14 deletions(-)
Quoted 7 lines

Tested on TQMa6Q and TQMa6D

following patches were also applied:
https://patchwork.ozlabs.org/patch/473405/
https://patchwork.ozlabs.org/patch/473406/

I think those are applied in Stephano's tree today.

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#10 lore raw

v3 cover imx: mx6: use OTP for teperature grade info

Quoted 41 lines · Otavio Salvador
Quoted 40 lines · Markus Niebel

Am 18.05.2015 um 15:56 schrieb Tim Harvey:

Quoted 28 lines

Use Temperature grade info in OTP/eFUSE for thermal management and display of thermal data.

Cc Stefan Roese <[email protected]>
Cc Eric Nelson <[email protected]>
Cc Heiko Schocher <[email protected]>
Cc Nikita Kiryanov <[email protected]>
Cc Jon Nettleton <[email protected]>
Cc Jason Liu <[email protected]>
Cc Fabio Estevam <[email protected]>
Cc Christian Gmeiner <[email protected]>
Cc Markus Niebel <[email protected]>
Cc Peng Fan <[email protected]>

---
v3:
- include display of temperature grade for IMX6SX
v2:
- split into two series: 1 for CPU frequency, other for Temperature grade

Tim Harvey (4):
mx6: add OTP bank1 registers
imx: mx6: add get_cpu_temp_grade to obtain cpu temperature grade from
OTP
imx: mx6: add display of CPU temperature grade in print_cpuinfo()
thermal: imx_thermal: use CPU temperature grade for trip points

Quoted 8 lines
 arch/arm/cpu/armv7/mx6/soc.c              | 38 +++++++++++++++++++++++++++++++
 arch/arm/imx-common/cpu.c                 | 25 ++++++++++++++++----
 arch/arm/include/asm/arch-mx6/imx-regs.h  | 19 ++++++++++++++++
 arch/arm/include/asm/arch-mx6/sys_proto.h |  1 +
 drivers/thermal/imx_thermal.c             | 29 +++++++++++++++--------
 include/imx_thermal.h                     |  6 +++++
 6 files changed, 104 insertions(+), 14 deletions(-)

Tested on TQMa6Q and TQMa6D

Quoted 7 lines
Quoted 5 lines

following patches were also applied:
https://patchwork.ozlabs.org/patch/473405/
https://patchwork.ozlabs.org/patch/473406/

I think those are applied in Stephano's tree today.

Yes, Markus - patches are already merged into imx.

Regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================