OMAP4: clock-common: Move the usb dppl configuration to new func
[oweals/u-boot.git] / arch / arm / cpu / armv7 / omap-common / Makefile
index dc01ee5d3c70f949d4010ad3d160315c69cd3ab9..3f7a0b25f0d39db46c0b8ff9263066e792adfd1f 100644 (file)
@@ -28,6 +28,37 @@ LIB  = $(obj)libomap-common.o
 SOBJS  := reset.o
 
 COBJS  := timer.o
+COBJS  += utils.o
+ifdef CONFIG_OMAP
+COBJS  += gpio.o
+endif
+
+ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
+COBJS  += hwinit-common.o
+COBJS  += clocks-common.o
+COBJS  += emif-common.o
+endif
+
+ifneq ($(CONFIG_AM33XX)$(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
+COBJS  += boot-common.o
+SOBJS  += lowlevel_init.o
+endif
+
+ifdef CONFIG_SPL_BUILD
+COBJS  += spl.o
+ifdef CONFIG_SPL_NAND_SUPPORT
+COBJS  += spl_nand.o
+endif
+ifdef CONFIG_SPL_MMC_SUPPORT
+COBJS  += spl_mmc.o
+endif
+endif
+
+ifndef CONFIG_SPL_BUILD
+ifneq ($(CONFIG_OMAP44XX)$(CONFIG_OMAP54XX),)
+COBJS  += mem-common.o
+endif
+endif
 
 SRCS   := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(SOBJS) $(COBJS))