projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libfdt: move headers to <linux/libfdt.h> and <linux/libfdt_env.h>
[oweals/u-boot.git]
/
board
/
freescale
/
mpc8610hpcd
/
mpc8610hpcd.c
diff --git
a/board/freescale/mpc8610hpcd/mpc8610hpcd.c
b/board/freescale/mpc8610hpcd/mpc8610hpcd.c
index 95e398c9f4958d540026648638c2de16029e7c44..0c307793bfae65d9cce6a2571cc8e17e4775e99b 100644
(file)
--- a/
board/freescale/mpc8610hpcd/mpc8610hpcd.c
+++ b/
board/freescale/mpc8610hpcd/mpc8610hpcd.c
@@
-14,11
+14,13
@@
#include <asm/fsl_serdes.h>
#include <i2c.h>
#include <asm/io.h>
#include <asm/fsl_serdes.h>
#include <i2c.h>
#include <asm/io.h>
-#include <libfdt.h>
+#include <li
nux/li
bfdt.h>
#include <fdt_support.h>
#include <spd_sdram.h>
#include <netdev.h>
#include <fdt_support.h>
#include <spd_sdram.h>
#include <netdev.h>
+DECLARE_GLOBAL_DATA_PTR;
+
void sdram_init(void);
phys_size_t fixed_sdram(void);
int mpc8610hpcd_diu_init(void);
void sdram_init(void);
phys_size_t fixed_sdram(void);
int mpc8610hpcd_diu_init(void);
@@
-116,8
+118,7
@@
int checkboard(void)
}
}
-phys_size_t
-initdram(int board_type)
+int dram_init(void)
{
phys_size_t dram_size = 0;
{
phys_size_t dram_size = 0;
@@
-130,7
+131,9
@@
initdram(int board_type)
setup_ddr_bat(dram_size);
debug(" DDR: ");
setup_ddr_bat(dram_size);
debug(" DDR: ");
- return dram_size;
+ gd->ram_size = dram_size;
+
+ return 0;
}
}