system-reset.h 745 B

12345678910111213141516171819202122232425262728293031
  1. /* linux/arch/arm/plat-s5p/include/plat/system-reset.h
  2. *
  3. * Copyright (c) 2010 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com
  5. *
  6. * Based on arch/arm/mach-s3c2410/include/mach/system-reset.h
  7. *
  8. * S5P - System define for arch_reset()
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2 as
  12. * published by the Free Software Foundation.
  13. */
  14. #include <plat/watchdog-reset.h>
  15. void (*s5p_reset_hook)(void);
  16. static void arch_reset(char mode, const char *cmd)
  17. {
  18. /* SWRESET support in s5p_reset_hook() */
  19. if (s5p_reset_hook)
  20. s5p_reset_hook();
  21. /* Perform reset using Watchdog reset
  22. * if there is no s5p_reset_hook()
  23. */
  24. arch_wdt_reset();
  25. }