soc: adi: Add the MAX78002 SoC
Added MAX78002 Kconfig and dts files. Signed-off-by: Furkan Akkiz <hasanfurkan.akkiz@analog.com>
This commit is contained in:
parent
1b194393ce
commit
f42568ca7b
9 changed files with 710 additions and 1 deletions
|
@ -6,5 +6,6 @@ zephyr_include_directories(common)
|
|||
zephyr_sources(soc.c)
|
||||
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_FLASH_MAX32 SECTIONS flash.ld)
|
||||
zephyr_linker_sources_ifdef(CONFIG_SOC_MAX78002 SECTIONS max78002.ld)
|
||||
|
||||
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
|
||||
|
|
|
@ -37,6 +37,9 @@ config SOC_MAX32680
|
|||
config SOC_MAX32690
|
||||
select CPU_CORTEX_M4
|
||||
|
||||
config SOC_MAX78002_M4
|
||||
select CPU_CORTEX_M4
|
||||
|
||||
if SOC_FAMILY_MAX32
|
||||
|
||||
config MAX32_ON_ENTER_CPU_IDLE_HOOK
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
if SOC_FAMILY_MAX32
|
||||
|
||||
rsource "Kconfig.defconfig.max32*"
|
||||
rsource "Kconfig.defconfig.max*"
|
||||
|
||||
config SRAM_VECTOR_TABLE
|
||||
default y
|
||||
|
|
14
soc/adi/max32/Kconfig.defconfig.max78002
Normal file
14
soc/adi/max32/Kconfig.defconfig.max78002
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Analog Devices MAX78002 MCU
|
||||
|
||||
# Copyright (c) 2024 Analog Devices, Inc.
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_MAX78002
|
||||
|
||||
config SYS_CLOCK_HW_CYCLES_PER_SEC
|
||||
default $(dt_node_int_prop_int,/clocks/clk_ipo,clock-frequency)
|
||||
|
||||
config NUM_IRQS
|
||||
default 105
|
||||
|
||||
endif # SOC_MAX78002
|
|
@ -57,6 +57,14 @@ config SOC_MAX32690_M4
|
|||
bool
|
||||
select SOC_MAX32690
|
||||
|
||||
config SOC_MAX78002
|
||||
bool
|
||||
select SOC_FAMILY_MAX32
|
||||
|
||||
config SOC_MAX78002_M4
|
||||
bool
|
||||
select SOC_MAX78002
|
||||
|
||||
config SOC
|
||||
default "max32655" if SOC_MAX32655
|
||||
default "max32662" if SOC_MAX32662
|
||||
|
@ -66,3 +74,4 @@ config SOC
|
|||
default "max32675" if SOC_MAX32675
|
||||
default "max32680" if SOC_MAX32680
|
||||
default "max32690" if SOC_MAX32690
|
||||
default "max78002" if SOC_MAX78002
|
||||
|
|
13
soc/adi/max32/max78002.ld
Normal file
13
soc/adi/max32/max78002.ld
Normal file
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Analog Devices, Inc.
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
SECTION_PROLOGUE(.shared,, SUBALIGN(4))
|
||||
{
|
||||
_shared = .;
|
||||
*(.mailbox*)
|
||||
*(.shared*)
|
||||
_eshared = .;
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
|
@ -20,3 +20,6 @@ family:
|
|||
- name: max32690
|
||||
cpuclusters:
|
||||
- name: m4
|
||||
- name: max78002
|
||||
cpuclusters:
|
||||
- name: m4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue