Commit 097530bf authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Shawn Guo

ARM: imx: fix imx8m dependencies

Selecting ARM_GIC_V3 on non-CP15 processors leads to build failures
like

arch/arm/include/asm/arch_gicv3.h: In function 'write_ICC_AP1R3_EL1':
arch/arm/include/asm/arch_gicv3.h:36:40: error: 'c12' undeclared (first use in this function)
   36 | #define __ICC_AP1Rx(x)   __ACCESS_CP15(c12, 0, c9, x)
      |                                        ^~~

Add a dependency to only enable the gic driver when building for
at an ARMv7 target, which is the closes approximation to the ARMv8
processor that is actually in this chip.

Fixes: fc40200e ("soc: imx: increase build coverage for imx8m soc driver")
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent fd25c883
...@@ -13,7 +13,7 @@ config SOC_IMX8M ...@@ -13,7 +13,7 @@ config SOC_IMX8M
depends on ARCH_MXC || COMPILE_TEST depends on ARCH_MXC || COMPILE_TEST
default ARCH_MXC && ARM64 default ARCH_MXC && ARM64
select SOC_BUS select SOC_BUS
select ARM_GIC_V3 if ARCH_MXC select ARM_GIC_V3 if ARCH_MXC && ARCH_MULTI_V7
help help
If you say yes here you get support for the NXP i.MX8M family If you say yes here you get support for the NXP i.MX8M family
support, it will provide the SoC info like SoC family, support, it will provide the SoC info like SoC family,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment