mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-19 10:14:23 +08:00
f7715b2999
Currently, suspend/resume support is only available on da850 platforms,
and the platform PM code has dependencies on da850 functions. However,
CONFIG_SUSPEND might be enabled even when da850 support is not, causing
build failure:
arch/arm/mach-davinci/built-in.o: In function `davinci_pm_init':
pm_domain.c:(.init.text+0x1fb8): undefined reference to `da8xx_get_mem_ctlr'
pm_domain.c:(.init.text+0x20b0): undefined reference to `da8xx_syscfg1_base'
Fix this by only building the PM core when da850 is enabled.
Reported-by: Sekhar Nori <nsekhar@ti.com>
Fixes: aa9aa1ec2d
("ARM: davinci: PM: rework init, remove platform device")
Signed-off-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
43 lines
1.5 KiB
Makefile
43 lines
1.5 KiB
Makefile
#
|
|
# Makefile for the linux kernel.
|
|
#
|
|
#
|
|
|
|
# Common objects
|
|
obj-y := time.o clock.o serial.o psc.o \
|
|
usb.o common.o sram.o aemif.o
|
|
|
|
obj-$(CONFIG_DAVINCI_MUX) += mux.o
|
|
|
|
# Chip specific
|
|
obj-$(CONFIG_ARCH_DAVINCI_DM644x) += dm644x.o devices.o
|
|
obj-$(CONFIG_ARCH_DAVINCI_DM355) += dm355.o devices.o
|
|
obj-$(CONFIG_ARCH_DAVINCI_DM646x) += dm646x.o devices.o
|
|
obj-$(CONFIG_ARCH_DAVINCI_DM365) += dm365.o devices.o
|
|
obj-$(CONFIG_ARCH_DAVINCI_DA830) += da830.o devices-da8xx.o usb-da8xx.o
|
|
obj-$(CONFIG_ARCH_DAVINCI_DA850) += da850.o devices-da8xx.o usb-da8xx.o
|
|
|
|
obj-$(CONFIG_AINTC) += irq.o
|
|
obj-$(CONFIG_CP_INTC) += cp_intc.o
|
|
|
|
# Board specific
|
|
obj-$(CONFIG_MACH_DA8XX_DT) += da8xx-dt.o
|
|
obj-$(CONFIG_MACH_DAVINCI_EVM) += board-dm644x-evm.o
|
|
obj-$(CONFIG_MACH_SFFSDR) += board-sffsdr.o
|
|
obj-$(CONFIG_MACH_NEUROS_OSD2) += board-neuros-osd2.o
|
|
obj-$(CONFIG_MACH_DAVINCI_DM355_EVM) += board-dm355-evm.o
|
|
obj-$(CONFIG_MACH_DM355_LEOPARD) += board-dm355-leopard.o
|
|
obj-$(CONFIG_MACH_DAVINCI_DM6467_EVM) += board-dm646x-evm.o
|
|
obj-$(CONFIG_MACH_DAVINCI_DM365_EVM) += board-dm365-evm.o
|
|
obj-$(CONFIG_MACH_DAVINCI_DA830_EVM) += board-da830-evm.o
|
|
obj-$(CONFIG_MACH_DAVINCI_DA850_EVM) += board-da850-evm.o
|
|
obj-$(CONFIG_MACH_MITYOMAPL138) += board-mityomapl138.o
|
|
obj-$(CONFIG_MACH_OMAPL138_HAWKBOARD) += board-omapl138-hawk.o
|
|
|
|
# Power Management
|
|
obj-$(CONFIG_CPU_IDLE) += cpuidle.o
|
|
obj-$(CONFIG_HAVE_CLK) += pm_domain.o
|
|
ifeq ($(CONFIG_SUSPEND),y)
|
|
obj-$(CONFIG_ARCH_DAVINCI_DA850) += pm.o sleep.o
|
|
endif
|