reset.c (e5570bbc9c06634cfac94e06ac1432b53d8595e5) | reset.c (271a74fc875210d3dfcc03d557fb5d86d3990a0f) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation. 5 */ 6#include <linux/kernel.h> 7#include <linux/module.h> 8#include <linux/delay.h> --- 67 unchanged lines hidden (view full) --- 76static void do_hw_reset(void) 77{ 78 /* Initialize the watchdog and let it fire */ 79 OWER = OWER_WME; 80 OSSR = OSSR_M3; 81 OSMR3 = OSCR + 368640; /* ... in 100 ms */ 82} 83 | 1/* 2 * This program is free software; you can redistribute it and/or modify 3 * it under the terms of the GNU General Public License version 2 as 4 * published by the Free Software Foundation. 5 */ 6#include <linux/kernel.h> 7#include <linux/module.h> 8#include <linux/delay.h> --- 67 unchanged lines hidden (view full) --- 76static void do_hw_reset(void) 77{ 78 /* Initialize the watchdog and let it fire */ 79 OWER = OWER_WME; 80 OSSR = OSSR_M3; 81 OSMR3 = OSCR + 368640; /* ... in 100 ms */ 82} 83 |
84void arch_reset(char mode, const char *cmd) | 84void pxa_restart(char mode, const char *cmd) |
85{ | 85{ |
86 local_irq_disable(); 87 local_fiq_disable(); 88 |
|
86 clear_reset_status(RESET_STATUS_ALL); 87 88 switch (mode) { 89 case 's': 90 /* Jump into ROM at address 0 */ 91 soft_restart(0); 92 break; 93 case 'g': 94 do_gpio_reset(); 95 break; 96 case 'h': 97 default: 98 do_hw_reset(); 99 break; 100 } 101} 102 | 89 clear_reset_status(RESET_STATUS_ALL); 90 91 switch (mode) { 92 case 's': 93 /* Jump into ROM at address 0 */ 94 soft_restart(0); 95 break; 96 case 'g': 97 do_gpio_reset(); 98 break; 99 case 'h': 100 default: 101 do_hw_reset(); 102 break; 103 } 104} 105 |