Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
6e886a47
Commit
6e886a47
authored
Jan 12, 2021
by
Madhukar Pappireddy
Committed by
TrustedFirmware Code Review
Jan 12, 2021
Browse files
Merge "zynqmp: pm: Add support for PS and system reset on WDT restart" into integration
parents
1f64caea
0a67923b
Changes
2
Hide whitespace changes
Inline
Side-by-side
plat/xilinx/zynqmp/include/zynqmp_def.h
View file @
6e886a47
...
...
@@ -345,6 +345,9 @@
#define PMU_GLOBAL_GEN_STORAGE4 (GGS_BASEADDR + 0x10)
/* Warm restart boot health status mask */
#define PM_BOOT_HEALTH_STATUS_MASK U(0x01)
/* WDT restart scope shift and mask */
#define RESTART_SCOPE_SHIFT (3)
#define RESTART_SCOPE_MASK (0x3U << RESTART_SCOPE_SHIFT)
/*AFI registers */
#define AFIFM6_WRCTRL U(13)
...
...
plat/xilinx/zynqmp/pm_service/pm_svc_main.c
View file @
6e886a47
...
...
@@ -142,6 +142,8 @@ static uint64_t __unused __dead2 zynqmp_sgi7_irq(uint32_t id, uint32_t flags,
void
*
handle
,
void
*
cookie
)
{
int
i
;
uint32_t
value
;
/* enter wfi and stay there */
INFO
(
"Entering wfi
\n
"
);
...
...
@@ -156,8 +158,9 @@ static uint64_t __unused __dead2 zynqmp_sgi7_irq(uint32_t id, uint32_t flags,
spin_unlock
(
&
inc_lock
);
if
(
active_cores
==
0
)
{
pm_system_shutdown
(
PMF_SHUTDOWN_TYPE_RESET
,
PMF_SHUTDOWN_SUBTYPE_SUBSYSTEM
);
pm_mmio_read
(
PMU_GLOBAL_GEN_STORAGE4
,
&
value
);
value
=
(
value
&
RESTART_SCOPE_MASK
)
>>
RESTART_SCOPE_SHIFT
;
pm_system_shutdown
(
PMF_SHUTDOWN_TYPE_RESET
,
value
);
}
/* enter wfi and stay there */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment