system-reset.h 631 B

123456789101112131415161718192021222324252627
  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. static void
  15. arch_reset(char mode, const char *cmd)
  16. {
  17. if (mode == 's') {
  18. soft_restart(0);
  19. }
  20. arch_wdt_reset();
  21. /* we'll take a jump through zero as a poor second */
  22. soft_restart(0);
  23. }