diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-06-13 20:16:17 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-06-18 00:38:27 -0400 |
commit | 0897554cdd9de8a9f6f93d9ba27c7ebfae286158 (patch) | |
tree | be057975a377d4a3b881120577e2569ba9df76d4 /drivers/gpu/drm | |
parent | 2c53b436a30867eb6b47dd7bab23ba638d1fb0d2 (diff) |
drm/nouveau: fix big-endian switch
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_state.c b/drivers/gpu/drm/nouveau/nouveau_state.c index 80218887e0a0..144f79a350ae 100644 --- a/drivers/gpu/drm/nouveau/nouveau_state.c +++ b/drivers/gpu/drm/nouveau/nouveau_state.c | |||
@@ -881,8 +881,8 @@ int nouveau_load(struct drm_device *dev, unsigned long flags) | |||
881 | 881 | ||
882 | #ifdef __BIG_ENDIAN | 882 | #ifdef __BIG_ENDIAN |
883 | /* Put the card in BE mode if it's not */ | 883 | /* Put the card in BE mode if it's not */ |
884 | if (nv_rd32(dev, NV03_PMC_BOOT_1)) | 884 | if (nv_rd32(dev, NV03_PMC_BOOT_1) != 0x01000001) |
885 | nv_wr32(dev, NV03_PMC_BOOT_1, 0x00000001); | 885 | nv_wr32(dev, NV03_PMC_BOOT_1, 0x01000001); |
886 | 886 | ||
887 | DRM_MEMORYBARRIER(); | 887 | DRM_MEMORYBARRIER(); |
888 | #endif | 888 | #endif |