From: Neal Frager <neal.frager@amd.com>
To: <u-boot@lists.denx.de>
Cc: <michal.simek@amd.com>, <ashok.reddy.soma@amd.com>,
Neal Frager <neal.frager@amd.com>
Subject: [PATCH v1 1/1] arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode
Date: Thu, 23 Mar 2023 08:25:06 +0000 [thread overview]
Message-ID: <20230323082506.31576-1-neal.frager@amd.com> (raw)
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>
---
arch/arm/mach-zynqmp/mp.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm/mach-zynqmp/mp.c b/arch/arm/mach-zynqmp/mp.c
index 4f1ed44afb..2407eaf00b 100644
--- a/arch/arm/mach-zynqmp/mp.c
+++ b/arch/arm/mach-zynqmp/mp.c
@@ -244,8 +244,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);
}
}
--
2.17.1
next reply other threads:[~2023-03-23 8:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-23 8:25 Neal Frager [this message]
2023-03-28 6:37 ` [PATCH v1 1/1] arch: arm: zynqmp: mp.c: tcminit halt both cores in split mode Michal Simek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230323082506.31576-1-neal.frager@amd.com \
--to=neal.frager@amd.com \
--cc=ashok.reddy.soma@amd.com \
--cc=michal.simek@amd.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.