omap4-restart.c 840 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * omap4-restart.c - Common to OMAP4 and OMAP5
  3. *
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. */
  9. #include <linux/types.h>
  10. #include <linux/reboot.h>
  11. #include "prminst44xx.h"
  12. /**
  13. * omap44xx_restart - trigger a software restart of the SoC
  14. * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
  15. * @cmd: passed from the userspace program rebooting the system (if provided)
  16. *
  17. * Resets the SoC. For @cmd, see the 'reboot' syscall in
  18. * kernel/sys.c. No return value.
  19. */
  20. void omap44xx_restart(enum reboot_mode mode, const char *cmd)
  21. {
  22. /* XXX Should save 'cmd' into scratchpad for use after reboot */
  23. omap4_prminst_global_warm_sw_reset(); /* never returns */
  24. while (1)
  25. ;
  26. }