omap4-restart.c 652 B

1234567891011121314151617181920212223
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * omap4-restart.c - Common to OMAP4 and OMAP5
  4. */
  5. #include <linux/types.h>
  6. #include <linux/reboot.h>
  7. #include "common.h"
  8. #include "prm.h"
  9. /**
  10. * omap44xx_restart - trigger a software restart of the SoC
  11. * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
  12. * @cmd: passed from the userspace program rebooting the system (if provided)
  13. *
  14. * Resets the SoC. For @cmd, see the 'reboot' syscall in
  15. * kernel/sys.c. No return value.
  16. */
  17. void omap44xx_restart(enum reboot_mode mode, const char *cmd)
  18. {
  19. /* XXX Should save 'cmd' into scratchpad for use after reboot */
  20. omap_prm_reset_system();
  21. }