]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
omap: emif: fix bug in manufacturer code test
authorSteve Sakoman <steve@sakoman.com>
Wed, 30 May 2012 07:38:08 +0000 (07:38 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:35 +0000 (14:07 +0200)
Code currently tests for <= 0xff.  Micron manufacturer code is 0xff, so
Micron memory will not be detected!

Signed-off-by: Steve Sakoman <steve@sakoman.com>
arch/arm/cpu/armv7/omap-common/emif-common.c

index 61ade4c598705ed7efb116236e08947c8de0995b..7c2352c7fd5a22308e71bb4f995b9e4adef27729 100644 (file)
@@ -947,7 +947,7 @@ static u8 is_lpddr2_sdram_present(u32 base, u32 cs,
        }
 
        mr = get_mr(base, cs, LPDDR2_MR5);
-       if (mr >= 0xFF) {
+       if (mr > 0xFF) {
                /* Mode register value bigger than 8 bit */
                return 0;
        }