From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peng Fan Date: Tue, 19 May 2015 08:21:10 +0800 Subject: [U-Boot] [Patch v3 0/4] imx: mx6: use OTP for teperature grade info In-Reply-To: <1431957407-24920-1-git-send-email-tharvey@gateworks.com> References: <1431957407-24920-1-git-send-email-tharvey@gateworks.com> Message-ID: <20150519002108.GA21059@shlinux2> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Tim, On Mon, May 18, 2015 at 06:56:43AM -0700, Tim Harvey wrote: >Use Temperature grade info in OTP/eFUSE for thermal management and display of >thermal data. > >Cc: Stefan Roese >Cc: Eric Nelson >Cc: Heiko Schocher >Cc: Nikita Kiryanov >Cc: Jon Nettleton >Cc: Jason Liu >Cc: Ye Li >Cc: Fabio Estevam >Cc: Christian Gmeiner >Cc: Markus Niebel >Cc: Peng Fan >Signed-off-by: Tim Harvey >--- >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(-) 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 => Tested-by: Peng Fan > >-- >1.9.1 > --