ARM: uniphier: de-couple SG macros into base address and offset
[oweals/u-boot.git] / arch / arm / mach-uniphier / dram_init.c
index fa4b3e386b83075205bfe1edeb92b5d11952f0eb..eca340b094e6862844f491b97187972e8879dbf3 100644 (file)
@@ -85,7 +85,7 @@ static int uniphier_memconf_decode(struct uniphier_dram_map *dram_map)
                return -EINVAL;
        }
 
-       val = readl(SG_MEMCONF);
+       val = readl(sg_base + SG_MEMCONF);
 
        /* set up ch0 */
        dram_map[0].base = CONFIG_SYS_SDRAM_BASE;