Commit f82c961a authored by Daniel DeGrasse's avatar Daniel DeGrasse Committed by Jamie
Browse files

soc: nxp: imx8mm: port iMX8MM M4 core to HVMv2

Port iMX8MM M4 core of iMX8MM SOC  to HVMv2. The A53 core has already
been ported, so this port adds to that SOC definition.

Signed-off-by: default avatarDaniel DeGrasse <daniel.degrasse@nxp.com>
parent 6987b2e3
Loading
Loading
Loading
Loading
+4 −0
Changes for soc/nxp/imx/imx8m/CMakeLists.txt: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -38,3 +38,7 @@ if(CONFIG_SOC_MIMX8ML8_A53 OR CONFIG_SOC_MIMX8MM6_A53 OR CONFIG_SOC_MIMX8MN6_A53

  set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm64/scripts/linker.ld CACHE INTERNAL "")
endif()

if(CONFIG_SOC_MIMX8MM6_M4)
  add_subdirectory(m4_mini)
endif()
+11 −0
Changes for soc/nxp/imx/imx8m/Kconfig: 11 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -9,6 +9,17 @@ config SOC_MIMX8MM6_A53
	select HAS_MCUX_CCM if CLOCK_CONTROL
	select HAS_MCUX_IOMUXC if PINCTRL

config SOC_MIMX8MM6_M4
	select ARM
	select CPU_CORTEX_M4
	select CPU_HAS_FPU
	select CPU_HAS_ARM_MPU
	select HAS_MCUX
	select HAS_MCUX_CCM
	select HAS_MCUX_RDC
	select HAS_MCUX_IGPIO
	select HAS_MCUX_IOMUXC

config SOC_MIMX8ML8_A53
	select ARM64
	select CPU_CORTEX_A53
+11 −7
Changes for soc/nxp/imx/imx8m/Kconfig.defconfig.mimx8mm.m4: 11 added lines, 7 removed lines.
Original line number Diff line number Diff line
# i.MX8MM M4 SoC series defconfig
# MIMX8MM6 M4 SoC defconfig

# Copyright (c) 2020, Manivannan Sadhasivam <mani@kernel.org>
# Copyright 2024 NXP
# SPDX-License-Identifier: Apache-2.0

if SOC_SERIES_IMX8MM_M4
if SOC_MIMX8MM6_M4

config SOC_SERIES
	default "mimx8mm6_m4"
config SYS_CLOCK_HW_CYCLES_PER_SEC
	int
	default 400000000

config IPM_IMX
	default y
	depends on IPM

config NUM_IRQS
	int
@@ -17,6 +23,4 @@ config PINCTRL_IMX
	default y if HAS_MCUX_IOMUXC
	depends on PINCTRL

source "soc/soc_legacy/arm/nxp_imx/mimx8mm6_m4/Kconfig.defconfig.mimx8mm6_m4"

endif # SOC_SERIES_IMX8MM_M4
endif # SOC_MIMX8MM6_M4
+6 −0
Changes for soc/nxp/imx/imx8m/Kconfig.soc: 6 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -22,6 +22,12 @@ config SOC_MIMX8MM6_A53
	help
	  NXP i.MX8MM A53

config SOC_MIMX8MM6_M4
	bool
	select SOC_MIMX8MM6
	help
	  NXP i.MX8MM M4

config SOC_MIMX8MP
	bool
	select SOC_SERIES_IMX8M
+3 −0
Changes for soc/nxp/imx/imx8m/m4_mini/CMakeLists.txt: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
#
# Copyright (c) 2020, Manivannan Sadhasivam <mani@kernel.org>
# Copyright 2024 NXP
#
# SPDX-License-Identifier: Apache-2.0
#
@@ -8,6 +9,8 @@ zephyr_sources(
  soc.c
  )

zephyr_include_directories(.)

if(CONFIG_OPENAMP_RSC_TABLE)
  zephyr_linker_section(NAME .resource_table GROUP ROM_REGION NOINPUT)
  zephyr_linker_section_configure(SECTION .resource_table KEEP INPUT ".resource_table*")
Loading