system-reset.h 717 B

1234567891011121314151617181920212223242526272829303132
  1. /* arch/arm/mach-s3c2410/include/mach/system-reset.h
  2. *
  3. * Copyright (c) 2008 Simtec Electronics
  4. * Ben Dooks <ben@simtec.co.uk>
  5. *
  6. * S3C2410 - System define for arch_reset() function
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <mach/hardware.h>
  13. #include <plat/watchdog-reset.h>
  14. extern void (*s3c24xx_reset_hook)(void);
  15. static void
  16. arch_reset(char mode, const char *cmd)
  17. {
  18. if (mode == 's') {
  19. cpu_reset(0);
  20. }
  21. if (s3c24xx_reset_hook)
  22. s3c24xx_reset_hook();
  23. arch_wdt_reset();
  24. /* we'll take a jump through zero as a poor second */
  25. cpu_reset(0);
  26. }