Skip to content

Commit a957c92

Browse files
committed
soc: added TI MSPM0 family
added necessary soc files for TI MSPM0 family Signed-off-by: Jackson Farley <[email protected]>
1 parent 1895413 commit a957c92

File tree

16 files changed

+258
-0
lines changed

16 files changed

+258
-0
lines changed

modules/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ source "modules/Kconfig.picolibc"
3030
source "modules/Kconfig.nxp_s32"
3131
source "modules/Kconfig.silabs"
3232
source "modules/Kconfig.simplelink"
33+
source "modules/Kconfig.mspm0"
3334
source "modules/Kconfig.sof"
3435
source "modules/Kconfig.stm32"
3536
source "modules/Kconfig.syst"

modules/Kconfig.mspm0

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# MSPM0 SDK configuration
2+
3+
# Copyright (c) 2024 Texas Instruments
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config HAS_MSPM0_SDK
7+
bool

soc/ti/mspm0/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
add_subdirectory(${SOC_SERIES})

soc/ti/mspm0/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Texas Instruments MSPM0 Family
2+
# Copyright (c) 2024 Texas Instruments
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
if SOC_FAMILY_TI_MSPM0
6+
7+
rsource "*/Kconfig"
8+
9+
endif # SOC_FAMILY_TI_MSPM0

soc/ti/mspm0/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# Copyright (c) 2024 Texas Instruments
3+
4+
if SOC_FAMILY_TI_MSPM0
5+
6+
rsource "*/Kconfig.defconfig"
7+
8+
endif # SOC_FAMILY_TI_MSPM0

soc/ti/mspm0/Kconfig.soc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Texas Instruments MSPM0 Family
2+
3+
# Copyright (c) 2024 Texas Instruments
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config SOC_FAMILY_TI_MSPM0
7+
bool
8+
9+
config SOC_FAMILY
10+
default "ti_mspm0" if SOC_FAMILY_TI_MSPM0
11+
12+
rsource "*/Kconfig.soc"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
if(CONFIG_SOC_MSPM0G350X)
4+
zephyr_compile_definitions(-D__MSPM0G3507__)
5+
endif()
6+
zephyr_sources(soc.c)
7+
zephyr_include_directories(.)
8+
9+
set(SOC_LINKER_SCRIPT ${ZEPHYR_BASE}/include/zephyr/arch/arm/cortex_m/scripts/linker.ld CACHE INTERNAL "")
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# TI MSPM0G1X0X_G3X0X
2+
3+
# Copyright (c) 2024 Texas Instruments
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
config SOC_SERIES_MSPM0G1X0X_G3X0X
7+
select ARM
8+
select CPU_CORTEX_M0PLUS
9+
select CPU_CORTEX_M_HAS_VTOR
10+
select CPU_HAS_ARM_MPU
11+
select CPU_CORTEX_M_HAS_SYSTICK
12+
select BUILD_OUTPUT_BIN
13+
select BUILD_OUTPUT_HEX
14+
select HAS_MSPM0_SDK
15+
help
16+
Enable support for TI MSPM0GXXXX.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# TI MSPM0G3XXX
2+
3+
# Copyright (c) 2024 Texas Instruments
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_SERIES_MSPM0G1X0X_G3X0X
7+
8+
rsource "Kconfig.defconfig.mspm0g*"
9+
10+
endif # SOC_SERIES_MSPM0G1X0X_G3X0X
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# TI MSPM0G3507 SoC
2+
3+
# Copyright (c) 2024 Texas Instruments
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_MSPM0G350X
7+
8+
config SOC
9+
default "mspm0g350X"
10+
11+
config SYS_CLOCK_HW_CYCLES_PER_SEC
12+
default 32000000
13+
14+
config NUM_IRQS
15+
default 32
16+
17+
endif # SOC_MSPM0G350X

0 commit comments

Comments
 (0)