From: Steve Sakoman Date: Wed, 30 May 2012 07:38:08 +0000 (+0000) Subject: omap: emif: fix bug in manufacturer code test X-Git-Tag: v2012.07-rc1~11^2~77 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ad0878a7492928696a93245c1f9190d51eebe549;p=oweals%2Fu-boot.git omap: emif: fix bug in manufacturer code test Code currently tests for <= 0xff. Micron manufacturer code is 0xff, so Micron memory will not be detected! Signed-off-by: Steve Sakoman --- diff --git a/arch/arm/cpu/armv7/omap-common/emif-common.c b/arch/arm/cpu/armv7/omap-common/emif-common.c index 61ade4c598..7c2352c7fd 100644 --- a/arch/arm/cpu/armv7/omap-common/emif-common.c +++ b/arch/arm/cpu/armv7/omap-common/emif-common.c @@ -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; }