diff mbox

[U-Boot,1/2] imx:mx6dlsabresd fix error detecting thermal

Message ID 1425972805-9489-1-git-send-email-Peng.Fan@freescale.com
State Awaiting Upstream
Delegated to: Stefano Babic
Headers show

Commit Message

Peng Fan March 10, 2015, 7:33 a.m. UTC
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(+)

Comments

Stefano Babic March 23, 2015, 12:33 p.m. UTC | #1
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
diff mbox

Patch

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