diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2012-07-26 18:28:20 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2012-10-02 23:12:59 -0400 |
commit | 2094dd82eddc468b53ee99d92c38b23a65efac03 (patch) | |
tree | 1fae3b9689106d71c485c6ffb9f63e2e311997c0 /drivers/gpu/drm | |
parent | 51a3d3425663698a79e8a9d01998a8a32ddee13b (diff) |
drm/nouveau/device: include the official chipset names
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm')
9 files changed, 61 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/base.c b/drivers/gpu/drm/nouveau/core/subdev/device/base.c index d8d101630e46..42faa65b34e8 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/base.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/base.c | |||
@@ -204,7 +204,8 @@ nouveau_devobj_ctor(struct nouveau_object *parent, | |||
204 | } | 204 | } |
205 | 205 | ||
206 | nv_info(device, "BOOT0 : 0x%08x\n", boot0); | 206 | nv_info(device, "BOOT0 : 0x%08x\n", boot0); |
207 | nv_info(device, "Chipset: NV%02X\n", device->chipset); | 207 | nv_info(device, "Chipset: %s (NV%02X)\n", |
208 | device->cname, device->chipset); | ||
208 | nv_info(device, "Family : NV%02X\n", device->card_type); | 209 | nv_info(device, "Family : NV%02X\n", device->card_type); |
209 | 210 | ||
210 | /* determine frequency of timing crystal */ | 211 | /* determine frequency of timing crystal */ |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c index 693d200a3e22..8626d0d6cbbc 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv04.c | |||
@@ -44,6 +44,7 @@ nv04_identify(struct nouveau_device *device) | |||
44 | { | 44 | { |
45 | switch (device->chipset) { | 45 | switch (device->chipset) { |
46 | case 0x04: | 46 | case 0x04: |
47 | device->cname = "NV04"; | ||
47 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 48 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
48 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 49 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
49 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; | 50 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; |
@@ -60,6 +61,7 @@ nv04_identify(struct nouveau_device *device) | |||
60 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 61 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
61 | break; | 62 | break; |
62 | case 0x05: | 63 | case 0x05: |
64 | device->cname = "NV05"; | ||
63 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 65 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
64 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 66 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
65 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; | 67 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nv04_clock_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv10.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv10.c index de6ce890e842..f09accfd0e31 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nv10.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv10.c | |||
@@ -45,6 +45,7 @@ nv10_identify(struct nouveau_device *device) | |||
45 | { | 45 | { |
46 | switch (device->chipset) { | 46 | switch (device->chipset) { |
47 | case 0x10: | 47 | case 0x10: |
48 | device->cname = "NV10"; | ||
48 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 49 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
49 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 50 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
50 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 51 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -60,6 +61,7 @@ nv10_identify(struct nouveau_device *device) | |||
60 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 61 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
61 | break; | 62 | break; |
62 | case 0x15: | 63 | case 0x15: |
64 | device->cname = "NV15"; | ||
63 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 65 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
64 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 66 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
65 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 67 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -77,6 +79,7 @@ nv10_identify(struct nouveau_device *device) | |||
77 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 79 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
78 | break; | 80 | break; |
79 | case 0x16: | 81 | case 0x16: |
82 | device->cname = "NV16"; | ||
80 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 83 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
81 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 84 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
82 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 85 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -94,6 +97,7 @@ nv10_identify(struct nouveau_device *device) | |||
94 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 97 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
95 | break; | 98 | break; |
96 | case 0x1a: | 99 | case 0x1a: |
100 | device->cname = "nForce"; | ||
97 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 101 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
98 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 102 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
99 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 103 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -111,6 +115,7 @@ nv10_identify(struct nouveau_device *device) | |||
111 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 115 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
112 | break; | 116 | break; |
113 | case 0x11: | 117 | case 0x11: |
118 | device->cname = "NV11"; | ||
114 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 119 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
115 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 120 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
116 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 121 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -128,6 +133,7 @@ nv10_identify(struct nouveau_device *device) | |||
128 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 133 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
129 | break; | 134 | break; |
130 | case 0x17: | 135 | case 0x17: |
136 | device->cname = "NV17"; | ||
131 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 137 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
132 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 138 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
133 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 139 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -145,6 +151,7 @@ nv10_identify(struct nouveau_device *device) | |||
145 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 151 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
146 | break; | 152 | break; |
147 | case 0x1f: | 153 | case 0x1f: |
154 | device->cname = "nForce2"; | ||
148 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 155 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
149 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 156 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
150 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 157 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -162,6 +169,7 @@ nv10_identify(struct nouveau_device *device) | |||
162 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 169 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
163 | break; | 170 | break; |
164 | case 0x18: | 171 | case 0x18: |
172 | device->cname = "NV18"; | ||
165 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 173 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
166 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 174 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
167 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 175 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv20.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv20.c index 0b30143d0114..1c8681f36f1e 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nv20.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv20.c | |||
@@ -45,6 +45,7 @@ nv20_identify(struct nouveau_device *device) | |||
45 | { | 45 | { |
46 | switch (device->chipset) { | 46 | switch (device->chipset) { |
47 | case 0x20: | 47 | case 0x20: |
48 | device->cname = "NV20"; | ||
48 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 49 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
49 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 50 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
50 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 51 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -62,6 +63,7 @@ nv20_identify(struct nouveau_device *device) | |||
62 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 63 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
63 | break; | 64 | break; |
64 | case 0x25: | 65 | case 0x25: |
66 | device->cname = "NV25"; | ||
65 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 67 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
66 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 68 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
67 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 69 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -79,6 +81,7 @@ nv20_identify(struct nouveau_device *device) | |||
79 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 81 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
80 | break; | 82 | break; |
81 | case 0x28: | 83 | case 0x28: |
84 | device->cname = "NV28"; | ||
82 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 85 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
83 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 86 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
84 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 87 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -96,6 +99,7 @@ nv20_identify(struct nouveau_device *device) | |||
96 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 99 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
97 | break; | 100 | break; |
98 | case 0x2a: | 101 | case 0x2a: |
102 | device->cname = "NV2A"; | ||
99 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 103 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
100 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 104 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
101 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 105 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv30.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv30.c index 1d5c6977c86a..7f4b8fe6cccc 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nv30.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv30.c | |||
@@ -46,6 +46,7 @@ nv30_identify(struct nouveau_device *device) | |||
46 | { | 46 | { |
47 | switch (device->chipset) { | 47 | switch (device->chipset) { |
48 | case 0x30: | 48 | case 0x30: |
49 | device->cname = "NV30"; | ||
49 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 50 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
50 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 51 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
51 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 52 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -63,6 +64,7 @@ nv30_identify(struct nouveau_device *device) | |||
63 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 64 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
64 | break; | 65 | break; |
65 | case 0x35: | 66 | case 0x35: |
67 | device->cname = "NV35"; | ||
66 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 68 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
67 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 69 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
68 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 70 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -80,6 +82,7 @@ nv30_identify(struct nouveau_device *device) | |||
80 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 82 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
81 | break; | 83 | break; |
82 | case 0x31: | 84 | case 0x31: |
85 | device->cname = "NV31"; | ||
83 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 86 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
84 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 87 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
85 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 88 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -98,6 +101,7 @@ nv30_identify(struct nouveau_device *device) | |||
98 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 101 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
99 | break; | 102 | break; |
100 | case 0x36: | 103 | case 0x36: |
104 | device->cname = "NV36"; | ||
101 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 105 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
102 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 106 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
103 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 107 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -116,6 +120,7 @@ nv30_identify(struct nouveau_device *device) | |||
116 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 120 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
117 | break; | 121 | break; |
118 | case 0x34: | 122 | case 0x34: |
123 | device->cname = "NV34"; | ||
119 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 124 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
120 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 125 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
121 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 126 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv40.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv40.c index 2e071fa9fca0..c6005c27382e 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nv40.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv40.c | |||
@@ -46,6 +46,7 @@ nv40_identify(struct nouveau_device *device) | |||
46 | { | 46 | { |
47 | switch (device->chipset) { | 47 | switch (device->chipset) { |
48 | case 0x40: | 48 | case 0x40: |
49 | device->cname = "NV40"; | ||
49 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 50 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
50 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 51 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
51 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 52 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -64,6 +65,7 @@ nv40_identify(struct nouveau_device *device) | |||
64 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 65 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
65 | break; | 66 | break; |
66 | case 0x41: | 67 | case 0x41: |
68 | device->cname = "NV41"; | ||
67 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 69 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
68 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 70 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
69 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 71 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -82,6 +84,7 @@ nv40_identify(struct nouveau_device *device) | |||
82 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 84 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
83 | break; | 85 | break; |
84 | case 0x42: | 86 | case 0x42: |
87 | device->cname = "NV42"; | ||
85 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 88 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
86 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 89 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
87 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 90 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -100,6 +103,7 @@ nv40_identify(struct nouveau_device *device) | |||
100 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 103 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
101 | break; | 104 | break; |
102 | case 0x43: | 105 | case 0x43: |
106 | device->cname = "NV43"; | ||
103 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 107 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
104 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 108 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
105 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 109 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -118,6 +122,7 @@ nv40_identify(struct nouveau_device *device) | |||
118 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 122 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
119 | break; | 123 | break; |
120 | case 0x45: | 124 | case 0x45: |
125 | device->cname = "NV45"; | ||
121 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 126 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
122 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 127 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
123 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 128 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -136,6 +141,7 @@ nv40_identify(struct nouveau_device *device) | |||
136 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 141 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
137 | break; | 142 | break; |
138 | case 0x47: | 143 | case 0x47: |
144 | device->cname = "G70"; | ||
139 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 145 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
140 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 146 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
141 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 147 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -154,6 +160,7 @@ nv40_identify(struct nouveau_device *device) | |||
154 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 160 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
155 | break; | 161 | break; |
156 | case 0x49: | 162 | case 0x49: |
163 | device->cname = "G71"; | ||
157 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 164 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
158 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 165 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
159 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 166 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -172,6 +179,7 @@ nv40_identify(struct nouveau_device *device) | |||
172 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 179 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
173 | break; | 180 | break; |
174 | case 0x4b: | 181 | case 0x4b: |
182 | device->cname = "G73"; | ||
175 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 183 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
176 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 184 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
177 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 185 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -190,6 +198,7 @@ nv40_identify(struct nouveau_device *device) | |||
190 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 198 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
191 | break; | 199 | break; |
192 | case 0x44: | 200 | case 0x44: |
201 | device->cname = "NV44"; | ||
193 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 202 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
194 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 203 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
195 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 204 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -208,6 +217,7 @@ nv40_identify(struct nouveau_device *device) | |||
208 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 217 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
209 | break; | 218 | break; |
210 | case 0x46: | 219 | case 0x46: |
220 | device->cname = "G72"; | ||
211 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 221 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
212 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 222 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
213 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 223 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -226,6 +236,7 @@ nv40_identify(struct nouveau_device *device) | |||
226 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 236 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
227 | break; | 237 | break; |
228 | case 0x4a: | 238 | case 0x4a: |
239 | device->cname = "NV44A"; | ||
229 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 240 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
230 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 241 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
231 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 242 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -244,6 +255,7 @@ nv40_identify(struct nouveau_device *device) | |||
244 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 255 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
245 | break; | 256 | break; |
246 | case 0x4c: | 257 | case 0x4c: |
258 | device->cname = "C61"; | ||
247 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 259 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
248 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 260 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
249 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 261 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -262,6 +274,7 @@ nv40_identify(struct nouveau_device *device) | |||
262 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 274 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
263 | break; | 275 | break; |
264 | case 0x4e: | 276 | case 0x4e: |
277 | device->cname = "C51"; | ||
265 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 278 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
266 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 279 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
267 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 280 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -280,6 +293,7 @@ nv40_identify(struct nouveau_device *device) | |||
280 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 293 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
281 | break; | 294 | break; |
282 | case 0x63: | 295 | case 0x63: |
296 | device->cname = "C73"; | ||
283 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 297 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
284 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 298 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
285 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 299 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -298,6 +312,7 @@ nv40_identify(struct nouveau_device *device) | |||
298 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 312 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
299 | break; | 313 | break; |
300 | case 0x67: | 314 | case 0x67: |
315 | device->cname = "C67"; | ||
301 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 316 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
302 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 317 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
303 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 318 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -316,6 +331,7 @@ nv40_identify(struct nouveau_device *device) | |||
316 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; | 331 | device->oclass[NVDEV_ENGINE_DISP ] = &nv04_disp_oclass; |
317 | break; | 332 | break; |
318 | case 0x68: | 333 | case 0x68: |
334 | device->cname = "C68"; | ||
319 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 335 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
320 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; | 336 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv10_gpio_oclass; |
321 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 337 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nv50.c b/drivers/gpu/drm/nouveau/core/subdev/device/nv50.c index cec477b386e5..252e13c3c17a 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nv50.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nv50.c | |||
@@ -53,6 +53,7 @@ nv50_identify(struct nouveau_device *device) | |||
53 | { | 53 | { |
54 | switch (device->chipset) { | 54 | switch (device->chipset) { |
55 | case 0x50: | 55 | case 0x50: |
56 | device->cname = "G80"; | ||
56 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 57 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
57 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 58 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
58 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 59 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -73,6 +74,7 @@ nv50_identify(struct nouveau_device *device) | |||
73 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 74 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
74 | break; | 75 | break; |
75 | case 0x84: | 76 | case 0x84: |
77 | device->cname = "G84"; | ||
76 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 78 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
77 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 79 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
78 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 80 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -96,6 +98,7 @@ nv50_identify(struct nouveau_device *device) | |||
96 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 98 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
97 | break; | 99 | break; |
98 | case 0x86: | 100 | case 0x86: |
101 | device->cname = "G86"; | ||
99 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 102 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
100 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 103 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
101 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 104 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -119,6 +122,7 @@ nv50_identify(struct nouveau_device *device) | |||
119 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 122 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
120 | break; | 123 | break; |
121 | case 0x92: | 124 | case 0x92: |
125 | device->cname = "G92"; | ||
122 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 126 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
123 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 127 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
124 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 128 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -142,6 +146,7 @@ nv50_identify(struct nouveau_device *device) | |||
142 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 146 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
143 | break; | 147 | break; |
144 | case 0x94: | 148 | case 0x94: |
149 | device->cname = "G94"; | ||
145 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 150 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
146 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 151 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
147 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 152 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -165,6 +170,7 @@ nv50_identify(struct nouveau_device *device) | |||
165 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 170 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
166 | break; | 171 | break; |
167 | case 0x96: | 172 | case 0x96: |
173 | device->cname = "G96"; | ||
168 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 174 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
169 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 175 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
170 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 176 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -188,6 +194,7 @@ nv50_identify(struct nouveau_device *device) | |||
188 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 194 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
189 | break; | 195 | break; |
190 | case 0x98: | 196 | case 0x98: |
197 | device->cname = "G98"; | ||
191 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 198 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
192 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 199 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
193 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 200 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -211,6 +218,7 @@ nv50_identify(struct nouveau_device *device) | |||
211 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 218 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
212 | break; | 219 | break; |
213 | case 0xa0: | 220 | case 0xa0: |
221 | device->cname = "G200"; | ||
214 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 222 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
215 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 223 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
216 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 224 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -234,6 +242,7 @@ nv50_identify(struct nouveau_device *device) | |||
234 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 242 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
235 | break; | 243 | break; |
236 | case 0xaa: | 244 | case 0xaa: |
245 | device->cname = "MCP77/MCP78"; | ||
237 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 246 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
238 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 247 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
239 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 248 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -257,6 +266,7 @@ nv50_identify(struct nouveau_device *device) | |||
257 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 266 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
258 | break; | 267 | break; |
259 | case 0xac: | 268 | case 0xac: |
269 | device->cname = "MCP79/MCP7A"; | ||
260 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 270 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
261 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 271 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
262 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 272 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -280,6 +290,7 @@ nv50_identify(struct nouveau_device *device) | |||
280 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 290 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
281 | break; | 291 | break; |
282 | case 0xa3: | 292 | case 0xa3: |
293 | device->cname = "GT215"; | ||
283 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 294 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
284 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 295 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
285 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 296 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -304,6 +315,7 @@ nv50_identify(struct nouveau_device *device) | |||
304 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 315 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
305 | break; | 316 | break; |
306 | case 0xa5: | 317 | case 0xa5: |
318 | device->cname = "GT216"; | ||
307 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 319 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
308 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 320 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
309 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 321 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -327,6 +339,7 @@ nv50_identify(struct nouveau_device *device) | |||
327 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 339 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
328 | break; | 340 | break; |
329 | case 0xa8: | 341 | case 0xa8: |
342 | device->cname = "GT218"; | ||
330 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 343 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
331 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 344 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
332 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 345 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -350,6 +363,7 @@ nv50_identify(struct nouveau_device *device) | |||
350 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 363 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
351 | break; | 364 | break; |
352 | case 0xaf: | 365 | case 0xaf: |
366 | device->cname = "MCP89"; | ||
353 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 367 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
354 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 368 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
355 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 369 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/device/nvc0.c index 616843608d4d..8c14b3849fe3 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nvc0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nvc0.c | |||
@@ -52,6 +52,7 @@ nvc0_identify(struct nouveau_device *device) | |||
52 | { | 52 | { |
53 | switch (device->chipset) { | 53 | switch (device->chipset) { |
54 | case 0xc0: | 54 | case 0xc0: |
55 | device->cname = "GF100"; | ||
55 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 56 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
56 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 57 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
57 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 58 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -77,6 +78,7 @@ nvc0_identify(struct nouveau_device *device) | |||
77 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 78 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
78 | break; | 79 | break; |
79 | case 0xc4: | 80 | case 0xc4: |
81 | device->cname = "GF104"; | ||
80 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 82 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
81 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 83 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
82 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 84 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -102,6 +104,7 @@ nvc0_identify(struct nouveau_device *device) | |||
102 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 104 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
103 | break; | 105 | break; |
104 | case 0xc3: | 106 | case 0xc3: |
107 | device->cname = "GF106"; | ||
105 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 108 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
106 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 109 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
107 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 110 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -127,6 +130,7 @@ nvc0_identify(struct nouveau_device *device) | |||
127 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 130 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
128 | break; | 131 | break; |
129 | case 0xce: | 132 | case 0xce: |
133 | device->cname = "GF114"; | ||
130 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 134 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
131 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 135 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
132 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 136 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -152,6 +156,7 @@ nvc0_identify(struct nouveau_device *device) | |||
152 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 156 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
153 | break; | 157 | break; |
154 | case 0xcf: | 158 | case 0xcf: |
159 | device->cname = "GF116"; | ||
155 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 160 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
156 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 161 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
157 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 162 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -177,6 +182,7 @@ nvc0_identify(struct nouveau_device *device) | |||
177 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 182 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
178 | break; | 183 | break; |
179 | case 0xc1: | 184 | case 0xc1: |
185 | device->cname = "GF108"; | ||
180 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 186 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
181 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 187 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
182 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 188 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -202,6 +208,7 @@ nvc0_identify(struct nouveau_device *device) | |||
202 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 208 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
203 | break; | 209 | break; |
204 | case 0xc8: | 210 | case 0xc8: |
211 | device->cname = "GF110"; | ||
205 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 212 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
206 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; | 213 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nv50_gpio_oclass; |
207 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 214 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -227,6 +234,7 @@ nvc0_identify(struct nouveau_device *device) | |||
227 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; | 234 | device->oclass[NVDEV_ENGINE_DISP ] = &nv50_disp_oclass; |
228 | break; | 235 | break; |
229 | case 0xd9: | 236 | case 0xd9: |
237 | device->cname = "GF119"; | ||
230 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 238 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
231 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nvd0_gpio_oclass; | 239 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nvd0_gpio_oclass; |
232 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 240 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
diff --git a/drivers/gpu/drm/nouveau/core/subdev/device/nve0.c b/drivers/gpu/drm/nouveau/core/subdev/device/nve0.c index 1ce057080db2..2547ac032df3 100644 --- a/drivers/gpu/drm/nouveau/core/subdev/device/nve0.c +++ b/drivers/gpu/drm/nouveau/core/subdev/device/nve0.c | |||
@@ -48,6 +48,7 @@ nve0_identify(struct nouveau_device *device) | |||
48 | { | 48 | { |
49 | switch (device->chipset) { | 49 | switch (device->chipset) { |
50 | case 0xe4: | 50 | case 0xe4: |
51 | device->cname = "GK104"; | ||
51 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 52 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
52 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nvd0_gpio_oclass; | 53 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nvd0_gpio_oclass; |
53 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 54 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |
@@ -68,6 +69,7 @@ nve0_identify(struct nouveau_device *device) | |||
68 | device->oclass[NVDEV_ENGINE_DISP ] = &nvd0_disp_oclass; | 69 | device->oclass[NVDEV_ENGINE_DISP ] = &nvd0_disp_oclass; |
69 | break; | 70 | break; |
70 | case 0xe7: | 71 | case 0xe7: |
72 | device->cname = "GK107"; | ||
71 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | 73 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; |
72 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nvd0_gpio_oclass; | 74 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nvd0_gpio_oclass; |
73 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; | 75 | device->oclass[NVDEV_SUBDEV_I2C ] = &nouveau_i2c_oclass; |