summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/coreboot/sdram.c
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2015-08-13 00:29:10 -0700
committerSimon Glass <sjg@chromium.org>2015-08-26 07:54:07 -0700
commitc17ca6b5cd7158b63a78c4944c732c49dce8454f (patch)
tree8fb5e495f29f3f3c3558432cbb7e74dc15479363 /arch/x86/cpu/coreboot/sdram.c
parent52b778603b7017885d67428c9cca9807bc6e2f7d (diff)
downloadtalos-obmc-uboot-c17ca6b5cd7158b63a78c4944c732c49dce8454f.tar.gz
talos-obmc-uboot-c17ca6b5cd7158b63a78c4944c732c49dce8454f.zip
x86: Remove calculate_relocation_address()
Now that we have generic routine to calculate relocation address, remove the x86 specific one which is now only used by coreboot. Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/coreboot/sdram.c')
-rw-r--r--arch/x86/cpu/coreboot/sdram.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/x86/cpu/coreboot/sdram.c b/arch/x86/cpu/coreboot/sdram.c
index 27228861de..ae5c893b3c 100644
--- a/arch/x86/cpu/coreboot/sdram.c
+++ b/arch/x86/cpu/coreboot/sdram.c
@@ -7,14 +7,7 @@
*/
#include <common.h>
-#include <malloc.h>
#include <asm/e820.h>
-#include <asm/u-boot-x86.h>
-#include <asm/global_data.h>
-#include <asm/init_helpers.h>
-#include <asm/processor.h>
-#include <asm/sections.h>
-#include <asm/zimage.h>
#include <asm/arch/sysinfo.h>
#include <asm/arch/tables.h>
@@ -109,7 +102,7 @@ int dram_init(void)
if (ram_size == 0)
return -1;
- return calculate_relocation_address();
+ return 0;
}
void dram_init_banksize(void)
OpenPOWER on IntegriCloud