diff options
Diffstat (limited to 'drivers/gpu/drm/i915/dvo_tfp410.c')
-rw-r--r-- | drivers/gpu/drm/i915/dvo_tfp410.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/drivers/gpu/drm/i915/dvo_tfp410.c b/drivers/gpu/drm/i915/dvo_tfp410.c index c7c391bc116a..66c697bc9b22 100644 --- a/drivers/gpu/drm/i915/dvo_tfp410.c +++ b/drivers/gpu/drm/i915/dvo_tfp410.c | |||
@@ -86,16 +86,8 @@ | |||
86 | #define TFP410_V_RES_LO 0x3C | 86 | #define TFP410_V_RES_LO 0x3C |
87 | #define TFP410_V_RES_HI 0x3D | 87 | #define TFP410_V_RES_HI 0x3D |
88 | 88 | ||
89 | struct tfp410_save_rec { | ||
90 | uint8_t ctl1; | ||
91 | uint8_t ctl2; | ||
92 | }; | ||
93 | |||
94 | struct tfp410_priv { | 89 | struct tfp410_priv { |
95 | bool quiet; | 90 | bool quiet; |
96 | |||
97 | struct tfp410_save_rec saved_reg; | ||
98 | struct tfp410_save_rec mode_reg; | ||
99 | }; | 91 | }; |
100 | 92 | ||
101 | static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch) | 93 | static bool tfp410_readb(struct intel_dvo_device *dvo, int addr, uint8_t *ch) |
@@ -293,28 +285,6 @@ static void tfp410_dump_regs(struct intel_dvo_device *dvo) | |||
293 | DRM_LOG_KMS("TFP410_V_RES: 0x%02X%02X\n", val2, val); | 285 | DRM_LOG_KMS("TFP410_V_RES: 0x%02X%02X\n", val2, val); |
294 | } | 286 | } |
295 | 287 | ||
296 | static void tfp410_save(struct intel_dvo_device *dvo) | ||
297 | { | ||
298 | struct tfp410_priv *tfp = dvo->dev_priv; | ||
299 | |||
300 | if (!tfp410_readb(dvo, TFP410_CTL_1, &tfp->saved_reg.ctl1)) | ||
301 | return; | ||
302 | |||
303 | if (!tfp410_readb(dvo, TFP410_CTL_2, &tfp->saved_reg.ctl2)) | ||
304 | return; | ||
305 | } | ||
306 | |||
307 | static void tfp410_restore(struct intel_dvo_device *dvo) | ||
308 | { | ||
309 | struct tfp410_priv *tfp = dvo->dev_priv; | ||
310 | |||
311 | /* Restore it powered down initially */ | ||
312 | tfp410_writeb(dvo, TFP410_CTL_1, tfp->saved_reg.ctl1 & ~0x1); | ||
313 | |||
314 | tfp410_writeb(dvo, TFP410_CTL_2, tfp->saved_reg.ctl2); | ||
315 | tfp410_writeb(dvo, TFP410_CTL_1, tfp->saved_reg.ctl1); | ||
316 | } | ||
317 | |||
318 | static void tfp410_destroy(struct intel_dvo_device *dvo) | 288 | static void tfp410_destroy(struct intel_dvo_device *dvo) |
319 | { | 289 | { |
320 | struct tfp410_priv *tfp = dvo->dev_priv; | 290 | struct tfp410_priv *tfp = dvo->dev_priv; |
@@ -332,7 +302,5 @@ struct intel_dvo_dev_ops tfp410_ops = { | |||
332 | .mode_set = tfp410_mode_set, | 302 | .mode_set = tfp410_mode_set, |
333 | .dpms = tfp410_dpms, | 303 | .dpms = tfp410_dpms, |
334 | .dump_regs = tfp410_dump_regs, | 304 | .dump_regs = tfp410_dump_regs, |
335 | .save = tfp410_save, | ||
336 | .restore = tfp410_restore, | ||
337 | .destroy = tfp410_destroy, | 305 | .destroy = tfp410_destroy, |
338 | }; | 306 | }; |