Skip to content

Commit ae59665

Browse files
parthitcenashif
authored andcommitted
soc: ti/mspm0: move flash config to common defconfig
Flash size and address is extracted from dts, which will be common for all the upcoming series of SoC's like MSPM0L, MSPM0C. Move the flash address and size to soc level defconfig. Signed-off-by: Parthiban Nallathambi <[email protected]>
1 parent b4d0082 commit ae59665

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

soc/ti/mspm0/Kconfig.defconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ if SOC_FAMILY_TI_MSPM0
66

77
rsource "*/Kconfig.defconfig"
88

9+
DT_CHOSEN_Z_FLASH := zephyr,flash
10+
11+
config FLASH_SIZE
12+
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0,K)
13+
14+
config FLASH_BASE_ADDRESS
15+
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
16+
917
DT_MSPM0_MCLK_PATH := $(dt_nodelabel_path,mclk)
1018
DT_MSPM0_MCLK_CPU_FREQ := $(dt_node_int_prop_int,$(DT_MSPM0_MCLK_PATH),clock-frequency)
1119

soc/ti/mspm0/mspm0g/Kconfig.defconfig

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,6 @@
44
# Copyright (c) 2025 Linumiz
55
# SPDX-License-Identifier: Apache-2.0
66

7-
DT_CHOSEN_Z_FLASH := zephyr,flash
8-
9-
config FLASH_SIZE
10-
default $(dt_chosen_reg_size_int,$(DT_CHOSEN_Z_FLASH),0,K)
11-
12-
config FLASH_BASE_ADDRESS
13-
default $(dt_chosen_reg_addr_hex,$(DT_CHOSEN_Z_FLASH))
14-
157
if SOC_SERIES_MSPM0G
168

179
config NUM_IRQS

0 commit comments

Comments
 (0)