From: Steve Sakoman Date: Wed, 30 May 2012 10:38:08 -0700 Subject: [U-Boot] [PATCH 3/3] omap: emif: fix bug in manufacturer code test In-Reply-To: <1338399488-2095-1-git-send-email-steve@sakoman.com> References: <1338399488-2095-1-git-send-email-steve@sakoman.com> Message-ID: <1338399488-2095-4-git-send-email-steve@sakoman.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Code currently tests for <= 0xff. Micron manufacturer code is 0xff, so Micron memory will not be detected! Signed-off-by: Steve Sakoman --- arch/arm/cpu/armv7/omap-common/emif-common.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/armv7/omap-common/emif-common.c b/arch/arm/cpu/armv7/omap-common/emif-common.c index 176520c..46be4e8 100644 --- a/arch/arm/cpu/armv7/omap-common/emif-common.c +++ b/arch/arm/cpu/armv7/omap-common/emif-common.c @@ -831,7 +831,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; } -- 1.7.1