forked from Minki/linux
drm/nouveau: fix big-endian switch
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
2c53b436a3
commit
0897554cdd
@ -881,8 +881,8 @@ int nouveau_load(struct drm_device *dev, unsigned long flags)
|
|||||||
|
|
||||||
#ifdef __BIG_ENDIAN
|
#ifdef __BIG_ENDIAN
|
||||||
/* Put the card in BE mode if it's not */
|
/* Put the card in BE mode if it's not */
|
||||||
if (nv_rd32(dev, NV03_PMC_BOOT_1))
|
if (nv_rd32(dev, NV03_PMC_BOOT_1) != 0x01000001)
|
||||||
nv_wr32(dev, NV03_PMC_BOOT_1, 0x00000001);
|
nv_wr32(dev, NV03_PMC_BOOT_1, 0x01000001);
|
||||||
|
|
||||||
DRM_MEMORYBARRIER();
|
DRM_MEMORYBARRIER();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user