8xxx: Move dma_init() call to common code

Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
master
Peter Tyser 16 years ago committed by Kumar Gala
parent 191c711859
commit 79f4333ceb
  1. 2
      board/mpc8540eval/mpc8540eval.c
  2. 2
      board/sbc8560/sbc8560.c
  3. 4
      cpu/mpc85xx/cpu_init.c
  4. 2
      cpu/mpc85xx/ddr-gen1.c
  5. 3
      cpu/mpc86xx/cpu_init.c

@ -140,7 +140,7 @@ phys_size_t initdram (int board_type)
uint *p = 0; uint *p = 0;
uint i = 0; uint i = 0;
volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR); volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
dma_init();
for (*p = 0; p < (uint *)(8 * 1024); p++) { for (*p = 0; p < (uint *)(8 * 1024); p++) {
if (((unsigned int)p & 0x1f) == 0) { dcbz(p); } if (((unsigned int)p & 0x1f) == 0) { dcbz(p); }
*p = (unsigned int)0xdeadbeef; *p = (unsigned int)0xdeadbeef;

@ -341,7 +341,7 @@ phys_size_t initdram (int board_type)
uint *p = 0; uint *p = 0;
uint i = 0; uint i = 0;
volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR); volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
dma_init();
for (*p = 0; p < (uint *)(8 * 1024); p++) { for (*p = 0; p < (uint *)(8 * 1024); p++) {
if (((unsigned int)p & 0x1f) == 0) { dcbz(p); } if (((unsigned int)p & 0x1f) == 0) { dcbz(p); }
*p = (unsigned int)0xdeadbeef; *p = (unsigned int)0xdeadbeef;

@ -261,7 +261,9 @@ void cpu_init_f (void)
#if defined(CONFIG_MPC8536) #if defined(CONFIG_MPC8536)
fsl_serdes_init(); fsl_serdes_init();
#endif #endif
#if defined(CONFIG_FSL_DMA)
dma_init();
#endif
} }

@ -77,8 +77,6 @@ ddr_enable_ecc(unsigned int dram_size)
uint i = 0; uint i = 0;
volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR); volatile ccsr_ddr_t *ddr= (void *)(CONFIG_SYS_MPC85xx_DDR_ADDR);
dma_init();
for (*p = 0; p < (uint *)(8 * 1024); p++) { for (*p = 0; p < (uint *)(8 * 1024); p++) {
if (((unsigned int)p & 0x1f) == 0) { if (((unsigned int)p & 0x1f) == 0) {
ppcDcbz((unsigned long) p); ppcDcbz((unsigned long) p);

@ -113,6 +113,9 @@ void cpu_init_f(void)
memctl->or7 = CONFIG_SYS_OR7_PRELIM; memctl->or7 = CONFIG_SYS_OR7_PRELIM;
memctl->br7 = CONFIG_SYS_BR7_PRELIM; memctl->br7 = CONFIG_SYS_BR7_PRELIM;
#endif #endif
#if defined(CONFIG_FSL_DMA)
dma_init();
#endif
/* enable the timebase bit in HID0 */ /* enable the timebase bit in HID0 */
set_hid0(get_hid0() | 0x4000000); set_hid0(get_hid0() | 0x4000000);

Loading…
Cancel
Save