]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
fsl_dma: Move dma function prototypes to common header file
authorPeter Tyser <ptyser@xes-inc.com>
Tue, 30 Jun 2009 22:15:46 +0000 (17:15 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 2 Jul 2009 04:11:52 +0000 (23:11 -0500)
Signed-off-by: Peter Tyser <ptyser@xes-inc.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
cpu/mpc85xx/ddr-gen1.c
include/asm-ppc/fsl_dma.h

index b188906f80594a23ff3131c9b1379dd41b959fd8..9fc498ed448eb7f6d68967261ea9e5bd0726c64b 100644 (file)
@@ -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.
  */
index c9ec6b59e699724ea636a238450ddbc03c2ab9d3..978283a8c416632b399677c16c2050f2a9731c21 100644 (file)
@@ -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_ */