Go to the documentation of this file.
13 #ifndef __ASM_SH_WATCHDOG_H
14 #define __ASM_SH_WATCHDOG_H
17 #include <linux/types.h>
20 #define WTCNT_HIGH 0x5a
21 #define WTCSR_HIGH 0xa5
23 #define WTCSR_CKS2 0x04
24 #define WTCSR_CKS1 0x02
25 #define WTCSR_CKS0 0x01
27 #include <cpu/watchdog.h>
33 # define WTCNT_R WTCNT
37 # define WTCSR_R WTCSR
57 #define WTCSR_CKS_32 0x00
58 #define WTCSR_CKS_64 0x01
59 #define WTCSR_CKS_128 0x02
60 #define WTCSR_CKS_256 0x03
61 #define WTCSR_CKS_512 0x04
62 #define WTCSR_CKS_1024 0x05
63 #define WTCSR_CKS_2048 0x06
64 #define WTCSR_CKS_4096 0x07
66 #if defined(CONFIG_CPU_SUBTYPE_SH7785) || defined(CONFIG_CPU_SUBTYPE_SH7780)
71 static inline __u32 sh_wdt_read_cnt(
void)
83 static inline void sh_wdt_write_cnt(
__u32 val)
95 static inline void sh_wdt_write_bst(
__u32 val)
104 static inline __u32 sh_wdt_read_csr(
void)
116 static inline void sh_wdt_write_csr(
__u32 val)
125 static inline __u8 sh_wdt_read_cnt(
void)
137 static inline void sh_wdt_write_cnt(
__u8 val)
147 static inline __u8 sh_wdt_read_csr(
void)
159 static inline void sh_wdt_write_csr(
__u8 val)