1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23#ifndef _DV_PSC_DEFS_H_
24#define _DV_PSC_DEFS_H_
25
26
27
28
29
30struct dv_psc_regs {
31 unsigned int pid;
32 unsigned char rsvd0[16];
33 unsigned char rsvd1[4];
34 unsigned int inteval;
35 unsigned char rsvd2[36];
36 unsigned int merrpr0;
37 unsigned int merrpr1;
38 unsigned char rsvd3[8];
39 unsigned int merrcr0;
40 unsigned int merrcr1;
41 unsigned char rsvd4[8];
42 unsigned int perrpr;
43 unsigned char rsvd5[4];
44 unsigned int perrcr;
45 unsigned char rsvd6[4];
46 unsigned int epcpr;
47 unsigned char rsvd7[4];
48 unsigned int epccr;
49 unsigned char rsvd8[144];
50 unsigned char rsvd9[20];
51 unsigned int ptcmd;
52 unsigned char rsvd10[4];
53 unsigned int ptstat;
54 unsigned char rsvd11[212];
55 unsigned int pdstat0;
56 unsigned int pdstat1;
57 unsigned char rsvd12[248];
58 unsigned int pdctl0;
59 unsigned int pdctl1;
60 unsigned char rsvd13[536];
61 unsigned int mckout0;
62 unsigned int mckout1;
63 unsigned char rsvd14[728];
64 unsigned int mdstat[52];
65 unsigned char rsvd15[304];
66 unsigned int mdctl[52];
67};
68
69
70#define EMURSTIE_MASK (0x00000200)
71
72#define PD0 (0)
73
74#define PSC_ENABLE (0x3)
75#define PSC_DISABLE (0x2)
76#define PSC_SYNCRESET (0x1)
77#define PSC_SWRSTDISABLE (0x0)
78
79#define PSC_GOSTAT (1 << 0)
80#define PSC_MD_STATE_MSK (0x1f)
81
82#define PSC_CMD_GO (1 << 0)
83
84#define dv_psc_regs ((struct dv_psc_regs *)DAVINCI_PWR_SLEEP_CNTRL_BASE)
85
86#endif
87