Introduce a new "zephyr,memory-region" compatible to be used when a new memory region must be created in the linker script from the devicetree nodes using the compatible. Remove also the LINKER_DT_REGION_FROM_NODE macro and add a new LINKER_DT_REGIONS macro to cycle through all the compatible regions. In the same PR modify the DTS files and the linker scripts. Signed-off-by: Carlo Caione <ccaione@baylibre.com>
28 lines
515 B
Text
28 lines
515 B
Text
/*
|
|
* Copyright (c) 2019, Markus Fuchs <markus.fuchs@de.sauter-bc.com>
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <mem.h>
|
|
#include <st/f4/stm32f437.dtsi>
|
|
|
|
/ {
|
|
ccm0: memory@10000000 {
|
|
compatible = "zephyr,memory-region", "st,stm32-ccm";
|
|
reg = <0x10000000 DT_SIZE_K(64)>;
|
|
zephyr,memory-region = "CCM";
|
|
};
|
|
|
|
sram0: memory@20000000 {
|
|
reg = <0x20000000 DT_SIZE_K(192)>;
|
|
};
|
|
|
|
soc {
|
|
flash-controller@40023c00 {
|
|
flash0: flash@8000000 {
|
|
reg = <0x08000000 DT_SIZE_K(2048)>;
|
|
};
|
|
};
|
|
};
|
|
};
|