omap4-restart.c 802 B

123456789101112131415161718192021222324252627
  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 "prminst44xx.h"
  11. /**
  12. * omap44xx_restart - trigger a software restart of the SoC
  13. * @mode: the "reboot mode", see arch/arm/kernel/{setup,process}.c
  14. * @cmd: passed from the userspace program rebooting the system (if provided)
  15. *
  16. * Resets the SoC. For @cmd, see the 'reboot' syscall in
  17. * kernel/sys.c. No return value.
  18. */
  19. void omap44xx_restart(char mode, const char *cmd)
  20. {
  21. /* XXX Should save 'cmd' into scratchpad for use after reboot */
  22. omap4_prminst_global_warm_sw_reset(); /* never returns */
  23. while (1)
  24. ;
  25. }