]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/cpu/armv7/omap3/sdrc.c
ARMV7: OMAP3: Fix bug in get_sdr_cs_offset()
[people/ms/u-boot.git] / arch / arm / cpu / armv7 / omap3 / sdrc.c
index 2719bb53a7cc343a2e677493d682fbf27905aeee..6c419f5b93dcc8dc7281c868ff600f67e8a8d118 100644 (file)
@@ -99,7 +99,7 @@ u32 get_sdr_cs_offset(u32 cs)
                return 0;
 
        offset = readl(&sdrc_base->cs_cfg);
-       offset = (offset & 15) << 27 | (offset & 0x30) >> 17;
+       offset = (offset & 15) << 27 | (offset & 0x30) << 17;
 
        return offset;
 }