Dear Sergei Shtylyov, In message <201109161858.08706.sshtyl...@ru.mvista.com> you wrote: > MDSTAT.STATE occupies bits 0..5 according to all available documentation, so > fix > the masks which previously was leaving out the intermediate state indicator > bit. > > Signed-off-by: Sergei Shtylyov <sshtyl...@ru.mvista.com> > > --- > Resending with the corrected subject/description... > Analogous Linux patch has been queued in the linux-davinci tree: > > http://linux.davincidsp.com/pipermail/davinci-linux-open-source/2011-July/023075.html > > arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S | 6 +++--- > arch/arm/cpu/arm926ejs/davinci/psc.c | 4 ++-- > 2 files changed, 5 insertions(+), 5 deletions(-) > > Index: u-boot/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S > =================================================================== > --- u-boot.orig/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S > +++ u-boot/arch/arm/cpu/arm926ejs/davinci/lowlevel_init.S > @@ -268,7 +268,7 @@ checkStatClkStop: > checkDDRStatClkStop: > ldr r6, MDSTAT_DDR2 > ldr r7, [r6] > - and r7, r7, $0x1f > + and r7, r7, $0x3f
Don't you think it's high time to replace these magic constants with at least somewhat meaningful symbolic names (so it would be sufficient to fix this in a single place) ? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de Let's say the docs present a simplified view of reality... :-) - Larry Wall in <6...@jpl-devvax.jpl.nasa.gov> _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot