mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-24 22:36:05 +00:00
drivers/dma: Move conditional compilation to Makefile
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
parent
1a02806c4b
commit
88f57e0931
4 changed files with 1 additions and 12 deletions
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
|
||||||
#ifdef CONFIG_FSLDMAFEC
|
|
||||||
|
|
||||||
#include <MCD_dma.h>
|
#include <MCD_dma.h>
|
||||||
#include <MCD_tasksInit.h>
|
#include <MCD_tasksInit.h>
|
||||||
#include <MCD_progCheck.h>
|
#include <MCD_progCheck.h>
|
||||||
|
@ -1023,4 +1021,3 @@ static void MCD_memcpy(int *dest, int *src, u32 size)
|
||||||
for (i = 0; i < size; i += sizeof(int), dest++, src++)
|
for (i = 0; i < size; i += sizeof(int), dest++, src++)
|
||||||
*dest = *src;
|
*dest = *src;
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_FSLDMAFEC */
|
|
||||||
|
|
|
@ -24,8 +24,6 @@
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
|
|
||||||
#ifdef CONFIG_FSLDMAFEC
|
|
||||||
|
|
||||||
#include <MCD_dma.h>
|
#include <MCD_dma.h>
|
||||||
|
|
||||||
u32 MCD_varTab0[];
|
u32 MCD_varTab0[];
|
||||||
|
@ -2430,5 +2428,3 @@ u32 MCD_ENetXmit_TDT[] = {
|
||||||
#ifdef MCD_INCLUDE_EU
|
#ifdef MCD_INCLUDE_EU
|
||||||
MCD_bufDesc MCD_singleBufDescs[NCHANNELS];
|
MCD_bufDesc MCD_singleBufDescs[NCHANNELS];
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* CONFIG_FSLDMAFEC */
|
|
||||||
|
|
|
@ -28,8 +28,6 @@
|
||||||
* Do not edit!
|
* Do not edit!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifdef CONFIG_FSLDMAFEC
|
|
||||||
|
|
||||||
#include <MCD_dma.h>
|
#include <MCD_dma.h>
|
||||||
|
|
||||||
extern dmaRegs *MCD_dmaBar;
|
extern dmaRegs *MCD_dmaBar;
|
||||||
|
@ -242,5 +240,3 @@ void MCD_startDmaENetXmit(char *bDBase, char *currBD, char *xmitFifoPtr,
|
||||||
/* Set the task's Enable bit in its Task Control Register */
|
/* Set the task's Enable bit in its Task Control Register */
|
||||||
MCD_dmaBar->taskControl[channel] |= (u16) 0x8000;
|
MCD_dmaBar->taskControl[channel] |= (u16) 0x8000;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* CONFIG_FSLDMAFEC */
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ include $(TOPDIR)/config.mk
|
||||||
|
|
||||||
LIB := $(obj)libdma.a
|
LIB := $(obj)libdma.a
|
||||||
|
|
||||||
COBJS-y += MCD_tasksInit.o MCD_dmaApi.o MCD_tasks.o
|
COBJS-$(CONFIG_FSLDMAFEC) += MCD_tasksInit.o MCD_dmaApi.o MCD_tasks.o
|
||||||
|
|
||||||
COBJS := $(COBJS-y)
|
COBJS := $(COBJS-y)
|
||||||
SRCS := $(COBJS:.o=.c)
|
SRCS := $(COBJS:.o=.c)
|
||||||
|
|
Loading…
Add table
Reference in a new issue