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 13 #include <mach/hardware.h> 14 #include <plat/watchdog-reset.h> 15 16 extern void (*s3c24xx_reset_hook)(void); 17 18 static void arch_reset(char mode,const char * cmd)19arch_reset(char mode, const char *cmd) 20 { 21 if (mode == 's') { 22 cpu_reset(0); 23 } 24 25 if (s3c24xx_reset_hook) 26 s3c24xx_reset_hook(); 27 28 arch_wdt_reset(); 29 30 /* we'll take a jump through zero as a poor second */ 31 cpu_reset(0); 32 } 33