diff options
Diffstat (limited to 'drivers/gpu/drm/i915/dvo_sil164.c')
-rw-r--r-- | drivers/gpu/drm/i915/dvo_sil164.c | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/drivers/gpu/drm/i915/dvo_sil164.c b/drivers/gpu/drm/i915/dvo_sil164.c index 0001c13f0a80..9b8e6765cf26 100644 --- a/drivers/gpu/drm/i915/dvo_sil164.c +++ b/drivers/gpu/drm/i915/dvo_sil164.c | |||
@@ -58,17 +58,9 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | |||
58 | 58 | ||
59 | #define SIL164_REGC 0x0c | 59 | #define SIL164_REGC 0x0c |
60 | 60 | ||
61 | struct sil164_save_rec { | ||
62 | uint8_t reg8; | ||
63 | uint8_t reg9; | ||
64 | uint8_t regc; | ||
65 | }; | ||
66 | |||
67 | struct sil164_priv { | 61 | struct sil164_priv { |
68 | //I2CDevRec d; | 62 | //I2CDevRec d; |
69 | bool quiet; | 63 | bool quiet; |
70 | struct sil164_save_rec save_regs; | ||
71 | struct sil164_save_rec mode_regs; | ||
72 | }; | 64 | }; |
73 | 65 | ||
74 | #define SILPTR(d) ((SIL164Ptr)(d->DriverPrivate.ptr)) | 66 | #define SILPTR(d) ((SIL164Ptr)(d->DriverPrivate.ptr)) |
@@ -252,34 +244,6 @@ static void sil164_dump_regs(struct intel_dvo_device *dvo) | |||
252 | DRM_LOG_KMS("SIL164_REGC: 0x%02x\n", val); | 244 | DRM_LOG_KMS("SIL164_REGC: 0x%02x\n", val); |
253 | } | 245 | } |
254 | 246 | ||
255 | static void sil164_save(struct intel_dvo_device *dvo) | ||
256 | { | ||
257 | struct sil164_priv *sil= dvo->dev_priv; | ||
258 | |||
259 | if (!sil164_readb(dvo, SIL164_REG8, &sil->save_regs.reg8)) | ||
260 | return; | ||
261 | |||
262 | if (!sil164_readb(dvo, SIL164_REG9, &sil->save_regs.reg9)) | ||
263 | return; | ||
264 | |||
265 | if (!sil164_readb(dvo, SIL164_REGC, &sil->save_regs.regc)) | ||
266 | return; | ||
267 | |||
268 | return; | ||
269 | } | ||
270 | |||
271 | static void sil164_restore(struct intel_dvo_device *dvo) | ||
272 | { | ||
273 | struct sil164_priv *sil = dvo->dev_priv; | ||
274 | |||
275 | /* Restore it powered down initially */ | ||
276 | sil164_writeb(dvo, SIL164_REG8, sil->save_regs.reg8 & ~0x1); | ||
277 | |||
278 | sil164_writeb(dvo, SIL164_REG9, sil->save_regs.reg9); | ||
279 | sil164_writeb(dvo, SIL164_REGC, sil->save_regs.regc); | ||
280 | sil164_writeb(dvo, SIL164_REG8, sil->save_regs.reg8); | ||
281 | } | ||
282 | |||
283 | static void sil164_destroy(struct intel_dvo_device *dvo) | 247 | static void sil164_destroy(struct intel_dvo_device *dvo) |
284 | { | 248 | { |
285 | struct sil164_priv *sil = dvo->dev_priv; | 249 | struct sil164_priv *sil = dvo->dev_priv; |
@@ -297,7 +261,5 @@ struct intel_dvo_dev_ops sil164_ops = { | |||
297 | .mode_set = sil164_mode_set, | 261 | .mode_set = sil164_mode_set, |
298 | .dpms = sil164_dpms, | 262 | .dpms = sil164_dpms, |
299 | .dump_regs = sil164_dump_regs, | 263 | .dump_regs = sil164_dump_regs, |
300 | .save = sil164_save, | ||
301 | .restore = sil164_restore, | ||
302 | .destroy = sil164_destroy, | 264 | .destroy = sil164_destroy, |
303 | }; | 265 | }; |