diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-07-10 20:44:20 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:12:47 -0400 |
commit | cb75d97e9c77743ecfcc43375be135a55a4d9b25 (patch) | |
tree | e7903f00db28b25a88d295dcc863f14b3d3bd707 /drivers/gpu/drm/nouveau/nouveau_hw.h | |
parent | 70790f4f819875e8f390871fd15bbbf823f28e1b (diff) |
drm/nouveau: implement devinit subdev, and new init table parser
v2:
- make sure not to execute display scripts unless resuming
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_hw.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_hw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.h b/drivers/gpu/drm/nouveau/nouveau_hw.h index ff7f31c279d8..24c459213613 100644 --- a/drivers/gpu/drm/nouveau/nouveau_hw.h +++ b/drivers/gpu/drm/nouveau/nouveau_hw.h | |||
@@ -161,7 +161,7 @@ static inline void NVWriteRAMDAC(struct drm_device *dev, | |||
161 | static inline uint8_t nv_read_tmds(struct drm_device *dev, | 161 | static inline uint8_t nv_read_tmds(struct drm_device *dev, |
162 | int or, int dl, uint8_t address) | 162 | int or, int dl, uint8_t address) |
163 | { | 163 | { |
164 | int ramdac = (or & OUTPUT_C) >> 2; | 164 | int ramdac = (or & DCB_OUTPUT_C) >> 2; |
165 | 165 | ||
166 | NVWriteRAMDAC(dev, ramdac, NV_PRAMDAC_FP_TMDS_CONTROL + dl * 8, | 166 | NVWriteRAMDAC(dev, ramdac, NV_PRAMDAC_FP_TMDS_CONTROL + dl * 8, |
167 | NV_PRAMDAC_FP_TMDS_CONTROL_WRITE_DISABLE | address); | 167 | NV_PRAMDAC_FP_TMDS_CONTROL_WRITE_DISABLE | address); |
@@ -172,7 +172,7 @@ static inline void nv_write_tmds(struct drm_device *dev, | |||
172 | int or, int dl, uint8_t address, | 172 | int or, int dl, uint8_t address, |
173 | uint8_t data) | 173 | uint8_t data) |
174 | { | 174 | { |
175 | int ramdac = (or & OUTPUT_C) >> 2; | 175 | int ramdac = (or & DCB_OUTPUT_C) >> 2; |
176 | 176 | ||
177 | NVWriteRAMDAC(dev, ramdac, NV_PRAMDAC_FP_TMDS_DATA + dl * 8, data); | 177 | NVWriteRAMDAC(dev, ramdac, NV_PRAMDAC_FP_TMDS_DATA + dl * 8, data); |
178 | NVWriteRAMDAC(dev, ramdac, NV_PRAMDAC_FP_TMDS_CONTROL + dl * 8, address); | 178 | NVWriteRAMDAC(dev, ramdac, NV_PRAMDAC_FP_TMDS_CONTROL + dl * 8, address); |