diff options
author | Sekhar Nori <nsekhar@ti.com> | 2009-11-16 06:51:35 -0500 |
---|---|---|
committer | Kevin Hilman <khilman@deeprootsystems.com> | 2010-02-04 16:29:36 -0500 |
commit | c94fa15ba2d736af786ac1e56686d41987b1aba0 (patch) | |
tree | fa3143cd1ea6029180ee3a69359c05aea9481558 | |
parent | 7ec4b24326ec9b0467ab23b0417ec6b63e8e5524 (diff) |
davinci: move PSC register definitions from psc.c to psc.h
The motivation behind the change is to use the same
definitions in the assembly code responsible for
suspending the SoC, a part of which is to clock gate
the DDR2 clock.
Note that the assembly code cannot invoke the C function
meant for this. The main reason being that stack in DDR2
cannot be accessed while DDR2 clock is being clock gated.
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
-rw-r--r-- | arch/arm/mach-davinci/include/mach/psc.h | 11 | ||||
-rw-r--r-- | arch/arm/mach-davinci/psc.c | 11 |
2 files changed, 11 insertions, 11 deletions
diff --git a/arch/arm/mach-davinci/include/mach/psc.h b/arch/arm/mach-davinci/include/mach/psc.h index 171173c1dbad..2776b2356594 100644 --- a/arch/arm/mach-davinci/include/mach/psc.h +++ b/arch/arm/mach-davinci/include/mach/psc.h | |||
@@ -180,6 +180,17 @@ | |||
180 | #define DA8XX_LPSC1_CR_P3_SS 26 | 180 | #define DA8XX_LPSC1_CR_P3_SS 26 |
181 | #define DA8XX_LPSC1_L3_CBA_RAM 31 | 181 | #define DA8XX_LPSC1_L3_CBA_RAM 31 |
182 | 182 | ||
183 | /* PSC register offsets */ | ||
184 | #define EPCPR 0x070 | ||
185 | #define PTCMD 0x120 | ||
186 | #define PTSTAT 0x128 | ||
187 | #define PDSTAT 0x200 | ||
188 | #define PDCTL1 0x304 | ||
189 | #define MDSTAT 0x800 | ||
190 | #define MDCTL 0xA00 | ||
191 | |||
192 | #define MDSTAT_STATE_MASK 0x1f | ||
193 | |||
183 | extern int davinci_psc_is_clk_active(unsigned int ctlr, unsigned int id); | 194 | extern int davinci_psc_is_clk_active(unsigned int ctlr, unsigned int id); |
184 | extern void davinci_psc_config(unsigned int domain, unsigned int ctlr, | 195 | extern void davinci_psc_config(unsigned int domain, unsigned int ctlr, |
185 | unsigned int id, char enable); | 196 | unsigned int id, char enable); |
diff --git a/arch/arm/mach-davinci/psc.c b/arch/arm/mach-davinci/psc.c index 04a3cb72c5ab..adf6b5c7f1e5 100644 --- a/arch/arm/mach-davinci/psc.c +++ b/arch/arm/mach-davinci/psc.c | |||
@@ -25,17 +25,6 @@ | |||
25 | #include <mach/cputype.h> | 25 | #include <mach/cputype.h> |
26 | #include <mach/psc.h> | 26 | #include <mach/psc.h> |
27 | 27 | ||
28 | /* PSC register offsets */ | ||
29 | #define EPCPR 0x070 | ||
30 | #define PTCMD 0x120 | ||
31 | #define PTSTAT 0x128 | ||
32 | #define PDSTAT 0x200 | ||
33 | #define PDCTL1 0x304 | ||
34 | #define MDSTAT 0x800 | ||
35 | #define MDCTL 0xA00 | ||
36 | |||
37 | #define MDSTAT_STATE_MASK 0x1f | ||
38 | |||
39 | /* Return nonzero iff the domain's clock is active */ | 28 | /* Return nonzero iff the domain's clock is active */ |
40 | int __init davinci_psc_is_clk_active(unsigned int ctlr, unsigned int id) | 29 | int __init davinci_psc_is_clk_active(unsigned int ctlr, unsigned int id) |
41 | { | 30 | { |