diff options
author | Eric Miao <eric.miao@marvell.com> | 2008-07-29 02:26:00 -0400 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2008-08-04 21:26:02 -0400 |
commit | 04fef228fb00dd79475a2313f4ba73b4fbfe2faa (patch) | |
tree | fee94286fb6b53562e1f9a3c2d6f7f20f8014346 /arch/arm/mach-pxa/generic.h | |
parent | ab277121426edca2ee0601fc6318c9467350771e (diff) |
[ARM] pxa: introduce reset_status and clear_reset_status for driver's usage
Due to the problem of reset status bits being handled by different
registers between pxa2xx and pxa3xx, introduce a global reset_status
variable, initialized by SoC-specific code and later being used by
other drivers.
And also introduce clear_reset_status(), which is used to clear the
corresponding status bits. Pass RESET_STATUS_ALL to clear all bits.
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/generic.h')
-rw-r--r-- | arch/arm/mach-pxa/generic.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/mach-pxa/generic.h b/arch/arm/mach-pxa/generic.h index 5bb7ae757831..041c048320e4 100644 --- a/arch/arm/mach-pxa/generic.h +++ b/arch/arm/mach-pxa/generic.h | |||
@@ -47,12 +47,20 @@ extern unsigned pxa27x_get_memclk_frequency_10khz(void); | |||
47 | #define pxa27x_get_memclk_frequency_10khz() (0) | 47 | #define pxa27x_get_memclk_frequency_10khz() (0) |
48 | #endif | 48 | #endif |
49 | 49 | ||
50 | #if defined(CONFIG_PXA25x) || defined(CONFIG_PXA27x) | ||
51 | extern void pxa2xx_clear_reset_status(unsigned int); | ||
52 | #else | ||
53 | static inline void pxa2xx_clear_reset_status(unsigned int mask) {} | ||
54 | #endif | ||
55 | |||
50 | #ifdef CONFIG_PXA3xx | 56 | #ifdef CONFIG_PXA3xx |
51 | extern unsigned pxa3xx_get_clk_frequency_khz(int); | 57 | extern unsigned pxa3xx_get_clk_frequency_khz(int); |
52 | extern unsigned pxa3xx_get_memclk_frequency_10khz(void); | 58 | extern unsigned pxa3xx_get_memclk_frequency_10khz(void); |
59 | extern void pxa3xx_clear_reset_status(unsigned int); | ||
53 | #else | 60 | #else |
54 | #define pxa3xx_get_clk_frequency_khz(x) (0) | 61 | #define pxa3xx_get_clk_frequency_khz(x) (0) |
55 | #define pxa3xx_get_memclk_frequency_10khz() (0) | 62 | #define pxa3xx_get_memclk_frequency_10khz() (0) |
63 | static inline void pxa3xx_clear_reset_status(unsigned int mask) {} | ||
56 | #endif | 64 | #endif |
57 | 65 | ||
58 | extern struct sysdev_class pxa_irq_sysclass; | 66 | extern struct sysdev_class pxa_irq_sysclass; |