]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/arm_cortexa8/omap3/sys_info.c
TI: OMAP3: Remove SZ_xx references
[karo-tx-uboot.git] / cpu / arm_cortexa8 / omap3 / sys_info.c
index 765aaf2b376901394ea4ad1189ad73628ef1d1ac..31b20033ccc7fc531248558419cf7f171d7324a3 100644 (file)
@@ -124,7 +124,7 @@ u32 get_sdr_cs_size(u32 cs)
        /* get ram size field */
        size = readl(&sdrc_base->cs[cs].mcfg) >> 8;
        size &= 0x3FF;          /* remove unwanted bits */
-       size *= SZ_2M;          /* find size in MB */
+       size <<= 21;            /* multiply by 2 MiB to find size in MB */
        return size;
 }