Skip to content

Commit

Permalink
zynq7000: Fix system reboot on pctl_get on pctl_reboot
Browse files Browse the repository at this point in the history
DONE: RTOS-940
  • Loading branch information
agkaminski committed Oct 4, 2024
1 parent d99dc74 commit bef16af
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion hal/armv7a/zynq7000/zynq.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,10 @@ int hal_platformctl(void *ptr)
break;

case pctl_reboot:
zynq_softRst();
if (data->action == pctl_set) {
zynq_softRst();
}
/* TODO add boot reason for pctl_get */
break;

case pctl_sdwpcd:
Expand Down

0 comments on commit bef16af

Please sign in to comment.