From: Peter Tyser Date: Tue, 30 Jun 2009 22:15:46 +0000 (-0500) Subject: fsl_dma: Move dma function prototypes to common header file X-Git-Tag: v2009.08-rc1~122^2~10 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=191c7118592cd182f2dc7f46b4f72d9bed0e2c76;p=oweals%2Fu-boot.git fsl_dma: Move dma function prototypes to common header file Signed-off-by: Peter Tyser Signed-off-by: Kumar Gala --- diff --git a/cpu/mpc85xx/ddr-gen1.c b/cpu/mpc85xx/ddr-gen1.c index b188906f80..9fc498ed44 100644 --- a/cpu/mpc85xx/ddr-gen1.c +++ b/cpu/mpc85xx/ddr-gen1.c @@ -66,10 +66,6 @@ void fsl_ddr_set_memctl_regs(const fsl_ddr_cfg_regs_t *regs, } #if defined(CONFIG_DDR_ECC) && !defined(CONFIG_ECC_INIT_VIA_DDRCONTROLLER) -extern void dma_init(void); -extern uint dma_check(void); -extern int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t n); - /* * Initialize all of memory for ECC, then enable errors. */ diff --git a/include/asm-ppc/fsl_dma.h b/include/asm-ppc/fsl_dma.h index c9ec6b59e6..978283a8c4 100644 --- a/include/asm-ppc/fsl_dma.h +++ b/include/asm-ppc/fsl_dma.h @@ -94,4 +94,9 @@ typedef struct fsl_dma { char res4[56]; } fsl_dma_t; +#ifdef CONFIG_FSL_DMA +void dma_init(void); +int dmacpy(phys_addr_t dest, phys_addr_t src, phys_size_t n); +#endif + #endif /* _ASM_DMA_H_ */