Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
boards: nsim: add initial support of normal/non-secure application
normal/non-secure application: nsim_sem_normal Signed-off-by: Wayne Ren <wei.ren@synopsys.com>
- Loading branch information
Showing
9 changed files
with
95 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,32 @@ | ||
/* | ||
* Copyright (c) 2018, 2019, Synopsys, Inc. All rights reserved. | ||
* Copyright (c) 2018, Synopsys, Inc. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
|
||
/dts-v1/; | ||
|
||
#include "nsim_em.dtsi" | ||
|
||
/ { | ||
model = "snps,nsim_sem"; | ||
|
||
model = "nsim_sem"; | ||
compatible = "snps,nsim_sem"; | ||
}; | ||
|
||
&cpu0 { | ||
clock-frequency = <5000000>; | ||
iccm0: iccm@0 { | ||
device_type = "memory"; | ||
compatible = "arc,iccm"; | ||
reg = <0x0 0x40000>; | ||
}; | ||
|
||
dccm0: dccm@80000000 { | ||
device_type = "memory"; | ||
compatible = "arc,dccm"; | ||
reg = <0x80000000 0x40000>; | ||
}; | ||
|
||
chosen { | ||
zephyr,sram = &dccm0; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright (c) 2018, Synopsys, Inc. All rights reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
|
||
#include <mem.h> | ||
#include "nsim_em.dtsi" | ||
|
||
/ { | ||
|
||
model = "nsim_sem_normal"; | ||
compatible = "snps,nsim_sem_normal"; | ||
|
||
iccm0: iccm@0 { | ||
device_type = "memory"; | ||
compatible = "arc,iccm"; | ||
reg = <0x40000 DT_SIZE_K(256)>; | ||
}; | ||
|
||
dccm0: dccm@80000000 { | ||
device_type = "memory"; | ||
compatible = "arc,dccm"; | ||
reg = <0x80040000 DT_SIZE_K(256)>; | ||
}; | ||
|
||
chosen { | ||
zephyr,sram = &dccm0; | ||
}; | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
identifier: nsim_sem_normal | ||
name: SEM in normal mode of Nsim simulator | ||
type: mcu | ||
arch: arc | ||
simulation: nsim | ||
toolchain: | ||
- zephyr | ||
testing: | ||
ignore_tags: | ||
- net | ||
- bluetooth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CONFIG_ARC=y | ||
CONFIG_CPU_ARCEM=y | ||
CONFIG_SOC_NSIM=y | ||
CONFIG_SOC_NSIM_SEM=y | ||
CONFIG_BOARD_NSIM=y | ||
CONFIG_SYS_CLOCK_TICKS_PER_SEC=100 | ||
CONFIG_XIP=n | ||
CONFIG_BUILD_OUTPUT_BIN=n | ||
CONFIG_PRINTK=y | ||
CONFIG_ARCV2_INTERRUPT_UNIT=y | ||
CONFIG_ARCV2_TIMER=y | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
CONFIG_SERIAL=y | ||
CONFIG_ARC_EXCEPTION_DEBUG=y | ||
CONFIG_TRUSTED_EXECUTION_NONSECURE=y |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters