ARM: mach-imx: Let ARCH_MXC select HAVE_IMX_SRC
Subsystems (3)
Fabio Estevam
reviewerPATCH v2 1/1 ARM: mach-imx: Let ARCH_MXC select HAVE_IMX_SRC
From: Fabio Estevam <[email protected]>
Since commit c5a0d497(ARM: imx: enable multi-platform build), ARCH_MXC is selected by the following logic:
config ARCH_MXC
def_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7
As vexpress_defconfig selects ARCH_MULTI_V6_V7, this leads to the following build error when building for vexpress_defconfig:
arch/arm/mach-imx/hotplug.c:49: undefined reference to imx_enable_cpu' arch/arm/mach-imx/platsmp.c:57: undefined reference to imx_set_cpu_jump' arch/arm/mach-imx/platsmp.c:58: undefined reference to `imx_enable_cpu'
These missing functions are provided by arch/arm/mach-imx/src.c, which is selected via HAVE_IMX_SRC.
Currently only SOC_IMX6Q selects HAVE_IMX_SRC, so let ARCH_MXC select it and fix the build error.
---
Changes since v1:
- Fix typo in commit message and improve it a bit
arch/arm/mach-imx/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/Kconfig +1 -1
@@ -7,6 +7,7 @@ config ARCH_MXC select CLKSRC_MMIO select GENERIC_CLOCKEVENTS select GENERIC_IRQ_CHIP + select HAVE_IMX_SRC select MULTI_IRQ_HANDLER select SPARSE_IRQ select USE_OF
@@ -837,7 +838,6 @@ config SOC_IMX6Q select HAVE_CAN_FLEXCAN if CAN select HAVE_IMX_GPC select HAVE_IMX_MMDC - select HAVE_IMX_SRC select HAVE_SMP select MFD_SYSCON select PINCTRL
Signature · 1 line
1.7.9.5
PATCH v2 1/1 ARM: mach-imx: Let ARCH_MXC select HAVE_IMX_SRC
Quoted 15 lines · Fabio Estevam
From: Fabio Estevam <[email protected]>
Since commit c5a0d497(ARM: imx: enable multi-platform build),
ARCH_MXCis selected by the following logic:config
ARCH_MXCdef_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7As
vexpress_defconfigselectsARCH_MULTI_V6_V7, this leads to the following build error when building forvexpress_defconfig:
arch/arm/mach-imx/hotplug.c:49: undefined reference toimx_enable_cpu' arch/arm/mach-imx/platsmp.c:57: undefined reference toimx_set_cpu_jump'arch/arm/mach-imx/platsmp.c:58: undefined reference to `imx_enable_cpu'
Quoted 6 lines
These missing functions are provided by
arch/arm/mach-imx/src.c, which is selected viaHAVE_IMX_SRC.Currently only
SOC_IMX6QselectsHAVE_IMX_SRC, so letARCH_MXCselect it and fix the build error.
I think the right fix is to make ARCH_MXC user selectable, just like what vexpress does. I would fix the problem like below.
Shawn
arch/arm/mach-imx/Kconfig +2 -2
@@ -1,5 +1,5 @@ config ARCH_MXC - def_bool y if ARCH_MULTI_V4_V5 || ARCH_MULTI_V6_V7 + bool "Freescale i.MX family" if ARCH_MULTI_V7 select AUTO_ZRELADDR if !ZBOOT_ROM select ARM_PATCH_PHYS_VIRT select GENERIC_CLOCKEVENTS
@@ -13,7 +13,7 @@ config ARCH_MXC help Support for Freescale MXC/iMX-based family of processors -menu "Freescale i.MX support" +menu "i.MX platform support" depends on ARCH_MXC config MXC_IRQ_PRIOR