Date:2009-10-01 08:51:40 (3 years 7 months ago)
Author:Xiangfu Liu
Commit:fb6ae84222507c1169b6e28b52a856975d461539
Message:make poweroff command work

Files: target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c (2 diffs)

Change Details

target/linux/xburst/files-2.6.31/arch/mips/jz4740/reset.c
2121
2222void jz_restart(char *command)
2323{
24    printk("Restarting after 4 ms\n");
24    printk(KERN_NOTICE "Restarting after 4 ms\n");
2525    REG_WDT_TCSR = WDT_TCSR_PRESCALE4 | WDT_TCSR_EXT_EN;
2626    REG_WDT_TCNT = 0;
2727    REG_WDT_TDR = JZ_EXTAL/1000; /* reset after 4ms */
...... 
3232
3333void jz_halt(void)
3434{
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;
3638
3739    while (1)
3840        __asm__(".set\tmips3\n\t"

Archive Download the corresponding diff file



interactive