Patchwork [U-Boot,v3] mx31ads: Use the new relocation scheme

login
register
mail settings
Submitter Fabio Estevam
Date June 12, 2011, 9:58 p.m.
Message ID <BANLkTi=peBmasPedAYBoMk1EbDLieLk24g@mail.gmail.com>
Download mbox | patch
Permalink /patch/100118/
State Superseded
Headers show

Comments

Fabio Estevam - June 12, 2011, 9:58 p.m.
Hi Felix,

On Sun, Jun 5, 2011 at 4:28 AM, Felix Radensky <felix@embedded-sol.com> wrote:
...
> Unrelated to your patch, u-boot prints
>
> CPU:   Freescale i.MX31 rev 2.0 unknown at 531 MHz.Reset cause: WDOG
>
> Do you think "unknown" can be replaced by something more meaningful ?

I don't see the "unknown" string on my MX31PDK board.

Can you try the patch below and let me know if it gets rid of it?


Fabio Estevam

Patch

diff --git a/arch/arm/cpu/arm1136/mx31/generic.c b/arch/arm/cpu/arm1136/mx31/gen
index 4ebf38d..f0cfa8a 100644
--- a/arch/arm/cpu/arm1136/mx31/generic.c
+++ b/arch/arm/cpu/arm1136/mx31/generic.c
@@ -129,8 +129,9 @@  u32 get_cpu_rev(void)
        for (i = 0; i < ARRAY_SIZE(mx31_cpu_type); i++)
                if (srev == mx31_cpu_type[i].srev)
                        return mx31_cpu_type[i].v;
+       srev|= 0x8000;

-       return srev | 0x8000;
+       return srev;
 }

Regards,