All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal
@ 2015-03-10  7:33 Peng Fan
  2015-03-10  7:33 ` [U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature Peng Fan
  2015-03-23 12:33 ` [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal Stefano Babic
  0 siblings, 2 replies; 4+ messages in thread
From: Peng Fan @ 2015-03-10  7:33 UTC (permalink / raw)
  To: u-boot

Before add CONFIG_SYS_MALLOC_F and CONFIG_SYS_MALLOC_F_LEN,
uboot will complains "CPU:   Temperature: Can't find sensor device".
This is because DM and DM_THERMAL are enabled, but SYS_MALLOC_F
is not configured.

After applying this patch, uboot can correctly detect the temperature.
"
U-Boot 2015.04-rc2-00146-g48b6e30-dirty (Mar 09 2015 - 13:04:36)

CPU:   Freescale i.MX6DL rev1.1 at 792 MHz
CPU:   Temperature 44 C
"

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
---
 configs/mx6dlsabresd_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/mx6dlsabresd_defconfig b/configs/mx6dlsabresd_defconfig
index 6adfd55..cde0d70 100644
--- a/configs/mx6dlsabresd_defconfig
+++ b/configs/mx6dlsabresd_defconfig
@@ -1,5 +1,7 @@
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6sabresd/mx6dlsabresd.cfg,MX6DL"
 CONFIG_ARM=y
 CONFIG_TARGET_MX6SABRESD=y
+CONFIG_SYS_MALLOC_F=y
+CONFIG_SYS_MALLOC_F_LEN=0x400
 CONFIG_DM=y
 CONFIG_DM_THERMAL=y
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature
  2015-03-10  7:33 [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal Peng Fan
@ 2015-03-10  7:33 ` Peng Fan
  2015-03-23 12:33   ` Stefano Babic
  2015-03-23 12:33 ` [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal Stefano Babic
  1 sibling, 1 reply; 4+ messages in thread
From: Peng Fan @ 2015-03-10  7:33 UTC (permalink / raw)
  To: u-boot

This patch is to support reading temperature for mx6slevk board.

Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
---
 configs/mx6slevk_defconfig        | 4 ++++
 configs/mx6slevk_spinor_defconfig | 4 ++++
 include/configs/mx6slevk.h        | 7 +++++++
 3 files changed, 15 insertions(+)

diff --git a/configs/mx6slevk_defconfig b/configs/mx6slevk_defconfig
index fb8c4de..c6b3108 100644
--- a/configs/mx6slevk_defconfig
+++ b/configs/mx6slevk_defconfig
@@ -1,3 +1,7 @@
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL"
 CONFIG_ARM=y
 CONFIG_TARGET_MX6SLEVK=y
+CONFIG_SYS_MALLOC_F=y
+CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
diff --git a/configs/mx6slevk_spinor_defconfig b/configs/mx6slevk_spinor_defconfig
index 93efe73..454cb40 100644
--- a/configs/mx6slevk_spinor_defconfig
+++ b/configs/mx6slevk_spinor_defconfig
@@ -1,3 +1,7 @@
 CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx6slevk/imximage.cfg,MX6SL,SYS_BOOT_SPINOR"
 CONFIG_ARM=y
 CONFIG_TARGET_MX6SLEVK=y
+CONFIG_SYS_MALLOC_F=y
+CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_DM=y
+CONFIG_DM_THERMAL=y
diff --git a/include/configs/mx6slevk.h b/include/configs/mx6slevk.h
index 1221418..0a2fa27 100644
--- a/include/configs/mx6slevk.h
+++ b/include/configs/mx6slevk.h
@@ -251,4 +251,11 @@
 #define CONFIG_SYS_MMC_ENV_DEV		1	/* SDHC2*/
 #endif
 
+#define CONFIG_IMX6_THERMAL
+
+#define CONFIG_CMD_FUSE
+#if defined(CONFIG_CMD_FUSE) || defined(CONFIG_IMX6_THERMAL)
+#define CONFIG_MXC_OCOTP
+#endif
+
 #endif				/* __CONFIG_H */
-- 
1.8.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal
  2015-03-10  7:33 [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal Peng Fan
  2015-03-10  7:33 ` [U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature Peng Fan
@ 2015-03-23 12:33 ` Stefano Babic
  1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2015-03-23 12:33 UTC (permalink / raw)
  To: u-boot

On 10/03/2015 08:33, Peng Fan wrote:
> Before add CONFIG_SYS_MALLOC_F and CONFIG_SYS_MALLOC_F_LEN,
> uboot will complains "CPU:   Temperature: Can't find sensor device".
> This is because DM and DM_THERMAL are enabled, but SYS_MALLOC_F
> is not configured.
> 
> After applying this patch, uboot can correctly detect the temperature.
> "
> U-Boot 2015.04-rc2-00146-g48b6e30-dirty (Mar 09 2015 - 13:04:36)
> 
> CPU:   Freescale i.MX6DL rev1.1 at 792 MHz
> CPU:   Temperature 44 C
> "
> 
> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
> ---


Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic




-- 
=====================================================================
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
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature
  2015-03-10  7:33 ` [U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature Peng Fan
@ 2015-03-23 12:33   ` Stefano Babic
  0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2015-03-23 12:33 UTC (permalink / raw)
  To: u-boot

On 10/03/2015 08:33, Peng Fan wrote:
> This patch is to support reading temperature for mx6slevk board.
> 
> Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
> ---


Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic




-- 
=====================================================================
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
=====================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2015-03-23 12:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-03-10  7:33 [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal Peng Fan
2015-03-10  7:33 ` [U-Boot] [PATCH 2/2] imx:mx6slevk support reading temperature Peng Fan
2015-03-23 12:33   ` Stefano Babic
2015-03-23 12:33 ` [U-Boot] [PATCH 1/2] imx:mx6dlsabresd fix error detecting thermal Stefano Babic

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.