diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2013-03-30 08:21:54 -0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-05-02 02:23:29 -0400 |
commit | 7b4f638b3a611118324328a18c842e26996493fe (patch) | |
tree | 7106e59b707371b60183d7be3bba04d5b6f9729b /drivers/gpu/drm/nouveau/core | |
parent | 9fe72f9e8370f1931e5e3137fe497d6167057340 (diff) |
drm/nve0: recognise nvf0 as a kepler board (GK110)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/core')
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/device/base.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/nouveau/core/engine/device/nve0.c | 34 |
2 files changed, 36 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/engine/device/base.c b/drivers/gpu/drm/nouveau/core/engine/device/base.c index 86d24904e9d3..4c72571655ad 100644 --- a/drivers/gpu/drm/nouveau/core/engine/device/base.c +++ b/drivers/gpu/drm/nouveau/core/engine/device/base.c | |||
@@ -172,7 +172,8 @@ nouveau_devobj_ctor(struct nouveau_object *parent, | |||
172 | case 0xa0: device->card_type = NV_50; break; | 172 | case 0xa0: device->card_type = NV_50; break; |
173 | case 0xc0: device->card_type = NV_C0; break; | 173 | case 0xc0: device->card_type = NV_C0; break; |
174 | case 0xd0: device->card_type = NV_D0; break; | 174 | case 0xd0: device->card_type = NV_D0; break; |
175 | case 0xe0: device->card_type = NV_E0; break; | 175 | case 0xe0: |
176 | case 0xf0: device->card_type = NV_E0; break; | ||
176 | default: | 177 | default: |
177 | break; | 178 | break; |
178 | } | 179 | } |
diff --git a/drivers/gpu/drm/nouveau/core/engine/device/nve0.c b/drivers/gpu/drm/nouveau/core/engine/device/nve0.c index e6a77944f43b..08f7b52d9e0c 100644 --- a/drivers/gpu/drm/nouveau/core/engine/device/nve0.c +++ b/drivers/gpu/drm/nouveau/core/engine/device/nve0.c | |||
@@ -141,6 +141,40 @@ nve0_identify(struct nouveau_device *device) | |||
141 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | 141 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; |
142 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | 142 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; |
143 | break; | 143 | break; |
144 | case 0xf0: | ||
145 | device->cname = "GK110"; | ||
146 | device->oclass[NVDEV_SUBDEV_VBIOS ] = &nouveau_bios_oclass; | ||
147 | device->oclass[NVDEV_SUBDEV_GPIO ] = &nve0_gpio_oclass; | ||
148 | device->oclass[NVDEV_SUBDEV_I2C ] = &nvd0_i2c_oclass; | ||
149 | device->oclass[NVDEV_SUBDEV_CLOCK ] = &nvc0_clock_oclass; | ||
150 | device->oclass[NVDEV_SUBDEV_THERM ] = &nvd0_therm_oclass; | ||
151 | device->oclass[NVDEV_SUBDEV_MXM ] = &nv50_mxm_oclass; | ||
152 | device->oclass[NVDEV_SUBDEV_DEVINIT] = &nvc0_devinit_oclass; | ||
153 | device->oclass[NVDEV_SUBDEV_MC ] = &nvc0_mc_oclass; | ||
154 | device->oclass[NVDEV_SUBDEV_BUS ] = &nvc0_bus_oclass; | ||
155 | device->oclass[NVDEV_SUBDEV_TIMER ] = &nv04_timer_oclass; | ||
156 | device->oclass[NVDEV_SUBDEV_FB ] = &nvc0_fb_oclass; | ||
157 | device->oclass[NVDEV_SUBDEV_LTCG ] = &nvc0_ltcg_oclass; | ||
158 | device->oclass[NVDEV_SUBDEV_IBUS ] = &nve0_ibus_oclass; | ||
159 | device->oclass[NVDEV_SUBDEV_INSTMEM] = &nv50_instmem_oclass; | ||
160 | device->oclass[NVDEV_SUBDEV_VM ] = &nvc0_vmmgr_oclass; | ||
161 | device->oclass[NVDEV_SUBDEV_BAR ] = &nvc0_bar_oclass; | ||
162 | device->oclass[NVDEV_ENGINE_DMAOBJ ] = &nvd0_dmaeng_oclass; | ||
163 | #if 0 | ||
164 | device->oclass[NVDEV_ENGINE_FIFO ] = &nve0_fifo_oclass; | ||
165 | device->oclass[NVDEV_ENGINE_SW ] = &nvc0_software_oclass; | ||
166 | device->oclass[NVDEV_ENGINE_GR ] = &nve0_graph_oclass; | ||
167 | #endif | ||
168 | device->oclass[NVDEV_ENGINE_DISP ] = &nvf0_disp_oclass; | ||
169 | #if 0 | ||
170 | device->oclass[NVDEV_ENGINE_COPY0 ] = &nve0_copy0_oclass; | ||
171 | device->oclass[NVDEV_ENGINE_COPY1 ] = &nve0_copy1_oclass; | ||
172 | device->oclass[NVDEV_ENGINE_COPY2 ] = &nve0_copy2_oclass; | ||
173 | device->oclass[NVDEV_ENGINE_BSP ] = &nve0_bsp_oclass; | ||
174 | device->oclass[NVDEV_ENGINE_VP ] = &nve0_vp_oclass; | ||
175 | device->oclass[NVDEV_ENGINE_PPP ] = &nvc0_ppp_oclass; | ||
176 | #endif | ||
177 | break; | ||
144 | default: | 178 | default: |
145 | nv_fatal(device, "unknown Kepler chipset\n"); | 179 | nv_fatal(device, "unknown Kepler chipset\n"); |
146 | return -EINVAL; | 180 | return -EINVAL; |