[U-Boot] [PATCH v1 4/4] armv8: ls1028a: enable DMA mode of SD in SPL

Yinbo Zhu yinbo.zhu at nxp.com
Mon May 6 07:11:15 UTC 2019


From: Yangbo Lu <yangbo.lu at nxp.com>

Mark BSS and Heap area of OCRAM as non-secure to perform
DMA from non-secure SD controller.

Signed-off-by: Yangbo Lu <yangbo.lu at nxp.com>
Signed-off-by: Yinbo Zhu <yinbo.zhu at nxp.com>
---
 include/configs/ls1028a_common.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h
index 10f2e88bfd..46d22154d1 100644
--- a/include/configs/ls1028a_common.h
+++ b/include/configs/ls1028a_common.h
@@ -183,6 +183,8 @@
 #define CONFIG_SYS_FSL_QSPI_BASE	0x20000000
 #define CONFIG_ENV_ADDR	CONFIG_SYS_FSL_QSPI_BASE + CONFIG_ENV_OFFSET
 #define CONFIG_ENV_SIZE			0x2000          /* 8KB */
+#define CONFIG_TZPC_OCRAM_BSS_HEAP_NS
+#define OCRAM_NONSECURE_SIZE           0x00010000
 #define CONFIG_ENV_SECT_SIZE           0x40000
 
 #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE
-- 
2.17.1



More information about the U-Boot mailing list