Change Details
| target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c |
| 21 | 21 | |
| 22 | 22 | void jz_restart(char *command) |
| 23 | 23 | { |
| 24 | | printk("Restarting after 4 ms\n"); |
| 24 | printk(KERN_NOTICE "Restarting after 4 ms\n"); |
| 25 | 25 | REG_WDT_TCSR = WDT_TCSR_PRESCALE4 | WDT_TCSR_EXT_EN; |
| 26 | 26 | REG_WDT_TCNT = 0; |
| 27 | 27 | REG_WDT_TDR = JZ_EXTAL/1000; /* reset after 4ms */ |
| ... | ... | |
| 32 | 32 | |
| 33 | 33 | void jz_halt(void) |
| 34 | 34 | { |
| 35 | | printk(KERN_NOTICE "\n** You can safely turn off the power\n"); |
| 35 | /* Put CPU to power down mode */ |
| 36 | while (!(REG_RTC_RCR & RTC_RCR_WRDY)); |
| 37 | REG_RTC_HCR = RTC_HCR_PD; |
| 36 | 38 | |
| 37 | 39 | while (1) |
| 38 | 40 | __asm__(".set\tmips3\n\t" |
Download the corresponding diff file