diff options
author | Alan Cox <alan@linux.intel.com> | 2012-03-08 11:00:31 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-03-10 08:05:28 -0500 |
commit | 648a8e342c5a754bdc62f003d3af90507c1abfde (patch) | |
tree | 95dd76398a23ac3d6a662c7f71445aa22a89302a /drivers/gpu/drm/gma500/oaktrail_device.c | |
parent | 933315acb6e223d4da36cb0b95d18dcfa6323658 (diff) |
gma500: now move the Oaktrail save state into its own structure
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/gma500/oaktrail_device.c')
-rw-r--r-- | drivers/gpu/drm/gma500/oaktrail_device.c | 204 |
1 files changed, 103 insertions, 101 deletions
diff --git a/drivers/gpu/drm/gma500/oaktrail_device.c b/drivers/gpu/drm/gma500/oaktrail_device.c index 63aea2f010d9..08dcdc29d2eb 100644 --- a/drivers/gpu/drm/gma500/oaktrail_device.c +++ b/drivers/gpu/drm/gma500/oaktrail_device.c | |||
@@ -190,81 +190,82 @@ static void oaktrail_init_pm(struct drm_device *dev) | |||
190 | static int oaktrail_save_display_registers(struct drm_device *dev) | 190 | static int oaktrail_save_display_registers(struct drm_device *dev) |
191 | { | 191 | { |
192 | struct drm_psb_private *dev_priv = dev->dev_private; | 192 | struct drm_psb_private *dev_priv = dev->dev_private; |
193 | struct psb_state *regs = &dev_priv->regs; | ||
193 | int i; | 194 | int i; |
194 | u32 pp_stat; | 195 | u32 pp_stat; |
195 | 196 | ||
196 | /* Display arbitration control + watermarks */ | 197 | /* Display arbitration control + watermarks */ |
197 | dev_priv->saveDSPARB = PSB_RVDC32(DSPARB); | 198 | regs->saveDSPARB = PSB_RVDC32(DSPARB); |
198 | dev_priv->saveDSPFW1 = PSB_RVDC32(DSPFW1); | 199 | regs->saveDSPFW1 = PSB_RVDC32(DSPFW1); |
199 | dev_priv->saveDSPFW2 = PSB_RVDC32(DSPFW2); | 200 | regs->saveDSPFW2 = PSB_RVDC32(DSPFW2); |
200 | dev_priv->saveDSPFW3 = PSB_RVDC32(DSPFW3); | 201 | regs->saveDSPFW3 = PSB_RVDC32(DSPFW3); |
201 | dev_priv->saveDSPFW4 = PSB_RVDC32(DSPFW4); | 202 | regs->saveDSPFW4 = PSB_RVDC32(DSPFW4); |
202 | dev_priv->saveDSPFW5 = PSB_RVDC32(DSPFW5); | 203 | regs->saveDSPFW5 = PSB_RVDC32(DSPFW5); |
203 | dev_priv->saveDSPFW6 = PSB_RVDC32(DSPFW6); | 204 | regs->saveDSPFW6 = PSB_RVDC32(DSPFW6); |
204 | dev_priv->saveCHICKENBIT = PSB_RVDC32(DSPCHICKENBIT); | 205 | regs->saveCHICKENBIT = PSB_RVDC32(DSPCHICKENBIT); |
205 | 206 | ||
206 | /* Pipe & plane A info */ | 207 | /* Pipe & plane A info */ |
207 | dev_priv->savePIPEACONF = PSB_RVDC32(PIPEACONF); | 208 | regs->savePIPEACONF = PSB_RVDC32(PIPEACONF); |
208 | dev_priv->savePIPEASRC = PSB_RVDC32(PIPEASRC); | 209 | regs->savePIPEASRC = PSB_RVDC32(PIPEASRC); |
209 | dev_priv->saveFPA0 = PSB_RVDC32(MRST_FPA0); | 210 | regs->saveFPA0 = PSB_RVDC32(MRST_FPA0); |
210 | dev_priv->saveFPA1 = PSB_RVDC32(MRST_FPA1); | 211 | regs->saveFPA1 = PSB_RVDC32(MRST_FPA1); |
211 | dev_priv->saveDPLL_A = PSB_RVDC32(MRST_DPLL_A); | 212 | regs->saveDPLL_A = PSB_RVDC32(MRST_DPLL_A); |
212 | dev_priv->saveHTOTAL_A = PSB_RVDC32(HTOTAL_A); | 213 | regs->saveHTOTAL_A = PSB_RVDC32(HTOTAL_A); |
213 | dev_priv->saveHBLANK_A = PSB_RVDC32(HBLANK_A); | 214 | regs->saveHBLANK_A = PSB_RVDC32(HBLANK_A); |
214 | dev_priv->saveHSYNC_A = PSB_RVDC32(HSYNC_A); | 215 | regs->saveHSYNC_A = PSB_RVDC32(HSYNC_A); |
215 | dev_priv->saveVTOTAL_A = PSB_RVDC32(VTOTAL_A); | 216 | regs->saveVTOTAL_A = PSB_RVDC32(VTOTAL_A); |
216 | dev_priv->saveVBLANK_A = PSB_RVDC32(VBLANK_A); | 217 | regs->saveVBLANK_A = PSB_RVDC32(VBLANK_A); |
217 | dev_priv->saveVSYNC_A = PSB_RVDC32(VSYNC_A); | 218 | regs->saveVSYNC_A = PSB_RVDC32(VSYNC_A); |
218 | dev_priv->saveBCLRPAT_A = PSB_RVDC32(BCLRPAT_A); | 219 | regs->saveBCLRPAT_A = PSB_RVDC32(BCLRPAT_A); |
219 | dev_priv->saveDSPACNTR = PSB_RVDC32(DSPACNTR); | 220 | regs->saveDSPACNTR = PSB_RVDC32(DSPACNTR); |
220 | dev_priv->saveDSPASTRIDE = PSB_RVDC32(DSPASTRIDE); | 221 | regs->saveDSPASTRIDE = PSB_RVDC32(DSPASTRIDE); |
221 | dev_priv->saveDSPAADDR = PSB_RVDC32(DSPABASE); | 222 | regs->saveDSPAADDR = PSB_RVDC32(DSPABASE); |
222 | dev_priv->saveDSPASURF = PSB_RVDC32(DSPASURF); | 223 | regs->saveDSPASURF = PSB_RVDC32(DSPASURF); |
223 | dev_priv->saveDSPALINOFF = PSB_RVDC32(DSPALINOFF); | 224 | regs->saveDSPALINOFF = PSB_RVDC32(DSPALINOFF); |
224 | dev_priv->saveDSPATILEOFF = PSB_RVDC32(DSPATILEOFF); | 225 | regs->saveDSPATILEOFF = PSB_RVDC32(DSPATILEOFF); |
225 | 226 | ||
226 | /* Save cursor regs */ | 227 | /* Save cursor regs */ |
227 | dev_priv->saveDSPACURSOR_CTRL = PSB_RVDC32(CURACNTR); | 228 | regs->saveDSPACURSOR_CTRL = PSB_RVDC32(CURACNTR); |
228 | dev_priv->saveDSPACURSOR_BASE = PSB_RVDC32(CURABASE); | 229 | regs->saveDSPACURSOR_BASE = PSB_RVDC32(CURABASE); |
229 | dev_priv->saveDSPACURSOR_POS = PSB_RVDC32(CURAPOS); | 230 | regs->saveDSPACURSOR_POS = PSB_RVDC32(CURAPOS); |
230 | 231 | ||
231 | /* Save palette (gamma) */ | 232 | /* Save palette (gamma) */ |
232 | for (i = 0; i < 256; i++) | 233 | for (i = 0; i < 256; i++) |
233 | dev_priv->save_palette_a[i] = PSB_RVDC32(PALETTE_A + (i << 2)); | 234 | regs->save_palette_a[i] = PSB_RVDC32(PALETTE_A + (i << 2)); |
234 | 235 | ||
235 | if (dev_priv->hdmi_priv) | 236 | if (dev_priv->hdmi_priv) |
236 | oaktrail_hdmi_save(dev); | 237 | oaktrail_hdmi_save(dev); |
237 | 238 | ||
238 | /* Save performance state */ | 239 | /* Save performance state */ |
239 | dev_priv->savePERF_MODE = PSB_RVDC32(MRST_PERF_MODE); | 240 | regs->savePERF_MODE = PSB_RVDC32(MRST_PERF_MODE); |
240 | 241 | ||
241 | /* LVDS state */ | 242 | /* LVDS state */ |
242 | dev_priv->savePP_CONTROL = PSB_RVDC32(PP_CONTROL); | 243 | regs->savePP_CONTROL = PSB_RVDC32(PP_CONTROL); |
243 | dev_priv->savePFIT_PGM_RATIOS = PSB_RVDC32(PFIT_PGM_RATIOS); | 244 | regs->savePFIT_PGM_RATIOS = PSB_RVDC32(PFIT_PGM_RATIOS); |
244 | dev_priv->savePFIT_AUTO_RATIOS = PSB_RVDC32(PFIT_AUTO_RATIOS); | 245 | regs->savePFIT_AUTO_RATIOS = PSB_RVDC32(PFIT_AUTO_RATIOS); |
245 | dev_priv->saveBLC_PWM_CTL = PSB_RVDC32(BLC_PWM_CTL); | 246 | regs->saveBLC_PWM_CTL = PSB_RVDC32(BLC_PWM_CTL); |
246 | dev_priv->saveBLC_PWM_CTL2 = PSB_RVDC32(BLC_PWM_CTL2); | 247 | regs->saveBLC_PWM_CTL2 = PSB_RVDC32(BLC_PWM_CTL2); |
247 | dev_priv->saveLVDS = PSB_RVDC32(LVDS); | 248 | regs->saveLVDS = PSB_RVDC32(LVDS); |
248 | dev_priv->savePFIT_CONTROL = PSB_RVDC32(PFIT_CONTROL); | 249 | regs->savePFIT_CONTROL = PSB_RVDC32(PFIT_CONTROL); |
249 | dev_priv->savePP_ON_DELAYS = PSB_RVDC32(LVDSPP_ON); | 250 | regs->savePP_ON_DELAYS = PSB_RVDC32(LVDSPP_ON); |
250 | dev_priv->savePP_OFF_DELAYS = PSB_RVDC32(LVDSPP_OFF); | 251 | regs->savePP_OFF_DELAYS = PSB_RVDC32(LVDSPP_OFF); |
251 | dev_priv->savePP_DIVISOR = PSB_RVDC32(PP_CYCLE); | 252 | regs->savePP_DIVISOR = PSB_RVDC32(PP_CYCLE); |
252 | 253 | ||
253 | /* HW overlay */ | 254 | /* HW overlay */ |
254 | dev_priv->saveOV_OVADD = PSB_RVDC32(OV_OVADD); | 255 | regs->saveOV_OVADD = PSB_RVDC32(OV_OVADD); |
255 | dev_priv->saveOV_OGAMC0 = PSB_RVDC32(OV_OGAMC0); | 256 | regs->saveOV_OGAMC0 = PSB_RVDC32(OV_OGAMC0); |
256 | dev_priv->saveOV_OGAMC1 = PSB_RVDC32(OV_OGAMC1); | 257 | regs->saveOV_OGAMC1 = PSB_RVDC32(OV_OGAMC1); |
257 | dev_priv->saveOV_OGAMC2 = PSB_RVDC32(OV_OGAMC2); | 258 | regs->saveOV_OGAMC2 = PSB_RVDC32(OV_OGAMC2); |
258 | dev_priv->saveOV_OGAMC3 = PSB_RVDC32(OV_OGAMC3); | 259 | regs->saveOV_OGAMC3 = PSB_RVDC32(OV_OGAMC3); |
259 | dev_priv->saveOV_OGAMC4 = PSB_RVDC32(OV_OGAMC4); | 260 | regs->saveOV_OGAMC4 = PSB_RVDC32(OV_OGAMC4); |
260 | dev_priv->saveOV_OGAMC5 = PSB_RVDC32(OV_OGAMC5); | 261 | regs->saveOV_OGAMC5 = PSB_RVDC32(OV_OGAMC5); |
261 | 262 | ||
262 | /* DPST registers */ | 263 | /* DPST registers */ |
263 | dev_priv->saveHISTOGRAM_INT_CONTROL_REG = | 264 | regs->saveHISTOGRAM_INT_CONTROL_REG = |
264 | PSB_RVDC32(HISTOGRAM_INT_CONTROL); | 265 | PSB_RVDC32(HISTOGRAM_INT_CONTROL); |
265 | dev_priv->saveHISTOGRAM_LOGIC_CONTROL_REG = | 266 | regs->saveHISTOGRAM_LOGIC_CONTROL_REG = |
266 | PSB_RVDC32(HISTOGRAM_LOGIC_CONTROL); | 267 | PSB_RVDC32(HISTOGRAM_LOGIC_CONTROL); |
267 | dev_priv->savePWM_CONTROL_LOGIC = PSB_RVDC32(PWM_CONTROL_LOGIC); | 268 | regs->savePWM_CONTROL_LOGIC = PSB_RVDC32(PWM_CONTROL_LOGIC); |
268 | 269 | ||
269 | if (dev_priv->iLVDS_enable) { | 270 | if (dev_priv->iLVDS_enable) { |
270 | /* Shut down the panel */ | 271 | /* Shut down the panel */ |
@@ -302,79 +303,80 @@ static int oaktrail_save_display_registers(struct drm_device *dev) | |||
302 | static int oaktrail_restore_display_registers(struct drm_device *dev) | 303 | static int oaktrail_restore_display_registers(struct drm_device *dev) |
303 | { | 304 | { |
304 | struct drm_psb_private *dev_priv = dev->dev_private; | 305 | struct drm_psb_private *dev_priv = dev->dev_private; |
306 | struct psb_state *regs = &dev_priv->regs; | ||
305 | u32 pp_stat; | 307 | u32 pp_stat; |
306 | int i; | 308 | int i; |
307 | 309 | ||
308 | /* Display arbitration + watermarks */ | 310 | /* Display arbitration + watermarks */ |
309 | PSB_WVDC32(dev_priv->saveDSPARB, DSPARB); | 311 | PSB_WVDC32(regs->saveDSPARB, DSPARB); |
310 | PSB_WVDC32(dev_priv->saveDSPFW1, DSPFW1); | 312 | PSB_WVDC32(regs->saveDSPFW1, DSPFW1); |
311 | PSB_WVDC32(dev_priv->saveDSPFW2, DSPFW2); | 313 | PSB_WVDC32(regs->saveDSPFW2, DSPFW2); |
312 | PSB_WVDC32(dev_priv->saveDSPFW3, DSPFW3); | 314 | PSB_WVDC32(regs->saveDSPFW3, DSPFW3); |
313 | PSB_WVDC32(dev_priv->saveDSPFW4, DSPFW4); | 315 | PSB_WVDC32(regs->saveDSPFW4, DSPFW4); |
314 | PSB_WVDC32(dev_priv->saveDSPFW5, DSPFW5); | 316 | PSB_WVDC32(regs->saveDSPFW5, DSPFW5); |
315 | PSB_WVDC32(dev_priv->saveDSPFW6, DSPFW6); | 317 | PSB_WVDC32(regs->saveDSPFW6, DSPFW6); |
316 | PSB_WVDC32(dev_priv->saveCHICKENBIT, DSPCHICKENBIT); | 318 | PSB_WVDC32(regs->saveCHICKENBIT, DSPCHICKENBIT); |
317 | 319 | ||
318 | /* Make sure VGA plane is off. it initializes to on after reset!*/ | 320 | /* Make sure VGA plane is off. it initializes to on after reset!*/ |
319 | PSB_WVDC32(0x80000000, VGACNTRL); | 321 | PSB_WVDC32(0x80000000, VGACNTRL); |
320 | 322 | ||
321 | /* set the plls */ | 323 | /* set the plls */ |
322 | PSB_WVDC32(dev_priv->saveFPA0, MRST_FPA0); | 324 | PSB_WVDC32(regs->saveFPA0, MRST_FPA0); |
323 | PSB_WVDC32(dev_priv->saveFPA1, MRST_FPA1); | 325 | PSB_WVDC32(regs->saveFPA1, MRST_FPA1); |
324 | 326 | ||
325 | /* Actually enable it */ | 327 | /* Actually enable it */ |
326 | PSB_WVDC32(dev_priv->saveDPLL_A, MRST_DPLL_A); | 328 | PSB_WVDC32(regs->saveDPLL_A, MRST_DPLL_A); |
327 | DRM_UDELAY(150); | 329 | DRM_UDELAY(150); |
328 | 330 | ||
329 | /* Restore mode */ | 331 | /* Restore mode */ |
330 | PSB_WVDC32(dev_priv->saveHTOTAL_A, HTOTAL_A); | 332 | PSB_WVDC32(regs->saveHTOTAL_A, HTOTAL_A); |
331 | PSB_WVDC32(dev_priv->saveHBLANK_A, HBLANK_A); | 333 | PSB_WVDC32(regs->saveHBLANK_A, HBLANK_A); |
332 | PSB_WVDC32(dev_priv->saveHSYNC_A, HSYNC_A); | 334 | PSB_WVDC32(regs->saveHSYNC_A, HSYNC_A); |
333 | PSB_WVDC32(dev_priv->saveVTOTAL_A, VTOTAL_A); | 335 | PSB_WVDC32(regs->saveVTOTAL_A, VTOTAL_A); |
334 | PSB_WVDC32(dev_priv->saveVBLANK_A, VBLANK_A); | 336 | PSB_WVDC32(regs->saveVBLANK_A, VBLANK_A); |
335 | PSB_WVDC32(dev_priv->saveVSYNC_A, VSYNC_A); | 337 | PSB_WVDC32(regs->saveVSYNC_A, VSYNC_A); |
336 | PSB_WVDC32(dev_priv->savePIPEASRC, PIPEASRC); | 338 | PSB_WVDC32(regs->savePIPEASRC, PIPEASRC); |
337 | PSB_WVDC32(dev_priv->saveBCLRPAT_A, BCLRPAT_A); | 339 | PSB_WVDC32(regs->saveBCLRPAT_A, BCLRPAT_A); |
338 | 340 | ||
339 | /* Restore performance mode*/ | 341 | /* Restore performance mode*/ |
340 | PSB_WVDC32(dev_priv->savePERF_MODE, MRST_PERF_MODE); | 342 | PSB_WVDC32(regs->savePERF_MODE, MRST_PERF_MODE); |
341 | 343 | ||
342 | /* Enable the pipe*/ | 344 | /* Enable the pipe*/ |
343 | if (dev_priv->iLVDS_enable) | 345 | if (dev_priv->iLVDS_enable) |
344 | PSB_WVDC32(dev_priv->savePIPEACONF, PIPEACONF); | 346 | PSB_WVDC32(regs->savePIPEACONF, PIPEACONF); |
345 | 347 | ||
346 | /* Set up the plane*/ | 348 | /* Set up the plane*/ |
347 | PSB_WVDC32(dev_priv->saveDSPALINOFF, DSPALINOFF); | 349 | PSB_WVDC32(regs->saveDSPALINOFF, DSPALINOFF); |
348 | PSB_WVDC32(dev_priv->saveDSPASTRIDE, DSPASTRIDE); | 350 | PSB_WVDC32(regs->saveDSPASTRIDE, DSPASTRIDE); |
349 | PSB_WVDC32(dev_priv->saveDSPATILEOFF, DSPATILEOFF); | 351 | PSB_WVDC32(regs->saveDSPATILEOFF, DSPATILEOFF); |
350 | 352 | ||
351 | /* Enable the plane */ | 353 | /* Enable the plane */ |
352 | PSB_WVDC32(dev_priv->saveDSPACNTR, DSPACNTR); | 354 | PSB_WVDC32(regs->saveDSPACNTR, DSPACNTR); |
353 | PSB_WVDC32(dev_priv->saveDSPASURF, DSPASURF); | 355 | PSB_WVDC32(regs->saveDSPASURF, DSPASURF); |
354 | 356 | ||
355 | /* Enable Cursor A */ | 357 | /* Enable Cursor A */ |
356 | PSB_WVDC32(dev_priv->saveDSPACURSOR_CTRL, CURACNTR); | 358 | PSB_WVDC32(regs->saveDSPACURSOR_CTRL, CURACNTR); |
357 | PSB_WVDC32(dev_priv->saveDSPACURSOR_POS, CURAPOS); | 359 | PSB_WVDC32(regs->saveDSPACURSOR_POS, CURAPOS); |
358 | PSB_WVDC32(dev_priv->saveDSPACURSOR_BASE, CURABASE); | 360 | PSB_WVDC32(regs->saveDSPACURSOR_BASE, CURABASE); |
359 | 361 | ||
360 | /* Restore palette (gamma) */ | 362 | /* Restore palette (gamma) */ |
361 | for (i = 0; i < 256; i++) | 363 | for (i = 0; i < 256; i++) |
362 | PSB_WVDC32(dev_priv->save_palette_a[i], PALETTE_A + (i << 2)); | 364 | PSB_WVDC32(regs->save_palette_a[i], PALETTE_A + (i << 2)); |
363 | 365 | ||
364 | if (dev_priv->hdmi_priv) | 366 | if (dev_priv->hdmi_priv) |
365 | oaktrail_hdmi_restore(dev); | 367 | oaktrail_hdmi_restore(dev); |
366 | 368 | ||
367 | if (dev_priv->iLVDS_enable) { | 369 | if (dev_priv->iLVDS_enable) { |
368 | PSB_WVDC32(dev_priv->saveBLC_PWM_CTL2, BLC_PWM_CTL2); | 370 | PSB_WVDC32(regs->saveBLC_PWM_CTL2, BLC_PWM_CTL2); |
369 | PSB_WVDC32(dev_priv->saveLVDS, LVDS); /*port 61180h*/ | 371 | PSB_WVDC32(regs->saveLVDS, LVDS); /*port 61180h*/ |
370 | PSB_WVDC32(dev_priv->savePFIT_CONTROL, PFIT_CONTROL); | 372 | PSB_WVDC32(regs->savePFIT_CONTROL, PFIT_CONTROL); |
371 | PSB_WVDC32(dev_priv->savePFIT_PGM_RATIOS, PFIT_PGM_RATIOS); | 373 | PSB_WVDC32(regs->savePFIT_PGM_RATIOS, PFIT_PGM_RATIOS); |
372 | PSB_WVDC32(dev_priv->savePFIT_AUTO_RATIOS, PFIT_AUTO_RATIOS); | 374 | PSB_WVDC32(regs->savePFIT_AUTO_RATIOS, PFIT_AUTO_RATIOS); |
373 | PSB_WVDC32(dev_priv->saveBLC_PWM_CTL, BLC_PWM_CTL); | 375 | PSB_WVDC32(regs->saveBLC_PWM_CTL, BLC_PWM_CTL); |
374 | PSB_WVDC32(dev_priv->savePP_ON_DELAYS, LVDSPP_ON); | 376 | PSB_WVDC32(regs->savePP_ON_DELAYS, LVDSPP_ON); |
375 | PSB_WVDC32(dev_priv->savePP_OFF_DELAYS, LVDSPP_OFF); | 377 | PSB_WVDC32(regs->savePP_OFF_DELAYS, LVDSPP_OFF); |
376 | PSB_WVDC32(dev_priv->savePP_DIVISOR, PP_CYCLE); | 378 | PSB_WVDC32(regs->savePP_DIVISOR, PP_CYCLE); |
377 | PSB_WVDC32(dev_priv->savePP_CONTROL, PP_CONTROL); | 379 | PSB_WVDC32(regs->savePP_CONTROL, PP_CONTROL); |
378 | } | 380 | } |
379 | 381 | ||
380 | /* Wait for cycle delay */ | 382 | /* Wait for cycle delay */ |
@@ -388,20 +390,20 @@ static int oaktrail_restore_display_registers(struct drm_device *dev) | |||
388 | } while (pp_stat & 0x10000000); | 390 | } while (pp_stat & 0x10000000); |
389 | 391 | ||
390 | /* Restore HW overlay */ | 392 | /* Restore HW overlay */ |
391 | PSB_WVDC32(dev_priv->saveOV_OVADD, OV_OVADD); | 393 | PSB_WVDC32(regs->saveOV_OVADD, OV_OVADD); |
392 | PSB_WVDC32(dev_priv->saveOV_OGAMC0, OV_OGAMC0); | 394 | PSB_WVDC32(regs->saveOV_OGAMC0, OV_OGAMC0); |
393 | PSB_WVDC32(dev_priv->saveOV_OGAMC1, OV_OGAMC1); | 395 | PSB_WVDC32(regs->saveOV_OGAMC1, OV_OGAMC1); |
394 | PSB_WVDC32(dev_priv->saveOV_OGAMC2, OV_OGAMC2); | 396 | PSB_WVDC32(regs->saveOV_OGAMC2, OV_OGAMC2); |
395 | PSB_WVDC32(dev_priv->saveOV_OGAMC3, OV_OGAMC3); | 397 | PSB_WVDC32(regs->saveOV_OGAMC3, OV_OGAMC3); |
396 | PSB_WVDC32(dev_priv->saveOV_OGAMC4, OV_OGAMC4); | 398 | PSB_WVDC32(regs->saveOV_OGAMC4, OV_OGAMC4); |
397 | PSB_WVDC32(dev_priv->saveOV_OGAMC5, OV_OGAMC5); | 399 | PSB_WVDC32(regs->saveOV_OGAMC5, OV_OGAMC5); |
398 | 400 | ||
399 | /* DPST registers */ | 401 | /* DPST registers */ |
400 | PSB_WVDC32(dev_priv->saveHISTOGRAM_INT_CONTROL_REG, | 402 | PSB_WVDC32(regs->saveHISTOGRAM_INT_CONTROL_REG, |
401 | HISTOGRAM_INT_CONTROL); | 403 | HISTOGRAM_INT_CONTROL); |
402 | PSB_WVDC32(dev_priv->saveHISTOGRAM_LOGIC_CONTROL_REG, | 404 | PSB_WVDC32(regs->saveHISTOGRAM_LOGIC_CONTROL_REG, |
403 | HISTOGRAM_LOGIC_CONTROL); | 405 | HISTOGRAM_LOGIC_CONTROL); |
404 | PSB_WVDC32(dev_priv->savePWM_CONTROL_LOGIC, PWM_CONTROL_LOGIC); | 406 | PSB_WVDC32(regs->savePWM_CONTROL_LOGIC, PWM_CONTROL_LOGIC); |
405 | 407 | ||
406 | return 0; | 408 | return 0; |
407 | } | 409 | } |