18ffcdcf74
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>
29 lines
484 B
Plaintext
29 lines
484 B
Plaintext
/*
|
|
* Copyright (c) 2018 Linaro Limited
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
#include <mem.h>
|
|
#include <st/f4/stm32f407.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(128)>;
|
|
};
|
|
|
|
soc {
|
|
flash-controller@40023c00 {
|
|
flash0: flash@8000000 {
|
|
reg = <0x08000000 DT_SIZE_K(1024)>;
|
|
};
|
|
};
|
|
};
|
|
};
|