145e17d1c9
The AM64x and AM62x are both SOCs from the TI K3 family and share common architecture designs. The M4F subsystem is actuall identical on both SOCs. Therefore, just add all missing CONFIGs, files, etc. to support the AM6442x SOC. Since MMR and RAT initialization are identical too, both functions can be re-used. However, since they might differ in the future, the am64x has it's own init function. Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
22 lines
686 B
CMake
22 lines
686 B
CMake
# Copyright (c) 2023 Enphase Energy
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
zephyr_include_directories(.)
|
|
|
|
if(CONFIG_SOC_AM6234_A53)
|
|
zephyr_sources_ifdef(CONFIG_ARM_MMU a53/mmu_regions.c)
|
|
|
|
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm64/scripts/linker.ld CACHE INTERNAL "")
|
|
elseif(CONFIG_SOC_SERIES_AM6X_M4)
|
|
zephyr_sources(m4/soc.c)
|
|
|
|
zephyr_include_directories(m4)
|
|
|
|
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*")
|
|
endif()
|
|
|
|
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/m4/linker.ld CACHE INTERNAL "")
|
|
endif()
|