-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iMX8M-MINI: CM4: add patch to deactivated the LMEM caches
Signed-off-by: FrancescoFerraro <[email protected]>
- Loading branch information
1 parent
252f63c
commit 95a4a13
Showing
1 changed file
with
37 additions
and
0 deletions.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
patches/0001-iMX8M-MINI-deactivated-the-LMEM-caches-to-debug-in-e.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
From ba732eb837d9e8bd7259340d85dc11f586007d94 Mon Sep 17 00:00:00 2001 | ||
From: FrancescoFerraro <[email protected]> | ||
Date: Fri, 7 Jan 2022 08:46:56 +0100 | ||
Subject: [PATCH] iMX8M-MINI: deactivated the LMEM caches to debug in external | ||
RAM on the Cortex-M4. | ||
|
||
To debug applications mapped in DDR, is mandatory to not enable LMEM | ||
caches. | ||
|
||
Signed-off-by: FrancescoFerraro <[email protected]> | ||
--- | ||
devices/MIMX8MM6/system_MIMX8MM6_cm4.c | 2 ++ | ||
1 file changed, 2 insertions(+) | ||
|
||
diff --git a/devices/MIMX8MM6/system_MIMX8MM6_cm4.c b/devices/MIMX8MM6/system_MIMX8MM6_cm4.c | ||
index 8f0f69e2..814bf1a4 100644 | ||
--- a/devices/MIMX8MM6/system_MIMX8MM6_cm4.c | ||
+++ b/devices/MIMX8MM6/system_MIMX8MM6_cm4.c | ||
@@ -160,6 +160,7 @@ void SystemInit(void) | ||
SCB->CPACR |= ((3UL << 10 * 2) | (3UL << 11 * 2)); /* set CP10, CP11 Full Access */ | ||
#endif /* ((__FPU_PRESENT == 1) && (__FPU_USED == 1)) */ | ||
|
||
+#if 0 | ||
/* Initialize Cache */ | ||
/* Enable Code Bus Cache */ | ||
/* set command to invalidate all ways, and write GO bit to initiate command */ | ||
@@ -185,6 +186,7 @@ void SystemInit(void) | ||
|
||
__ISB(); | ||
__DSB(); | ||
+#endif | ||
|
||
SystemInitHook(); | ||
} | ||
-- | ||
2.25.1 | ||
|