diff options
Diffstat (limited to 'cpu/mpc86xx')
| -rw-r--r-- | cpu/mpc86xx/cpu.c | 4 | ||||
| -rw-r--r-- | cpu/mpc86xx/spd_sdram.c | 10 | ||||
| -rw-r--r-- | cpu/mpc86xx/speed.c | 3 | 
3 files changed, 12 insertions, 5 deletions
| diff --git a/cpu/mpc86xx/cpu.c b/cpu/mpc86xx/cpu.c index 9456471e8..d83bedd6e 100644 --- a/cpu/mpc86xx/cpu.c +++ b/cpu/mpc86xx/cpu.c @@ -120,7 +120,7 @@ checkcpu(void)  static inline void  soft_restart(unsigned long addr)  { -#ifndef CONFIG_MPC8641HPCN +#if !defined(CONFIG_MPC8641HPCN) && !defined(CONFIG_MPC8610HPCD)  	/*  	 * SRR0 has system reset vector, SRR1 has default MSR value @@ -148,7 +148,7 @@ soft_restart(unsigned long addr)  void  do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])  { -#ifndef CONFIG_MPC8641HPCN +#if !defined(CONFIG_MPC8641HPCN) && !defined(CONFIG_MPC8610HPCD)  #ifdef CFG_RESET_ADDRESS  	ulong addr = CFG_RESET_ADDRESS; diff --git a/cpu/mpc86xx/spd_sdram.c b/cpu/mpc86xx/spd_sdram.c index 059097f51..265e033fb 100644 --- a/cpu/mpc86xx/spd_sdram.c +++ b/cpu/mpc86xx/spd_sdram.c @@ -1114,8 +1114,10 @@ spd_sdram(void)  	int memsize_ddr1 = 0;  	unsigned int law_size_ddr1;  	volatile immap_t *immap = (immap_t *)CFG_IMMR; -	volatile ccsr_ddr_t *ddr1 = &immap->im_ddr1;  	volatile ccsr_local_mcm_t *mcm = &immap->im_local_mcm; +#ifdef CONFIG_DDR_INTERLEAVE +	volatile ccsr_ddr_t *ddr1 = &immap->im_ddr1; +#endif  #if (CONFIG_NUM_DDR_CONTROLLERS > 1)  	int memsize_ddr2_dimm1 = 0; @@ -1270,10 +1272,12 @@ spd_sdram(void)  		debug("\nDDR: LAWBAR8=0x%08x\n", mcm->lawbar8);  		debug("DDR: LAWAR8=0x%08x\n", mcm->lawar8);  	} + +	debug("\nMemory size of DDR2 = 0x%08lx\n", memsize_ddr2); +  #endif /* CONFIG_NUM_DDR_CONTROLLERS > 1 */ -	debug("\nMemory sizes are DDR1 = 0x%08lx, DDR2 = 0x%08lx\n", -	      memsize_ddr1, memsize_ddr2); +	debug("\nMemory size of DDR1 = 0x%08lx\n", memsize_ddr1);  	/*  	 * If neither DDR controller is enabled return 0. diff --git a/cpu/mpc86xx/speed.c b/cpu/mpc86xx/speed.c index 23161ca8c..4f7e8f17d 100644 --- a/cpu/mpc86xx/speed.c +++ b/cpu/mpc86xx/speed.c @@ -31,6 +31,9 @@  DECLARE_GLOBAL_DATA_PTR; +/* used in some defintiions of CONFIG_SYS_CLK_FREQ */ +extern unsigned long get_board_sys_clk(unsigned long dummy); +  void get_sys_info(sys_info_t *sysInfo)  {  	volatile immap_t *immap = (immap_t *) CFG_IMMR; |