summaryrefslogtreecommitdiff
path: root/board/freescale/mpc8641hpcn/mpc8641hpcn.c
diff options
context:
space:
mode:
authorKumar Gala <galak@kernel.crashing.org>2008-08-26 20:01:35 (GMT)
committerWolfgang Denk <wd@denx.de>2008-08-27 00:06:02 (GMT)
commit6a8e5692933e8e6d6e5ba7e594f49dd6d4c3a263 (patch)
tree1b3c53fc74521c22fa9f3fa6253ce240c4cf9d39 /board/freescale/mpc8641hpcn/mpc8641hpcn.c
parent46ff4f1100ea64a01d21cc008ce85ac15eb1821f (diff)
downloadu-boot-fsl-qoriq-6a8e5692933e8e6d6e5ba7e594f49dd6d4c3a263.tar.xz
FSL DDR: Convert MPC8641HPCN to new DDR code.
Signed-off-by: Jon Loeliger <jdl@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'board/freescale/mpc8641hpcn/mpc8641hpcn.c')
-rw-r--r--board/freescale/mpc8641hpcn/mpc8641hpcn.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/board/freescale/mpc8641hpcn/mpc8641hpcn.c b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
index db46953..1bb563e 100644
--- a/board/freescale/mpc8641hpcn/mpc8641hpcn.c
+++ b/board/freescale/mpc8641hpcn/mpc8641hpcn.c
@@ -25,7 +25,7 @@
#include <asm/processor.h>
#include <asm/immap_86xx.h>
#include <asm/immap_fsl_pci.h>
-#include <spd_sdram.h>
+#include <asm/fsl_ddr_sdram.h>
#include <asm/io.h>
#include <libfdt.h>
#include <fdt_support.h>
@@ -36,10 +36,8 @@
extern void ddr_enable_ecc(unsigned int dram_size);
#endif
-void sdram_init(void);
long int fixed_sdram(void);
-
int board_early_init_f(void)
{
return 0;
@@ -61,7 +59,7 @@ initdram(int board_type)
long dram_size = 0;
#if defined(CONFIG_SPD_EEPROM)
- dram_size = spd_sdram();
+ dram_size = fsl_ddr_sdram();
#else
dram_size = fixed_sdram();
#endif