Go to the documentation of this file.
11 #include <linux/errno.h>
12 #include <linux/time.h>
21 #include <asm/watchdog.h>
23 #define INTR_OFFSET 0x600
25 #define STBCR 0xffffff82
26 #define STBCR2 0xffffff88
28 #define STBCR_STBY 0x80
29 #define STBCR_MSTP2 0x04
31 #define MCR 0xffffff68
32 #define RTCNT 0xffffff70
40 static void pm_enter(
void)
49 csr = sh_wdt_read_csr();
51 csr |= WTCSR_CKS_4096;
52 sh_wdt_write_csr(csr);
53 csr = sh_wdt_read_csr();
70 asm volatile(
"stc vbr, %0" :
"=r" (vbr_old));
75 asm volatile(
"ldc %0, vbr" : :
"r" (vbr_new));
82 asm volatile(
"ldc %0, vbr" : :
"r" (vbr_old));
102 #ifdef CONFIG_HD64461_ENABLER
107 #ifdef CONFIG_HD64461_ENABLER
135 #ifdef CONFIG_HD64461_ENABLER
148 .enter = hp6x0_pm_enter,
152 static int __init hp6x0_pm_init(
void)