zephyr/boards/arc/nsim/nsim-flash-sram-mem.dtsi
Nikolay Agishev 6e215ce6af boards: nsim_hs: Add separate config for XIP memory organization
Add XIP support with MWDT toolchain. To have it proper tested
add separate nsim platforms for XIP (flash + sram) and
non-XIP (sram) memory organization in addition to existing
nsim_hs platfor with CCMs (ICCM + DCCM) memory organization.

This PR also enables MPU for all nsim hs3x based platforms
(like we previously enabled it for qemu_arc_hs) to have proper
memory regions permissions.

Signed-off-by: Nikolay Agishev <agishev@synopsys.com>
2022-11-16 11:18:51 +01:00

30 lines
552 B
Plaintext

/*
* Copyright (c) 2022, Synopsys, Inc. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "skeleton.dtsi"
#include <mem.h>
#define DT_FLASH_SIZE DT_SIZE_M(4)
#define DT_SRAM_SIZE DT_SIZE_M(4)
/ {
/* We are carving out of DRAM for a pseudo flash and sram region */
flash0: flash@80000000 {
compatible = "soc-nv-flash";
reg = <0x80000000 DT_FLASH_SIZE>;
};
sram0: sram@80400000 {
device_type = "memory";
reg = <0x80400000 DT_SRAM_SIZE>;
};
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
};
};