soc: arm: mps2: Fix SoC Kconfig naming
Fixes the Kconfig name of this so that it matches the value from soc.yml, this has not been deprecated because this SoC is a virtual SoC used only with the boards in zephyr meaning it should not cause any breakage of out-of-tree boards Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
This commit is contained in:
committed by
Fabio Baltieri
parent
bf5460b661
commit
13bcf52b29
@@ -3,10 +3,10 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_MPS2
|
||||
select SOC_MPS2_AN383 if BOARD_MPS2_AN383
|
||||
select SOC_MPS2_AN385 if BOARD_MPS2_AN385
|
||||
select SOC_MPS2_AN386 if BOARD_MPS2_AN386
|
||||
select SOC_MPS2_AN500 if BOARD_MPS2_AN500
|
||||
select SOC_MPS2_AN521_CPU0 if BOARD_MPS2_AN521_CPU0
|
||||
select SOC_MPS2_AN521_CPU0 if BOARD_MPS2_AN521_CPU0_NS
|
||||
select SOC_MPS2_AN521_CPU1 if BOARD_MPS2_AN521_CPU1
|
||||
select SOC_AN383 if BOARD_MPS2_AN383
|
||||
select SOC_AN385 if BOARD_MPS2_AN385
|
||||
select SOC_AN386 if BOARD_MPS2_AN386
|
||||
select SOC_AN500 if BOARD_MPS2_AN500
|
||||
select SOC_AN521_CPU0 if BOARD_MPS2_AN521_CPU0
|
||||
select SOC_AN521_CPU0 if BOARD_MPS2_AN521_CPU0_NS
|
||||
select SOC_AN521_CPU1 if BOARD_MPS2_AN521_CPU1
|
||||
|
||||
@@ -55,7 +55,7 @@ static uint32_t ipc_virtio_get_features(struct virtio_device *dev)
|
||||
|
||||
static void ipc_virtio_notify(struct virtqueue *vq)
|
||||
{
|
||||
#if defined(CONFIG_SOC_MPS2_AN521) || \
|
||||
#if defined(CONFIG_SOC_AN521) || \
|
||||
defined(CONFIG_SOC_MUSCA_B1)
|
||||
uint32_t current_core = sse_200_platform_get_cpu_id();
|
||||
|
||||
@@ -64,7 +64,7 @@ static void ipc_virtio_notify(struct virtqueue *vq)
|
||||
uint32_t dummy_data = 0x00110011; /* Some data must be provided */
|
||||
|
||||
ipm_send(ipm_handle, 0, 0, &dummy_data, sizeof(dummy_data));
|
||||
#endif /* #if defined(CONFIG_SOC_MPS2_AN521) */
|
||||
#endif /* #if defined(CONFIG_SOC_AN521) */
|
||||
}
|
||||
|
||||
struct virtio_dispatch dispatch = {
|
||||
|
||||
@@ -65,7 +65,7 @@ static void ipc_virtio_set_features(struct virtio_device *dev, uint32_t features
|
||||
|
||||
static void ipc_virtio_notify(struct virtqueue *vq)
|
||||
{
|
||||
#if defined(CONFIG_SOC_MPS2_AN521) || \
|
||||
#if defined(CONFIG_SOC_AN521) || \
|
||||
defined(CONFIG_SOC_MUSCA_B1)
|
||||
uint32_t current_core = sse_200_platform_get_cpu_id();
|
||||
|
||||
@@ -74,7 +74,7 @@ static void ipc_virtio_notify(struct virtqueue *vq)
|
||||
uint32_t dummy_data = 0x55005500; /* Some data must be provided */
|
||||
|
||||
ipm_send(ipm_handle, 0, 0, &dummy_data, sizeof(dummy_data));
|
||||
#endif /* #if defined(CONFIG_SOC_MPS2_AN521) */
|
||||
#endif /* #if defined(CONFIG_SOC_AN521) */
|
||||
}
|
||||
|
||||
struct virtio_dispatch dispatch = {
|
||||
@@ -253,11 +253,11 @@ int main(void)
|
||||
app_task,
|
||||
NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT);
|
||||
|
||||
#if defined(CONFIG_SOC_MPS2_AN521) || \
|
||||
#if defined(CONFIG_SOC_AN521) || \
|
||||
defined(CONFIG_SOC_MUSCA_B1)
|
||||
wakeup_cpu1();
|
||||
k_msleep(500);
|
||||
#endif /* #if defined(CONFIG_SOC_MPS2_AN521) */
|
||||
#endif /* #if defined(CONFIG_SOC_AN521) */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -88,10 +88,10 @@ int main(void)
|
||||
k_thread_create(&thread_data, thread_stack, CONFIG_MAIN_APP_TASK_STACK_SIZE, app_task,
|
||||
NULL, NULL, NULL, K_PRIO_COOP(7), 0, K_NO_WAIT);
|
||||
|
||||
#if defined(CONFIG_SOC_MPS2_AN521) || defined(CONFIG_SOC_MUSCA_B1)
|
||||
#if defined(CONFIG_SOC_AN521) || defined(CONFIG_SOC_MUSCA_B1)
|
||||
wakeup_cpu1();
|
||||
k_msleep(500);
|
||||
#endif /* #if defined(CONFIG_SOC_MPS2_AN521) */
|
||||
#endif /* #if defined(CONFIG_SOC_AN521) */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -6,32 +6,32 @@ config SOC_SERIES_MPS2
|
||||
select ARM
|
||||
select GPIO_MMIO32 if GPIO
|
||||
|
||||
config SOC_MPS2_AN521
|
||||
config SOC_AN521
|
||||
select CPU_CORTEX_M33
|
||||
select CPU_HAS_ARM_MPU
|
||||
|
||||
config SOC_MPS2_AN383
|
||||
config SOC_AN383
|
||||
select CPU_CORTEX_M0PLUS
|
||||
select CPU_HAS_ARM_MPU
|
||||
select CPU_CORTEX_M_HAS_SYSTICK
|
||||
select CPU_CORTEX_M_HAS_VTOR
|
||||
|
||||
config SOC_MPS2_AN385
|
||||
config SOC_AN385
|
||||
select CPU_CORTEX_M3
|
||||
select CPU_HAS_ARM_MPU
|
||||
|
||||
config SOC_MPS2_AN386
|
||||
config SOC_AN386
|
||||
select CPU_CORTEX_M4
|
||||
select CPU_HAS_ARM_MPU
|
||||
select CPU_HAS_VFP
|
||||
|
||||
config SOC_MPS2_AN500
|
||||
config SOC_AN500
|
||||
select CPU_CORTEX_M7
|
||||
select CPU_HAS_ARM_MPU
|
||||
|
||||
config SOC_MPS2_AN521_CPU0
|
||||
config SOC_AN521_CPU0
|
||||
select CPU_HAS_ARM_SAU
|
||||
|
||||
config SOC_MPS2_AN521_CPU1
|
||||
config SOC_AN521_CPU1
|
||||
select CPU_HAS_FPU
|
||||
select ARMV8_M_DSP
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_MPS2_AN383
|
||||
if SOC_AN383
|
||||
|
||||
config NUM_IRQS
|
||||
default 32
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2017 Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_MPS2_AN385
|
||||
if SOC_AN385
|
||||
|
||||
config NUM_IRQS
|
||||
default 32
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_MPS2_AN386
|
||||
if SOC_AN386
|
||||
|
||||
config NUM_IRQS
|
||||
default 32
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright 2024 Arm Limited and/or its affiliates <open-source-office@arm.com>
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_MPS2_AN500
|
||||
if SOC_AN500
|
||||
|
||||
config NUM_IRQS
|
||||
default 32
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2018-2019 Linaro Limited
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
if SOC_MPS2_AN521
|
||||
if SOC_AN521
|
||||
|
||||
config NUM_IRQS
|
||||
default 96
|
||||
|
||||
@@ -8,43 +8,43 @@ config SOC_SERIES_MPS2
|
||||
help
|
||||
Enable support for ARM MPS2 MCU Series
|
||||
|
||||
config SOC_MPS2_AN383
|
||||
config SOC_AN383
|
||||
bool
|
||||
select SOC_SERIES_MPS2
|
||||
help
|
||||
ARM Cortex-M0+ SMM on V2M-MPS2 (Application Note AN383)
|
||||
|
||||
config SOC_MPS2_AN385
|
||||
config SOC_AN385
|
||||
bool
|
||||
select SOC_SERIES_MPS2
|
||||
help
|
||||
ARM Cortex-M3 SMM on V2M-MPS2 (Application Note AN385)
|
||||
|
||||
config SOC_MPS2_AN386
|
||||
config SOC_AN386
|
||||
bool
|
||||
select SOC_SERIES_MPS2
|
||||
help
|
||||
ARM Cortex-M4 SMM on V2M-MPS2 (Application Note AN386)
|
||||
|
||||
config SOC_MPS2_AN500
|
||||
config SOC_AN500
|
||||
bool
|
||||
select SOC_SERIES_MPS2
|
||||
help
|
||||
ARM Cortex-M7 SMM on V2M-MPS2+ (Application Note AN500)
|
||||
|
||||
config SOC_MPS2_AN521
|
||||
config SOC_AN521
|
||||
bool
|
||||
select SOC_SERIES_MPS2
|
||||
|
||||
config SOC_MPS2_AN521_CPU0
|
||||
config SOC_AN521_CPU0
|
||||
bool
|
||||
select SOC_MPS2_AN521
|
||||
select SOC_AN521
|
||||
help
|
||||
ARM Cortex-M33 SMM-SSE-200 on V2M-MPS2+ (AN521) CPU0
|
||||
|
||||
config SOC_MPS2_AN521_CPU1
|
||||
config SOC_AN521_CPU1
|
||||
bool
|
||||
select SOC_MPS2_AN521
|
||||
select SOC_AN521
|
||||
help
|
||||
ARM Cortex-M33 SMM-SSE-200 on V2M-MPS2+ (AN521) CPU1
|
||||
|
||||
@@ -52,8 +52,8 @@ config SOC_SERIES
|
||||
default "mps2" if SOC_SERIES_MPS2
|
||||
|
||||
config SOC
|
||||
default "an383" if SOC_MPS2_AN383
|
||||
default "an385" if SOC_MPS2_AN385
|
||||
default "an386" if SOC_MPS2_AN386
|
||||
default "an500" if SOC_MPS2_AN500
|
||||
default "an521" if SOC_MPS2_AN521
|
||||
default "an383" if SOC_AN383
|
||||
default "an385" if SOC_AN385
|
||||
default "an386" if SOC_AN386
|
||||
default "an500" if SOC_AN500
|
||||
default "an521" if SOC_AN521
|
||||
|
||||
@@ -105,7 +105,7 @@ static void ipc_virtio_notify(struct virtqueue *vq)
|
||||
status = ipm_send(ipm_tx_handle, 0, 0, NULL, 0);
|
||||
#elif defined(CONFIG_RPMSG_SERVICE_SINGLE_IPM_SUPPORT)
|
||||
|
||||
#if defined(CONFIG_SOC_MPS2_AN521) || \
|
||||
#if defined(CONFIG_SOC_AN521) || \
|
||||
defined(CONFIG_SOC_MUSCA_B1)
|
||||
uint32_t current_core = sse_200_platform_get_cpu_id();
|
||||
|
||||
@@ -123,7 +123,7 @@ static void ipc_virtio_notify(struct virtqueue *vq)
|
||||
uint32_t dummy_data = 0x55005500;
|
||||
|
||||
status = ipm_send(ipm_handle, 0, 0, &dummy_data, sizeof(dummy_data));
|
||||
#endif /* #if defined(CONFIG_SOC_MPS2_AN521) */
|
||||
#endif /* #if defined(CONFIG_SOC_AN521) */
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -2,4 +2,4 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config BOARD_MPS2
|
||||
select SOC_MPS2_AN521_CPUTEST if BOARD_MPS2_AN521_CPUTEST
|
||||
select SOC_AN521_CPUTEST if BOARD_MPS2_AN521_CPUTEST
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Copyright (c) 2024, Nordic Semiconductor ASA
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
config SOC_MPS2_AN521_CPUTEST
|
||||
config SOC_AN521_CPUTEST
|
||||
bool
|
||||
select SOC_MPS2_AN521
|
||||
select SOC_AN521
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
#define BASE_BOARD_CONFIG 0
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_SOC_MPS2_AN521_CPUTEST
|
||||
#ifdef CONFIG_SOC_AN521_CPUTEST
|
||||
#define EXTENDED_SOC 1
|
||||
#else
|
||||
#define EXTENDED_SOC 0
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
* platform, with workarounds.
|
||||
*/
|
||||
|
||||
#if defined(CONFIG_SOC_MPS2_AN521) && defined(CONFIG_QEMU_TARGET)
|
||||
#if defined(CONFIG_SOC_AN521) && defined(CONFIG_QEMU_TARGET)
|
||||
/* mps2/an521 blows up if allowed to link into large area, even though
|
||||
* the link is successful and it claims the memory is there. We get
|
||||
* hard faults on boot in qemu before entry to cstart() once MEMSZ is
|
||||
|
||||
Reference in New Issue
Block a user