瀏覽代碼

MPC83xx, MPC85xx: compile stub cache function

An empty flush_dcache_range() was added into MPC83xx and MPC85xx to
work with drivers shared with other architecture.  However, it is
compiled only if USB is set, but it is required for other drivers
(FSL_ESDHC), too.

Signed-off-by: Stefano Babic <sbabic@denx.de>
CC: Andy Fleming <afleming@gmail.com>
CC: Dirk Behme <dirk.behme@de.bosch.com>
CC: Marek Vasut <marex@denx.de>
CC: Wolfgang Denk <wd@denx.de>

Added MPC83xx version.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Stefano Babic 12 年之前
父節點
當前提交
569fadcd74
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      arch/powerpc/cpu/mpc83xx/Makefile
  2. 1 1
      arch/powerpc/cpu/mpc85xx/Makefile

+ 1 - 1
arch/powerpc/cpu/mpc83xx/Makefile

@@ -42,7 +42,7 @@ COBJS-$(CONFIG_PCIE) += pcie.o
 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
 COBJS-$(CONFIG_OF_LIBFDT) += fdt.o
 
 
 # Stub implementations of cache management functions for USB
 # Stub implementations of cache management functions for USB
-COBJS-$(CONFIG_USB_EHCI) += cache.o
+COBJS-y += cache.o
 
 
 ifdef CONFIG_FSL_DDR2
 ifdef CONFIG_FSL_DDR2
 COBJS_LN-$(CONFIG_MPC8349) += ddr-gen2.o
 COBJS_LN-$(CONFIG_MPC8349) += ddr-gen2.o

+ 1 - 1
arch/powerpc/cpu/mpc85xx/Makefile

@@ -131,7 +131,7 @@ COBJS	+= tlb.o
 COBJS	+= traps.o
 COBJS	+= traps.o
 
 
 # Stub implementations of cache management functions for USB
 # Stub implementations of cache management functions for USB
-COBJS-$(CONFIG_USB_EHCI) += cache.o
+COBJS += cache.o
 
 
 SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 SRCS	:= $(START:.o=.S) $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))
 OBJS	:= $(addprefix $(obj),$(SOBJS) $(COBJS))