Skip to content
Snippets Groups Projects
Commit 716ff5ce authored by Stephen Warren's avatar Stephen Warren Committed by Tom Warren
Browse files

ARM: tegra: simplify halt_avp()


In order to completely halt the AVP processor, we should simply write
FLOW_MODE_STOP without any extra options that allow wakeup. Amend the
code to do this.

I believe that enabling FIQ_1 and IRQ_1 allow the CPU to be awoken by
interrupts. We don't want this; if later SW wishes to use the AVP, it
should be reset and booted from scratch.

Related, the bits that were previously IRQ_1 and FIQ_1 have a slightly
different definition starting with Tegra114, so the values we're
writing don't entirely make sense there anyway.

Signed-off-by: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarTom Warren <twarren@nvidia.com>
parent 87fb553b
No related branches found
No related tags found
No related merge requests found
...@@ -378,8 +378,7 @@ void clock_enable_coresight(int enable) ...@@ -378,8 +378,7 @@ void clock_enable_coresight(int enable)
void halt_avp(void) void halt_avp(void)
{ {
for (;;) { for (;;) {
writel((HALT_COP_EVENT_JTAG | HALT_COP_EVENT_IRQ_1 \ writel(HALT_COP_EVENT_JTAG | (FLOW_MODE_STOP << 29),
| HALT_COP_EVENT_FIQ_1 | (FLOW_MODE_STOP<<29)), FLOW_CTLR_HALT_COP_EVENTS);
FLOW_CTLR_HALT_COP_EVENTS);
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment