summaryrefslogtreecommitdiff
path: root/arch/arm/mach-uniphier/dram_init.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 14:07:40 +0300
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-07-10 16:42:00 +0300
commitd41b358fb331c2907f1f217686d38eeaf17eece4 (patch)
tree9d8ea673b2beca4fab63764e762f74c455021e62 /arch/arm/mach-uniphier/dram_init.c
parentc3d8f1e8e92fd70abb912942300cf44fff9e9d86 (diff)
downloadu-boot-d41b358fb331c2907f1f217686d38eeaf17eece4.tar.xz
ARM: uniphier: de-couple SG macros into base address and offset
The SG_* macros represent the address of SoC-glue registers. For a planned new SoC, its base address will be changed. Turn the SG_* macros into the offset from the base address. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'arch/arm/mach-uniphier/dram_init.c')
-rw-r--r--arch/arm/mach-uniphier/dram_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-uniphier/dram_init.c b/arch/arm/mach-uniphier/dram_init.c
index fa4b3e386b..eca340b094 100644
--- a/arch/arm/mach-uniphier/dram_init.c
+++ b/arch/arm/mach-uniphier/dram_init.c
@@ -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;