projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
177e506
)
arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode
author
Neal Frager
<neal.frager@amd.com>
Thu, 23 Mar 2023 08:25:06 +0000
(08:25 +0000)
committer
Michal Simek
<michal.simek@amd.com>
Mon, 15 May 2023 07:32:49 +0000
(09:32 +0200)
The "zynqmp tcminit split" command should halt both cores and not just RPU1
when configuring the TCM memory for split mode.
Signed-off-by: Neal Frager <neal.frager@amd.com>
Link:
https://lore.kernel.org/r/20230323082506.31576-1-neal.frager@amd.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
arch/arm/mach-zynqmp/mp.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-zynqmp/mp.c
b/arch/arm/mach-zynqmp/mp.c
index 2891878973e5258da1d075c9b3283df6aadd3831..d98c34ea8a5a6bcec16f913dde1b6c03e0e9588f 100644
(file)
--- a/
arch/arm/mach-zynqmp/mp.c
+++ b/
arch/arm/mach-zynqmp/mp.c
@@
-247,8
+247,10
@@
void initialize_tcm(bool mode)
release_r5_reset(ZYNQMP_CORE_RPU0, LOCK);
} else {
set_r5_tcm_mode(SPLIT);
+ set_r5_halt_mode(ZYNQMP_CORE_RPU0, HALT, SPLIT);
set_r5_halt_mode(ZYNQMP_CORE_RPU1, HALT, SPLIT);
enable_clock_r5();
+ release_r5_reset(ZYNQMP_CORE_RPU0, SPLIT);
release_r5_reset(ZYNQMP_CORE_RPU1, SPLIT);
}
}