linux-stable/arch/arm/mach-imx
Shawn Guo 28a9f3b078 ARM: imx6: build pm-imx6q.c independently of CONFIG_PM
When building a kernel image with only CONFIG_CPU_IDLE but no CONFIG_PM,
we will get the following link error.

  LD      init/built-in.o
arch/arm/mach-imx/built-in.o: In function `imx6q_enter_wait':
platform-spi_imx.c:(.text+0x25c0): undefined reference to `imx6q_set_lpm'
platform-spi_imx.c:(.text+0x25d4): undefined reference to `imx6q_set_lpm'
arch/arm/mach-imx/built-in.o: In function `imx6q_cpuidle_init':
platform-spi_imx.c:(.init.text+0x75d4): undefined reference to `imx6q_set_chicken_bit'
make[1]: *** [vmlinux] Error 1

Since pm-imx6q.c has been a collection of library functions that access
CCM low-power registers used by not only suspend but also cpuidle and
other drivers, let's build pm-imx6q.c independently of CONFIG_PM to fix
above error.

Reported-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Cc: stable@vger.kernel.org
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
2014-02-18 16:03:43 -08:00
..
devices ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
3ds_debugboard.c
3ds_debugboard.h
anatop.c ARM: imx: use imx_init_revision_from_anatop() on imx6sl 2013-10-21 09:13:13 +08:00
avic.c ARM: imx: drop support for irq priorisation 2013-12-09 13:18:25 +08:00
board-mx31lilly.h
board-mx31lite.h
board-mx31moboard.h
board-pcm038.h
clk-busy.c ARM: arm-soc non-critical fixes for 3.10 2013-05-02 08:56:55 -07:00
clk-fixup-div.c ARM: imx: add common clock support for fixup div 2013-08-16 13:11:24 +08:00
clk-fixup-mux.c ARM: imx: initialize clk_init_data.flags for clk-fixup-mux 2013-09-17 10:04:23 +08:00
clk-gate2.c ARM: imx: improve status check of clock gate 2013-12-31 09:36:46 +08:00
clk-imx1.c
clk-imx6q.c ARM: imx6: Initialize low-power mode early again 2014-02-10 10:37:32 -08:00
clk-imx6sl.c ARM: imx6: Initialize low-power mode early again 2014-02-10 10:37:32 -08:00
clk-imx21.c
clk-imx25.c
clk-imx27.c ARM: i.MX: change dev_id to cpu0 while registering cpu clock 2013-09-19 03:53:44 +02:00
clk-imx31.c
clk-imx35.c ARM i.MX35: Add devicetree support. 2013-12-31 09:36:40 +08:00
clk-imx51-imx53.c ARM i.MX5: fix obvious typo in ldb_di0_gate clk definition 2013-12-31 09:36:31 +08:00
clk-pfd.c ARM: imx: add necessary interface for pfd 2013-12-31 09:36:45 +08:00
clk-pllv1.c ARM: imx: pllv1: Fix PLL calculation for i.MX27 2013-12-31 09:36:29 +08:00
clk-pllv2.c
clk-pllv3.c ARM: imx: set up pllv3 POWER and BYPASS sequentially 2013-11-11 22:58:45 +08:00
clk-vf610.c ARM: imx: Add DMAMUX clock for Vybrid vf610 SoC 2013-12-09 13:18:31 +08:00
clk.c ARM: imx6: change some clocks to fixup clocks 2013-08-16 13:11:25 +08:00
clk.h The common clk framework changes for 3.12 are dominated by clock driver 2013-09-09 15:49:04 -07:00
common.h ARM: imx6: build pm-imx6q.c independently of CONFIG_PM 2014-02-18 16:03:43 -08:00
cpu-imx5.c
cpu-imx25.c
cpu-imx27.c
cpu-imx31.c
cpu-imx35.c
cpu.c ARM: imx: Include linux/err.h 2013-10-21 09:15:12 +08:00
cpuidle-imx5.c
cpuidle-imx6q.c
cpuidle.h
crm-regs-imx5.h
crmregs-imx3.h
devices-imx1.h
devices-imx21.h
devices-imx25.h ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
devices-imx27.h
devices-imx31.h
devices-imx35.h ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
devices-imx51.h
ehci-imx5.c
ehci-imx25.c
ehci-imx27.c
ehci-imx31.c
ehci-imx35.c
epit.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
eukrea-baseboards.h
eukrea_mbimx27-baseboard.c
eukrea_mbimxsd25-baseboard.c ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
eukrea_mbimxsd35-baseboard.c ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
eukrea_mbimxsd51-baseboard.c
gpc.c ARM: imx: ensure dsm_request signal is not asserted when setting LPM 2013-10-21 09:39:26 +08:00
hardware.h ARM: imx: include <asm/io.h> in hardware.h 2013-06-17 15:45:10 +08:00
headsmp.S ARM: imx: replicate the diagnostic register of boot cpu into secondary cores 2013-05-12 21:39:18 +08:00
hotplug.c ARM: imx: do not return from imx_cpu_die() call 2013-10-21 09:37:31 +08:00
iim.h
imx25-dt.c ARM: imx: create mxc_arch_reset_init_dt() for DT boot 2013-06-17 15:45:10 +08:00
imx27-dt.c ARM: imx: create mxc_arch_reset_init_dt() for DT boot 2013-06-17 15:45:10 +08:00
imx31-dt.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
imx35-dt.c ARM i.MX35: Add devicetree support. 2013-12-31 09:36:40 +08:00
imx51-dt.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
iomux-imx31.c
iomux-mx1.h
iomux-mx2x.h
iomux-mx3.h
iomux-mx21.h
iomux-mx25.h
iomux-mx27.h
iomux-mx35.h
iomux-mx51.h
iomux-v1.c
iomux-v1.h
iomux-v3.c
iomux-v3.h
irq-common.c ARM: imx: irq-common: Include header to avoid sparse warning 2013-06-17 15:45:14 +08:00
irq-common.h ARM: imx: drop support for irq priorisation 2013-12-09 13:18:25 +08:00
Kconfig ARM: SoC platform changes for 3.14 2014-01-23 18:40:49 -08:00
mach-apf9328.c
mach-armadillo5x0.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
mach-bug.c
mach-cpuimx27.c
mach-cpuimx35.c Input: tsc2007 - add device tree support. 2013-11-25 18:27:53 -08:00
mach-cpuimx51sd.c Input: tsc2007 - add device tree support. 2013-11-25 18:27:53 -08:00
mach-eukrea_cpuimx25.c
mach-imx6q.c Merge branch 'cubox-i-init' into for-linus 2014-01-28 21:38:58 +00:00
mach-imx6sl.c ARM: imx: Add cpu frequency scaling support 2013-12-31 09:36:41 +08:00
mach-imx27_visstrim_m10.c gpio: (gpio-pca953x) move header to linux/platform_data/ 2013-08-29 12:33:52 -07:00
mach-imx27ipcam.c
mach-imx27lite.c
mach-imx50.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
mach-imx53.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
mach-kzm_arm11_01.c
mach-mx1ads.c
mach-mx21ads.c
mach-mx25_3ds.c ARM: imx: prepare for removal of flexcan_platform_data 2013-06-27 15:15:08 +02:00
mach-mx27_3ds.c
mach-mx27ads.c
mach-mx31_3ds.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
mach-mx31ads.c
mach-mx31lilly.c
mach-mx31lite.c
mach-mx31moboard.c leds: leds-mc13783: Remove duplicate field in platform data 2014-01-27 17:28:49 -08:00
mach-mx35_3ds.c
mach-mx51_babbage.c
mach-mxt_td60.c gpio: (gpio-pca953x) move header to linux/platform_data/ 2013-08-29 12:33:52 -07:00
mach-pca100.c treewide: Fix typos in printk 2013-12-19 15:10:49 +01:00
mach-pcm037.c Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2013-11-18 15:50:07 -08:00
mach-pcm037_eet.c
mach-pcm038.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
mach-pcm043.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
mach-qong.c
mach-scb9328.c
mach-vf610.c ARM: imx: use __initconst for const init definition 2013-12-31 09:36:33 +08:00
mach-vpr200.c misc: (at24) move header to linux/platform_data/ 2013-09-30 06:02:34 +02:00
Makefile ARM: imx6: build pm-imx6q.c independently of CONFIG_PM 2014-02-18 16:03:43 -08:00
mm-imx1.c ARM: imx: move clk_prepare() out from mxc_restart() 2013-06-17 15:45:10 +08:00
mm-imx3.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2013-07-03 09:46:29 -07:00
mm-imx5.c ARM: imx: remove mxc_iomux_v3_init() call from imx53_init_early() 2013-12-09 13:18:24 +08:00
mm-imx21.c ARM: imx: move clk_prepare() out from mxc_restart() 2013-06-17 15:45:10 +08:00
mm-imx25.c ARM: i.MX: remove sdma script address arrays from platform data 2013-08-26 20:47:16 +05:30
mm-imx27.c ARM: imx: move clk_prepare() out from mxc_restart() 2013-06-17 15:45:10 +08:00
mmdc.c
mx1-camera-fiq-ksym.c
mx1-camera-fiq.S
mx1.h
mx2x.h
mx3x.h
mx21.h
mx25.h
mx27.h ARM: i.MX27: Typo fix 2013-07-15 08:28:07 +08:00
mx31.h
mx31lilly-db.c ARM: imx: remove IRQF_DISABLED 2013-10-21 09:11:05 +08:00
mx31lite-db.c
mx31moboard-devboard.c
mx31moboard-marxbot.c
mx31moboard-smartbot.c
mx35.h
mx51.h
mx53.h
mxc.h ARM: imx: enable suspend for imx6sl 2013-10-21 09:39:27 +08:00
pcm037.h
pcm970-baseboard.c
platsmp.c ARM: clean up cache handling in platform code 2013-12-11 16:24:34 -08:00
pm-imx3.c
pm-imx5.c ARM: mx53: Allow suspend/resume 2013-08-22 23:20:45 +08:00
pm-imx6q.c ARM: imx6: Initialize low-power mode early again 2014-02-10 10:37:32 -08:00
pm-imx27.c
src.c ARM: imx: remove imx_src_prepare_restart() call 2013-11-11 22:58:43 +08:00
ssi-fiq-ksym.c
ssi-fiq.S
system.c ARM: imx: improve mxc_restart() on the SRC bit writes 2013-11-11 22:58:43 +08:00
time.c ARM: imx: Switch to sched_clock_register() 2013-11-21 15:40:59 -08:00
tzic.c
ulpi.h ARM: imx: Remove mxc specific ulpi access ops 2013-06-17 15:45:16 +08:00