boards/tests: dma: enable dma for S32Z270
Enable dma boards/test for S32Z270. The non-cacheable memory used for DMA tests (chan_blen_transfer and loop_transfer) is split from the system SRAM. Signed-off-by: Ha Duong Quang <ha.duongquang@nxp.com>
This commit is contained in:
parent
12bb3fb9b1
commit
08a4259a0a
19 changed files with 195 additions and 0 deletions
|
@ -0,0 +1,2 @@
|
|||
CONFIG_CODE_DATA_RELOCATION=y
|
||||
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAMNOCACHE"
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
|
||||
|
||||
/ {
|
||||
soc {
|
||||
sram_nocache: memory@31870000 {
|
||||
compatible = "zephyr,memory-region", "mmio-sram";
|
||||
reg = <0x31870000 DT_SIZE_K(64)>;
|
||||
zephyr,memory-region = "SRAMNOCACHE";
|
||||
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sram0 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x31780000 DT_SIZE_K(960)>;
|
||||
};
|
||||
|
||||
&edma0 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
tst_dma0: &edma0 { };
|
|
@ -0,0 +1,2 @@
|
|||
CONFIG_CODE_DATA_RELOCATION=y
|
||||
CONFIG_DMA_LOOP_TRANSFER_RELOCATE_SECTION="SRAMNOCACHE"
|
|
@ -0,0 +1,30 @@
|
|||
/*
|
||||
* Copyright 2024 NXP
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#include <zephyr/dt-bindings/memory-attr/memory-attr-arm.h>
|
||||
|
||||
/ {
|
||||
soc {
|
||||
sram_nocache: memory@35870000 {
|
||||
compatible = "zephyr,memory-region", "mmio-sram";
|
||||
reg = <0x35870000 DT_SIZE_K(64)>;
|
||||
zephyr,memory-region = "SRAMNOCACHE";
|
||||
zephyr,memory-attr = <(DT_MEM_ARM(ATTR_MPU_RAM_NOCACHE))>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&sram1 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x35780000 DT_SIZE_K(960)>;
|
||||
};
|
||||
|
||||
|
||||
&edma5 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
tst_dma0: &edma5 { };
|
Loading…
Add table
Add a link
Reference in a new issue