diff options
author | Tomasz Figa <t.figa@samsung.com> | 2013-04-04 00:35:32 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2013-04-04 02:51:22 -0400 |
commit | fb948f74ce05c5540f9ad7e92242e1c931f7c2f6 (patch) | |
tree | 7ca6d2d170b10cf244aa5bc5a17b7c2d17c06ffc | |
parent | b950622bddc1c15f1e17041f1aec5816912ccca5 (diff) |
clk: exynos4: Add missing registers to suspend save list
This patch adds missing clock control registers to the list of registers
that should be saved across system suspend.
Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Reviewed-by: Thomas Abraham <thomas.abraham@linaro.org>
Acked-by: Mike Turquette <mturquette@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
-rw-r--r-- | drivers/clk/samsung/clk-exynos4.c | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index a33b0acc5931..23210006785b 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c | |||
@@ -22,7 +22,11 @@ | |||
22 | 22 | ||
23 | /* Exynos4 clock controller register offsets */ | 23 | /* Exynos4 clock controller register offsets */ |
24 | #define SRC_LEFTBUS 0x4200 | 24 | #define SRC_LEFTBUS 0x4200 |
25 | #define DIV_LEFTBUS 0x4500 | ||
26 | #define GATE_IP_LEFTBUS 0x4800 | ||
25 | #define E4X12_GATE_IP_IMAGE 0x4930 | 27 | #define E4X12_GATE_IP_IMAGE 0x4930 |
28 | #define SRC_RIGHTBUS 0x8200 | ||
29 | #define DIV_RIGHTBUS 0x8500 | ||
26 | #define GATE_IP_RIGHTBUS 0x8800 | 30 | #define GATE_IP_RIGHTBUS 0x8800 |
27 | #define E4X12_GATE_IP_PERIR 0x8960 | 31 | #define E4X12_GATE_IP_PERIR 0x8960 |
28 | #define EPLL_LOCK 0xc010 | 32 | #define EPLL_LOCK 0xc010 |
@@ -48,6 +52,7 @@ | |||
48 | #define SRC_PERIL0 0xc250 | 52 | #define SRC_PERIL0 0xc250 |
49 | #define SRC_PERIL1 0xc254 | 53 | #define SRC_PERIL1 0xc254 |
50 | #define E4X12_SRC_CAM1 0xc258 | 54 | #define E4X12_SRC_CAM1 0xc258 |
55 | #define SRC_MASK_TOP 0xc310 | ||
51 | #define SRC_MASK_CAM 0xc320 | 56 | #define SRC_MASK_CAM 0xc320 |
52 | #define SRC_MASK_TV 0xc324 | 57 | #define SRC_MASK_TV 0xc324 |
53 | #define SRC_MASK_LCD0 0xc334 | 58 | #define SRC_MASK_LCD0 0xc334 |
@@ -92,12 +97,20 @@ | |||
92 | #define GATE_IP_GPS 0xc94c | 97 | #define GATE_IP_GPS 0xc94c |
93 | #define GATE_IP_PERIL 0xc950 | 98 | #define GATE_IP_PERIL 0xc950 |
94 | #define E4210_GATE_IP_PERIR 0xc960 | 99 | #define E4210_GATE_IP_PERIR 0xc960 |
100 | #define GATE_BLOCK 0xc970 | ||
95 | #define E4X12_MPLL_CON0 0x10108 | 101 | #define E4X12_MPLL_CON0 0x10108 |
96 | #define SRC_DMC 0x10200 | 102 | #define SRC_DMC 0x10200 |
103 | #define SRC_MASK_DMC 0x10300 | ||
104 | #define DIV_DMC0 0x10500 | ||
105 | #define DIV_DMC1 0x10504 | ||
106 | #define GATE_IP_DMC 0x10900 | ||
97 | #define APLL_CON0 0x14100 | 107 | #define APLL_CON0 0x14100 |
98 | #define E4210_MPLL_CON0 0x14108 | 108 | #define E4210_MPLL_CON0 0x14108 |
99 | #define SRC_CPU 0x14200 | 109 | #define SRC_CPU 0x14200 |
100 | #define DIV_CPU0 0x14500 | 110 | #define DIV_CPU0 0x14500 |
111 | #define DIV_CPU1 0x14504 | ||
112 | #define GATE_SCLK_CPU 0x14800 | ||
113 | #define GATE_IP_CPU 0x14900 | ||
101 | #define E4X12_DIV_ISP0 0x18300 | 114 | #define E4X12_DIV_ISP0 0x18300 |
102 | #define E4X12_DIV_ISP1 0x18304 | 115 | #define E4X12_DIV_ISP1 0x18304 |
103 | #define E4X12_GATE_ISP0 0x18800 | 116 | #define E4X12_GATE_ISP0 0x18800 |
@@ -172,7 +185,17 @@ enum exynos4_clks { | |||
172 | */ | 185 | */ |
173 | static __initdata unsigned long exynos4_clk_regs[] = { | 186 | static __initdata unsigned long exynos4_clk_regs[] = { |
174 | SRC_LEFTBUS, | 187 | SRC_LEFTBUS, |
188 | DIV_LEFTBUS, | ||
189 | GATE_IP_LEFTBUS, | ||
190 | SRC_RIGHTBUS, | ||
191 | DIV_RIGHTBUS, | ||
175 | GATE_IP_RIGHTBUS, | 192 | GATE_IP_RIGHTBUS, |
193 | EPLL_CON0, | ||
194 | EPLL_CON1, | ||
195 | EPLL_CON2, | ||
196 | VPLL_CON0, | ||
197 | VPLL_CON1, | ||
198 | VPLL_CON2, | ||
176 | SRC_TOP0, | 199 | SRC_TOP0, |
177 | SRC_TOP1, | 200 | SRC_TOP1, |
178 | SRC_CAM, | 201 | SRC_CAM, |
@@ -184,6 +207,7 @@ static __initdata unsigned long exynos4_clk_regs[] = { | |||
184 | SRC_FSYS, | 207 | SRC_FSYS, |
185 | SRC_PERIL0, | 208 | SRC_PERIL0, |
186 | SRC_PERIL1, | 209 | SRC_PERIL1, |
210 | SRC_MASK_TOP, | ||
187 | SRC_MASK_CAM, | 211 | SRC_MASK_CAM, |
188 | SRC_MASK_TV, | 212 | SRC_MASK_TV, |
189 | SRC_MASK_LCD0, | 213 | SRC_MASK_LCD0, |
@@ -218,9 +242,18 @@ static __initdata unsigned long exynos4_clk_regs[] = { | |||
218 | GATE_IP_FSYS, | 242 | GATE_IP_FSYS, |
219 | GATE_IP_GPS, | 243 | GATE_IP_GPS, |
220 | GATE_IP_PERIL, | 244 | GATE_IP_PERIL, |
245 | GATE_BLOCK, | ||
246 | SRC_MASK_DMC, | ||
247 | SRC_DMC, | ||
248 | DIV_DMC0, | ||
249 | DIV_DMC1, | ||
250 | GATE_IP_DMC, | ||
221 | APLL_CON0, | 251 | APLL_CON0, |
222 | SRC_CPU, | 252 | SRC_CPU, |
223 | DIV_CPU0, | 253 | DIV_CPU0, |
254 | DIV_CPU1, | ||
255 | GATE_SCLK_CPU, | ||
256 | GATE_IP_CPU, | ||
224 | }; | 257 | }; |
225 | 258 | ||
226 | /* list of all parent clock list */ | 259 | /* list of all parent clock list */ |