diff options
author | Kukjin Kim <kgene.kim@samsung.com> | 2013-12-18 14:19:59 -0500 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-12-18 15:21:17 -0500 |
commit | 9c9239afe31f67d137ba6c45b244b509c2090567 (patch) | |
tree | e832d8ff75bf0f74f0a073f84c37158943b05463 /arch/arm/mach-exynos | |
parent | 7d8f159188410557630a7270efe3e14a1a305c2e (diff) |
ARM: EXYNOS: local definitions for pm.c into mach-exynos dir
Some of definitions in the regs-clock.h are used only for pm.c,
so this moves them into the file.
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r-- | arch/arm/mach-exynos/include/mach/regs-clock.h | 26 | ||||
-rw-r--r-- | arch/arm/mach-exynos/pm.c | 26 |
2 files changed, 25 insertions, 27 deletions
diff --git a/arch/arm/mach-exynos/include/mach/regs-clock.h b/arch/arm/mach-exynos/include/mach/regs-clock.h index 855f1b2c1fdc..5acc06e4bca8 100644 --- a/arch/arm/mach-exynos/include/mach/regs-clock.h +++ b/arch/arm/mach-exynos/include/mach/regs-clock.h | |||
@@ -18,25 +18,6 @@ | |||
18 | 18 | ||
19 | #define EXYNOS_CLKREG(x) (S5P_VA_CMU + (x)) | 19 | #define EXYNOS_CLKREG(x) (S5P_VA_CMU + (x)) |
20 | 20 | ||
21 | #define EXYNOS4_EPLL_LOCK EXYNOS_CLKREG(0x0C010) | ||
22 | #define EXYNOS4_VPLL_LOCK EXYNOS_CLKREG(0x0C020) | ||
23 | |||
24 | #define EXYNOS4_EPLL_CON0 EXYNOS_CLKREG(0x0C110) | ||
25 | #define EXYNOS4_EPLL_CON1 EXYNOS_CLKREG(0x0C114) | ||
26 | #define EXYNOS4_VPLL_CON0 EXYNOS_CLKREG(0x0C120) | ||
27 | #define EXYNOS4_VPLL_CON1 EXYNOS_CLKREG(0x0C124) | ||
28 | |||
29 | #define EXYNOS4_CLKSRC_MASK_TOP EXYNOS_CLKREG(0x0C310) | ||
30 | #define EXYNOS4_CLKSRC_MASK_CAM EXYNOS_CLKREG(0x0C320) | ||
31 | #define EXYNOS4_CLKSRC_MASK_TV EXYNOS_CLKREG(0x0C324) | ||
32 | #define EXYNOS4_CLKSRC_MASK_LCD0 EXYNOS_CLKREG(0x0C334) | ||
33 | #define EXYNOS4_CLKSRC_MASK_MAUDIO EXYNOS_CLKREG(0x0C33C) | ||
34 | #define EXYNOS4_CLKSRC_MASK_FSYS EXYNOS_CLKREG(0x0C340) | ||
35 | #define EXYNOS4_CLKSRC_MASK_PERIL0 EXYNOS_CLKREG(0x0C350) | ||
36 | #define EXYNOS4_CLKSRC_MASK_PERIL1 EXYNOS_CLKREG(0x0C354) | ||
37 | |||
38 | #define EXYNOS4_CLKSRC_MASK_DMC EXYNOS_CLKREG(0x10300) | ||
39 | |||
40 | #define EXYNOS4_CLKSRC_CPU EXYNOS_CLKREG(0x14200) | 21 | #define EXYNOS4_CLKSRC_CPU EXYNOS_CLKREG(0x14200) |
41 | #define EXYNOS4_CLKMUX_STATCPU EXYNOS_CLKREG(0x14400) | 22 | #define EXYNOS4_CLKMUX_STATCPU EXYNOS_CLKREG(0x14400) |
42 | 23 | ||
@@ -45,16 +26,9 @@ | |||
45 | #define EXYNOS4_CLKDIV_STATCPU EXYNOS_CLKREG(0x14600) | 26 | #define EXYNOS4_CLKDIV_STATCPU EXYNOS_CLKREG(0x14600) |
46 | #define EXYNOS4_CLKDIV_STATCPU1 EXYNOS_CLKREG(0x14604) | 27 | #define EXYNOS4_CLKDIV_STATCPU1 EXYNOS_CLKREG(0x14604) |
47 | 28 | ||
48 | #define EXYNOS4_EPLLCON0_LOCKED_SHIFT (29) | ||
49 | #define EXYNOS4_VPLLCON0_LOCKED_SHIFT (29) | ||
50 | |||
51 | #define EXYNOS4_CLKSRC_CPU_MUXCORE_SHIFT (16) | 29 | #define EXYNOS4_CLKSRC_CPU_MUXCORE_SHIFT (16) |
52 | #define EXYNOS4_CLKMUX_STATCPU_MUXCORE_MASK (0x7 << EXYNOS4_CLKSRC_CPU_MUXCORE_SHIFT) | 30 | #define EXYNOS4_CLKMUX_STATCPU_MUXCORE_MASK (0x7 << EXYNOS4_CLKSRC_CPU_MUXCORE_SHIFT) |
53 | 31 | ||
54 | /* Only for EXYNOS4210 */ | ||
55 | |||
56 | #define EXYNOS4210_CLKSRC_MASK_LCD1 EXYNOS_CLKREG(0x0C338) | ||
57 | |||
58 | /* For EXYNOS5250 */ | 32 | /* For EXYNOS5250 */ |
59 | 33 | ||
60 | #define EXYNOS5_APLL_LOCK EXYNOS_CLKREG(0x00000) | 34 | #define EXYNOS5_APLL_LOCK EXYNOS_CLKREG(0x00000) |
diff --git a/arch/arm/mach-exynos/pm.c b/arch/arm/mach-exynos/pm.c index 11c37c4f04fb..e00025bbbe89 100644 --- a/arch/arm/mach-exynos/pm.c +++ b/arch/arm/mach-exynos/pm.c | |||
@@ -29,12 +29,36 @@ | |||
29 | #include <plat/pll.h> | 29 | #include <plat/pll.h> |
30 | #include <plat/regs-srom.h> | 30 | #include <plat/regs-srom.h> |
31 | 31 | ||
32 | #include <mach/regs-clock.h> | 32 | #include <mach/map.h> |
33 | #include <mach/pm-core.h> | 33 | #include <mach/pm-core.h> |
34 | 34 | ||
35 | #include "common.h" | 35 | #include "common.h" |
36 | #include "regs-pmu.h" | 36 | #include "regs-pmu.h" |
37 | 37 | ||
38 | #define EXYNOS4_EPLL_LOCK (S5P_VA_CMU + 0x0C010) | ||
39 | #define EXYNOS4_VPLL_LOCK (S5P_VA_CMU + 0x0C020) | ||
40 | |||
41 | #define EXYNOS4_EPLL_CON0 (S5P_VA_CMU + 0x0C110) | ||
42 | #define EXYNOS4_EPLL_CON1 (S5P_VA_CMU + 0x0C114) | ||
43 | #define EXYNOS4_VPLL_CON0 (S5P_VA_CMU + 0x0C120) | ||
44 | #define EXYNOS4_VPLL_CON1 (S5P_VA_CMU + 0x0C124) | ||
45 | |||
46 | #define EXYNOS4_CLKSRC_MASK_TOP (S5P_VA_CMU + 0x0C310) | ||
47 | #define EXYNOS4_CLKSRC_MASK_CAM (S5P_VA_CMU + 0x0C320) | ||
48 | #define EXYNOS4_CLKSRC_MASK_TV (S5P_VA_CMU + 0x0C324) | ||
49 | #define EXYNOS4_CLKSRC_MASK_LCD0 (S5P_VA_CMU + 0x0C334) | ||
50 | #define EXYNOS4_CLKSRC_MASK_MAUDIO (S5P_VA_CMU + 0x0C33C) | ||
51 | #define EXYNOS4_CLKSRC_MASK_FSYS (S5P_VA_CMU + 0x0C340) | ||
52 | #define EXYNOS4_CLKSRC_MASK_PERIL0 (S5P_VA_CMU + 0x0C350) | ||
53 | #define EXYNOS4_CLKSRC_MASK_PERIL1 (S5P_VA_CMU + 0x0C354) | ||
54 | |||
55 | #define EXYNOS4_CLKSRC_MASK_DMC (S5P_VA_CMU + 0x10300) | ||
56 | |||
57 | #define EXYNOS4_EPLLCON0_LOCKED_SHIFT (29) | ||
58 | #define EXYNOS4_VPLLCON0_LOCKED_SHIFT (29) | ||
59 | |||
60 | #define EXYNOS4210_CLKSRC_MASK_LCD1 (S5P_VA_CMU + 0x0C338) | ||
61 | |||
38 | static const struct sleep_save exynos4_set_clksrc[] = { | 62 | static const struct sleep_save exynos4_set_clksrc[] = { |
39 | { .reg = EXYNOS4_CLKSRC_MASK_TOP , .val = 0x00000001, }, | 63 | { .reg = EXYNOS4_CLKSRC_MASK_TOP , .val = 0x00000001, }, |
40 | { .reg = EXYNOS4_CLKSRC_MASK_CAM , .val = 0x11111111, }, | 64 | { .reg = EXYNOS4_CLKSRC_MASK_CAM , .val = 0x11111111, }, |