diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/dispnv04/tvnv17.c')
| -rw-r--r-- | drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c index 434d1e29f279..6d99f11fee4e 100644 --- a/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c +++ b/drivers/gpu/drm/nouveau/dispnv04/tvnv17.c | |||
| @@ -46,7 +46,7 @@ static uint32_t nv42_tv_sample_load(struct drm_encoder *encoder) | |||
| 46 | { | 46 | { |
| 47 | struct drm_device *dev = encoder->dev; | 47 | struct drm_device *dev = encoder->dev; |
| 48 | struct nouveau_drm *drm = nouveau_drm(dev); | 48 | struct nouveau_drm *drm = nouveau_drm(dev); |
| 49 | struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); | 49 | struct nvkm_gpio *gpio = nvxx_gpio(&drm->client.device); |
| 50 | uint32_t testval, regoffset = nv04_dac_output_offset(encoder); | 50 | uint32_t testval, regoffset = nv04_dac_output_offset(encoder); |
| 51 | uint32_t gpio0, gpio1, fp_htotal, fp_hsync_start, fp_hsync_end, | 51 | uint32_t gpio0, gpio1, fp_htotal, fp_hsync_start, fp_hsync_end, |
| 52 | fp_control, test_ctrl, dacclk, ctv_14, ctv_1c, ctv_6c; | 52 | fp_control, test_ctrl, dacclk, ctv_14, ctv_1c, ctv_6c; |
| @@ -130,7 +130,7 @@ static bool | |||
| 130 | get_tv_detect_quirks(struct drm_device *dev, uint32_t *pin_mask) | 130 | get_tv_detect_quirks(struct drm_device *dev, uint32_t *pin_mask) |
| 131 | { | 131 | { |
| 132 | struct nouveau_drm *drm = nouveau_drm(dev); | 132 | struct nouveau_drm *drm = nouveau_drm(dev); |
| 133 | struct nvkm_device *device = nvxx_device(&drm->device); | 133 | struct nvkm_device *device = nvxx_device(&drm->client.device); |
| 134 | 134 | ||
| 135 | if (device->quirk && device->quirk->tv_pin_mask) { | 135 | if (device->quirk && device->quirk->tv_pin_mask) { |
| 136 | *pin_mask = device->quirk->tv_pin_mask; | 136 | *pin_mask = device->quirk->tv_pin_mask; |
| @@ -154,8 +154,8 @@ nv17_tv_detect(struct drm_encoder *encoder, struct drm_connector *connector) | |||
| 154 | return connector_status_disconnected; | 154 | return connector_status_disconnected; |
| 155 | 155 | ||
| 156 | if (reliable) { | 156 | if (reliable) { |
| 157 | if (drm->device.info.chipset == 0x42 || | 157 | if (drm->client.device.info.chipset == 0x42 || |
| 158 | drm->device.info.chipset == 0x43) | 158 | drm->client.device.info.chipset == 0x43) |
| 159 | tv_enc->pin_mask = | 159 | tv_enc->pin_mask = |
| 160 | nv42_tv_sample_load(encoder) >> 28 & 0xe; | 160 | nv42_tv_sample_load(encoder) >> 28 & 0xe; |
| 161 | else | 161 | else |
| @@ -362,7 +362,7 @@ static void nv17_tv_dpms(struct drm_encoder *encoder, int mode) | |||
| 362 | { | 362 | { |
| 363 | struct drm_device *dev = encoder->dev; | 363 | struct drm_device *dev = encoder->dev; |
| 364 | struct nouveau_drm *drm = nouveau_drm(dev); | 364 | struct nouveau_drm *drm = nouveau_drm(dev); |
| 365 | struct nvkm_gpio *gpio = nvxx_gpio(&drm->device); | 365 | struct nvkm_gpio *gpio = nvxx_gpio(&drm->client.device); |
| 366 | struct nv17_tv_state *regs = &to_tv_enc(encoder)->state; | 366 | struct nv17_tv_state *regs = &to_tv_enc(encoder)->state; |
| 367 | struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); | 367 | struct nv17_tv_norm_params *tv_norm = get_tv_norm(encoder); |
| 368 | 368 | ||
| @@ -435,7 +435,7 @@ static void nv17_tv_prepare(struct drm_encoder *encoder) | |||
| 435 | /* Set the DACCLK register */ | 435 | /* Set the DACCLK register */ |
| 436 | dacclk = (NVReadRAMDAC(dev, 0, dacclk_off) & ~0x30) | 0x1; | 436 | dacclk = (NVReadRAMDAC(dev, 0, dacclk_off) & ~0x30) | 0x1; |
| 437 | 437 | ||
| 438 | if (drm->device.info.family == NV_DEVICE_INFO_V0_CURIE) | 438 | if (drm->client.device.info.family == NV_DEVICE_INFO_V0_CURIE) |
| 439 | dacclk |= 0x1a << 16; | 439 | dacclk |= 0x1a << 16; |
| 440 | 440 | ||
| 441 | if (tv_norm->kind == CTV_ENC_MODE) { | 441 | if (tv_norm->kind == CTV_ENC_MODE) { |
| @@ -492,7 +492,7 @@ static void nv17_tv_mode_set(struct drm_encoder *encoder, | |||
| 492 | tv_regs->ptv_614 = 0x13; | 492 | tv_regs->ptv_614 = 0x13; |
| 493 | } | 493 | } |
| 494 | 494 | ||
| 495 | if (drm->device.info.family >= NV_DEVICE_INFO_V0_RANKINE) { | 495 | if (drm->client.device.info.family >= NV_DEVICE_INFO_V0_RANKINE) { |
| 496 | tv_regs->ptv_500 = 0xe8e0; | 496 | tv_regs->ptv_500 = 0xe8e0; |
| 497 | tv_regs->ptv_504 = 0x1710; | 497 | tv_regs->ptv_504 = 0x1710; |
| 498 | tv_regs->ptv_604 = 0x0; | 498 | tv_regs->ptv_604 = 0x0; |
| @@ -587,7 +587,7 @@ static void nv17_tv_commit(struct drm_encoder *encoder) | |||
| 587 | nv17_tv_state_load(dev, &to_tv_enc(encoder)->state); | 587 | nv17_tv_state_load(dev, &to_tv_enc(encoder)->state); |
| 588 | 588 | ||
| 589 | /* This could use refinement for flatpanels, but it should work */ | 589 | /* This could use refinement for flatpanels, but it should work */ |
| 590 | if (drm->device.info.chipset < 0x44) | 590 | if (drm->client.device.info.chipset < 0x44) |
| 591 | NVWriteRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + | 591 | NVWriteRAMDAC(dev, 0, NV_PRAMDAC_TEST_CONTROL + |
| 592 | nv04_dac_output_offset(encoder), | 592 | nv04_dac_output_offset(encoder), |
| 593 | 0xf0000000); | 593 | 0xf0000000); |
