Skip to content

Commit fc40200

Browse files
MrVanShawn Guo
authored andcommitted
soc: imx: increase build coverage for imx8m soc driver
The soc-imx8.c driver is actually for i.MX8M family, so rename it to soc-imx8m.c. Use CONFIG_SOC_IMX8M as build gate, not CONFIG_ARCH_MXC, to control whether build this driver, also make it possible for compile test. Default set it to y for ARCH_MXC && ARM64 Signed-off-by: Peng Fan <[email protected]> Reviewed-by: Leonard Crestez <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 705dcca commit fc40200

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

drivers/soc/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ obj-$(CONFIG_ARCH_DOVE) += dove/
1111
obj-$(CONFIG_MACH_DOVE) += dove/
1212
obj-y += fsl/
1313
obj-$(CONFIG_ARCH_GEMINI) += gemini/
14-
obj-$(CONFIG_ARCH_MXC) += imx/
14+
obj-y += imx/
1515
obj-$(CONFIG_ARCH_IXP4XX) += ixp4xx/
1616
obj-$(CONFIG_SOC_XWAY) += lantiq/
1717
obj-y += mediatek/

drivers/soc/imx/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,13 @@ config IMX_SCU_SOC
1717
Controller Unit SoC info module, it will provide the SoC info
1818
like SoC family, ID and revision etc.
1919

20+
config SOC_IMX8M
21+
bool "i.MX8M SoC family support"
22+
depends on ARCH_MXC || COMPILE_TEST
23+
default ARCH_MXC && ARM64
24+
help
25+
If you say yes here you get support for the NXP i.MX8M family
26+
support, it will provide the SoC info like SoC family,
27+
ID and revision etc.
28+
2029
endmenu

drivers/soc/imx/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
obj-$(CONFIG_HAVE_IMX_GPC) += gpc.o
33
obj-$(CONFIG_IMX_GPCV2_PM_DOMAINS) += gpcv2.o
4-
obj-$(CONFIG_ARCH_MXC) += soc-imx8.o
4+
obj-$(CONFIG_SOC_IMX8M) += soc-imx8m.o
55
obj-$(CONFIG_IMX_SCU_SOC) += soc-imx-scu.o
File renamed without changes.

0 commit comments

Comments
 (0)