summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-06 13:20:05 -0700
committerSimon Glass <sjg@chromium.org>2014-11-21 07:24:09 +0100
commit07387d1769c7cc29ff2402117148477263c4c5ce (patch)
treed3e88335fbd000096018a6cff5ffdb75b1936363 /common
parent76f90f3020433a2d06d9ebf897f65862d6248c8e (diff)
downloadu-boot-07387d1769c7cc29ff2402117148477263c4c5ce.tar.gz
x86: Use the standard dram_init() function
Instead of having an x86-specific DRAM init function, adjust things so we can use the normal one. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'common')
-rw-r--r--common/board_f.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/common/board_f.c b/common/board_f.c
index b5bebc9dc8..1d81ed7c6a 100644
--- a/common/board_f.c
+++ b/common/board_f.c
@@ -903,13 +903,9 @@ static init_fnc_t init_sequence_f[] = {
#if defined(CONFIG_HARD_SPI)
init_func_spi,
#endif
-#ifdef CONFIG_X86
- dram_init_f, /* configure available RAM banks */
- calculate_relocation_address,
-#endif
announce_dram_init,
/* TODO: unify all these dram functions? */
-#ifdef CONFIG_ARM
+#if defined(CONFIG_ARM) || defined(CONFIG_X86)
dram_init, /* configure available RAM banks */
#endif
#if defined(CONFIG_MIPS) || defined(CONFIG_PPC)