[U-Boot-Users] Wrong CFG_BSTOPRE encoding in cpu/mpc824x/cpu_init.c

Wolfgang Denk wd at denx.de
Wed Sep 14 17:28:34 CEST 2005


In message <50e92330050914065119c9ce50 at mail.google.com> you wrote:
>
> The encoding of BSTOPRE is complex.  It is split into 3 subfields, and
> spread over MCCR2 and MCCR4.  The discrepency seems to be due to
> different assumptions about how the subfields are ordered in the
> composite value.
> 
> The code in cpu/mpc824x/cpu_init.c extracts the pieces as
>   ( BSTOPRE[6-9] || BSTOPRE[2-5] || BSTOPRE[0-1] )
> 
> Per Freescale technical support, these three fields are to be assembled as
>   ( BSTOPRE[0-1] || BSTOPRE[2-5] || BSTOPRE[6-9] )

So what yould your proposed patch look like?


Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"No problem is so formidable that you can't walk away from it."
- C. Schulz




More information about the U-Boot mailing list