This function demonstrates the APU subsystem performing a self restart.
The APU subsystem in this design includes the PS peripherals needed to run Linux and a simple PL design in the Baseline hardware design.
To perform subsystem restart from Linux, write subsystem to shutdown_scope sysfs file. A reboot command anytime after this, will perform the subsystem restart.
echo subsystem > /sys/devices/platform/firmware:versal-firmware/shutdown_scope
Other possible value for the shutdown_scope is system(default), which will do full system restart on next reboot.
The scope can be read back by cat command. The selected scope is indicated by square brackets [ ]. e.g. [subsystem] ps_only system