drm/nouveau/subdev: add a pfuse subdev v2
authorMartin Peres <martin.peres@free.fr>
Mon, 25 Aug 2014 22:26:38 +0000 (00:26 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 15 Sep 2014 12:25:01 +0000 (22:25 +1000)
commit3ca6cd435effd1d762217529baaab010f34f8cc8
tree64411eb355b6c6a207a4d95a25636733647b9c2e
parent3d40a7176d01ef35e5a3fd1508024c95b43b1130
drm/nouveau/subdev: add a pfuse subdev v2

We will use this subdev to disable temperature reading on cards that did not
get a sensor calibration in the factory.

v2:
- rename "nouveau_fuse_rd32" to "gxXXX_fuse_rd32" as adviced by Christian Costa
- fold the code a little as adviced by Emil Velikov

Signed-off-by: Martin Peres <martin.peres@free.fr>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
12 files changed:
drivers/gpu/drm/nouveau/Makefile
drivers/gpu/drm/nouveau/core/engine/device/gm100.c
drivers/gpu/drm/nouveau/core/engine/device/nv50.c
drivers/gpu/drm/nouveau/core/engine/device/nvc0.c
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
drivers/gpu/drm/nouveau/core/include/core/device.h
drivers/gpu/drm/nouveau/core/include/subdev/fuse.h [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/fuse/base.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/fuse/g80.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/fuse/gf100.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/fuse/gm107.c [new file with mode: 0644]
drivers/gpu/drm/nouveau/core/subdev/fuse/priv.h [new file with mode: 0644]