[U-Boot] [PATCH 3/3] omap: emif: fix bug in manufacturer code test

R, Sricharan r.sricharan at ti.com
Mon Jun 4 10:51:45 CEST 2012


> Code currently tests for <= 0xff.  Micron manufacturer code is 0xff, so
> Micron memory will not be detected!
>
> Signed-off-by: Steve Sakoman <steve at sakoman.com>
> ---
>  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) {
 Looks correct..

Thanks,
 Sricharan


More information about the U-Boot mailing list