diff options
author | dmitry pervushin <dpervushin@embeddedalley.com> | 2009-04-22 18:55:23 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-04-27 05:28:07 -0400 |
commit | e317872ac532fd845c597e55ceb5a9bceee878c1 (patch) | |
tree | d3cb40d75229448563dc5b5ea93c35d5717b7996 /arch/arm/plat-stmp3xxx/include/mach/system.h | |
parent | 07d9714365bcab286389d679f73512e35796847c (diff) |
[ARM] 5466/1: Freescale STMP platform support [5/10]
Shared (platform) headers
Signed-off-by: dmitry pervushin <dpervushin@embeddedalley.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/plat-stmp3xxx/include/mach/system.h')
-rw-r--r-- | arch/arm/plat-stmp3xxx/include/mach/system.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/arch/arm/plat-stmp3xxx/include/mach/system.h b/arch/arm/plat-stmp3xxx/include/mach/system.h new file mode 100644 index 000000000000..dac48d267148 --- /dev/null +++ b/arch/arm/plat-stmp3xxx/include/mach/system.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2005 Sigmatel Inc | ||
3 | * | ||
4 | * Copyright 2008 Freescale Semiconductor, Inc. All Rights Reserved. | ||
5 | * Copyright 2008 Embedded Alley Solutions, Inc All Rights Reserved. | ||
6 | */ | ||
7 | |||
8 | /* | ||
9 | * The code contained herein is licensed under the GNU General Public | ||
10 | * License. You may obtain a copy of the GNU General Public License | ||
11 | * Version 2 or later at the following locations: | ||
12 | * | ||
13 | * http://www.opensource.org/licenses/gpl-license.html | ||
14 | * http://www.gnu.org/copyleft/gpl.html | ||
15 | */ | ||
16 | #ifndef __ASM_ARCH_SYSTEM_H | ||
17 | #define __ASM_ARCH_SYSTEM_H | ||
18 | |||
19 | #include <asm/proc-fns.h> | ||
20 | #include <mach/regs-clkctrl.h> | ||
21 | #include <mach/regs-power.h> | ||
22 | |||
23 | static inline void arch_idle(void) | ||
24 | { | ||
25 | /* | ||
26 | * This should do all the clock switching | ||
27 | * and wait for interrupt tricks | ||
28 | */ | ||
29 | |||
30 | cpu_do_idle(); | ||
31 | } | ||
32 | |||
33 | static inline void arch_reset(char mode, const char *cmd) | ||
34 | { | ||
35 | /* Set BATTCHRG to default value */ | ||
36 | HW_POWER_CHARGE_WR(0x00010000); | ||
37 | |||
38 | /* Set MINPWR to default value */ | ||
39 | HW_POWER_MINPWR_WR(0); | ||
40 | |||
41 | /* Reset digital side of chip (but not power or RTC) */ | ||
42 | HW_CLKCTRL_RESET_WR(BM_CLKCTRL_RESET_DIG); | ||
43 | |||
44 | /* Should not return */ | ||
45 | } | ||
46 | |||
47 | #endif | ||