diff options
Diffstat (limited to 'arch/arm/mach-shmobile/pm-r8a7779.c')
-rw-r--r-- | arch/arm/mach-shmobile/pm-r8a7779.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/arch/arm/mach-shmobile/pm-r8a7779.c b/arch/arm/mach-shmobile/pm-r8a7779.c index a18a4ae16d2b..b2a98cca66d3 100644 --- a/arch/arm/mach-shmobile/pm-r8a7779.c +++ b/arch/arm/mach-shmobile/pm-r8a7779.c | |||
@@ -199,17 +199,8 @@ void r8a7779_init_pm_domain(struct r8a7779_pm_domain *r8a7779_pd) | |||
199 | pd_power_up(&r8a7779_pd->genpd); | 199 | pd_power_up(&r8a7779_pd->genpd); |
200 | } | 200 | } |
201 | 201 | ||
202 | void r8a7779_add_device_to_domain(struct r8a7779_pm_domain *r8a7779_pd, | ||
203 | struct platform_device *pdev) | ||
204 | { | ||
205 | struct device *dev = &pdev->dev; | ||
206 | |||
207 | pm_genpd_add_device(&r8a7779_pd->genpd, dev); | ||
208 | if (pm_clk_no_clocks(dev)) | ||
209 | pm_clk_add(dev, NULL); | ||
210 | } | ||
211 | |||
212 | struct r8a7779_pm_domain r8a7779_sh4a = { | 202 | struct r8a7779_pm_domain r8a7779_sh4a = { |
203 | .genpd.name = "SH4A", | ||
213 | .ch = { | 204 | .ch = { |
214 | .chan_offs = 0x80, /* PWRSR1 .. PWRER1 */ | 205 | .chan_offs = 0x80, /* PWRSR1 .. PWRER1 */ |
215 | .isr_bit = 16, /* SH4A */ | 206 | .isr_bit = 16, /* SH4A */ |
@@ -217,6 +208,7 @@ struct r8a7779_pm_domain r8a7779_sh4a = { | |||
217 | }; | 208 | }; |
218 | 209 | ||
219 | struct r8a7779_pm_domain r8a7779_sgx = { | 210 | struct r8a7779_pm_domain r8a7779_sgx = { |
211 | .genpd.name = "SGX", | ||
220 | .ch = { | 212 | .ch = { |
221 | .chan_offs = 0xc0, /* PWRSR2 .. PWRER2 */ | 213 | .chan_offs = 0xc0, /* PWRSR2 .. PWRER2 */ |
222 | .isr_bit = 20, /* SGX */ | 214 | .isr_bit = 20, /* SGX */ |
@@ -224,6 +216,7 @@ struct r8a7779_pm_domain r8a7779_sgx = { | |||
224 | }; | 216 | }; |
225 | 217 | ||
226 | struct r8a7779_pm_domain r8a7779_vdp1 = { | 218 | struct r8a7779_pm_domain r8a7779_vdp1 = { |
219 | .genpd.name = "VDP1", | ||
227 | .ch = { | 220 | .ch = { |
228 | .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */ | 221 | .chan_offs = 0x100, /* PWRSR3 .. PWRER3 */ |
229 | .isr_bit = 21, /* VDP */ | 222 | .isr_bit = 21, /* VDP */ |
@@ -231,6 +224,7 @@ struct r8a7779_pm_domain r8a7779_vdp1 = { | |||
231 | }; | 224 | }; |
232 | 225 | ||
233 | struct r8a7779_pm_domain r8a7779_impx3 = { | 226 | struct r8a7779_pm_domain r8a7779_impx3 = { |
227 | .genpd.name = "IMPX3", | ||
234 | .ch = { | 228 | .ch = { |
235 | .chan_offs = 0x140, /* PWRSR4 .. PWRER4 */ | 229 | .chan_offs = 0x140, /* PWRSR4 .. PWRER4 */ |
236 | .isr_bit = 24, /* IMP */ | 230 | .isr_bit = 24, /* IMP */ |