diff options
Diffstat (limited to 'firmware/export/pp5002.h')
-rw-r--r-- | firmware/export/pp5002.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/firmware/export/pp5002.h b/firmware/export/pp5002.h index 6076703f1a..8882f296c3 100644 --- a/firmware/export/pp5002.h +++ b/firmware/export/pp5002.h | |||
@@ -141,14 +141,32 @@ | |||
141 | #define PP_VER3 (*(volatile unsigned long *)(0xcf004038)) | 141 | #define PP_VER3 (*(volatile unsigned long *)(0xcf004038)) |
142 | #define PP_VER4 (*(volatile unsigned long *)(0xcf00403c)) | 142 | #define PP_VER4 (*(volatile unsigned long *)(0xcf00403c)) |
143 | 143 | ||
144 | /* Processors Control */ | ||
145 | #define PROC_STAT (*(volatile unsigned long *)(0xcf004050)) | ||
144 | #define CPU_CTL (*(volatile unsigned char *)(0xcf004054)) | 146 | #define CPU_CTL (*(volatile unsigned char *)(0xcf004054)) |
145 | #define COP_CTL (*(volatile unsigned char *)(0xcf004058)) | 147 | #define COP_CTL (*(volatile unsigned char *)(0xcf004058)) |
146 | 148 | ||
149 | #define CPU_SLEEPING 0x8000 | ||
150 | #define COP_SLEEPING 0x4000 | ||
151 | #define PROC_SLEEPING(core) (0x8000 >> (core)) | ||
152 | |||
147 | #define PROC_CTL(core) ((&CPU_CTL)[(core)*4]) | 153 | #define PROC_CTL(core) ((&CPU_CTL)[(core)*4]) |
148 | 154 | ||
149 | #define PROC_SLEEP 0xca | 155 | #define PROC_SLEEP 0xca |
150 | #define PROC_WAKE 0xce | 156 | #define PROC_WAKE 0xce |
151 | 157 | ||
158 | /* Cache Control */ | ||
159 | #define CACHE_CTL (*(volatile unsigned long *)(0xcf004024)) | ||
160 | #define CACHE_RUN 0x1 | ||
161 | #define CACHE_INIT 0x2 | ||
162 | |||
163 | #define CACHE_MASK (*(volatile unsigned long *)(0xf000f020)) | ||
164 | #define CACHE_OPERATION (*(volatile unsigned long *)(0xf000f024)) | ||
165 | #define CACHE_FLUSH_BASE (*(volatile unsigned long *)(0xf000c000)) | ||
166 | #define CACHE_INVALIDATE_BASE (*(volatile unsigned long *)(0xf0004000)) | ||
167 | #define CACHE_SIZE 0x2000 /* PP5002 has 8KB cache */ | ||
168 | |||
169 | #define CACHE_OP_UNKNOWN1 (1<<11) /* 0x800 */ | ||
152 | 170 | ||
153 | #define DEV_EN (*(volatile unsigned long *)(0xcf005000)) | 171 | #define DEV_EN (*(volatile unsigned long *)(0xcf005000)) |
154 | #define DEV_RS (*(volatile unsigned long *)(0xcf005030)) | 172 | #define DEV_RS (*(volatile unsigned long *)(0xcf005030)) |