Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2008 Maarten Maathuis. |
| 3 | * All Rights Reserved. |
| 4 | * |
| 5 | * Permission is hereby granted, free of charge, to any person obtaining |
| 6 | * a copy of this software and associated documentation files (the |
| 7 | * "Software"), to deal in the Software without restriction, including |
| 8 | * without limitation the rights to use, copy, modify, merge, publish, |
| 9 | * distribute, sublicense, and/or sell copies of the Software, and to |
| 10 | * permit persons to whom the Software is furnished to do so, subject to |
| 11 | * the following conditions: |
| 12 | * |
| 13 | * The above copyright notice and this permission notice (including the |
| 14 | * next paragraph) shall be included in all copies or substantial |
| 15 | * portions of the Software. |
| 16 | * |
| 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 20 | * IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE |
| 21 | * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| 22 | * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 23 | * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 24 | * |
| 25 | */ |
| 26 | |
| 27 | #include "drmP.h" |
| 28 | #include "drm_crtc_helper.h" |
| 29 | |
| 30 | #define NOUVEAU_DMA_DEBUG (nouveau_reg_debug & NOUVEAU_REG_DEBUG_EVO) |
| 31 | #include "nouveau_reg.h" |
| 32 | #include "nouveau_drv.h" |
| 33 | #include "nouveau_dma.h" |
| 34 | #include "nouveau_encoder.h" |
| 35 | #include "nouveau_connector.h" |
| 36 | #include "nouveau_crtc.h" |
| 37 | #include "nv50_display.h" |
| 38 | |
| 39 | static void |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 40 | nv50_sor_disconnect(struct drm_encoder *encoder) |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 41 | { |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 42 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
| 43 | struct drm_device *dev = encoder->dev; |
Ben Skeggs | 59c0f57 | 2011-02-01 10:24:41 +1000 | [diff] [blame] | 44 | struct nouveau_channel *evo = nv50_display(dev)->master; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 45 | int ret; |
| 46 | |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 47 | if (!nv_encoder->crtc) |
| 48 | return; |
Ben Skeggs | 835aadb | 2010-07-05 15:19:16 +1000 | [diff] [blame] | 49 | nv50_crtc_blank(nouveau_crtc(nv_encoder->crtc), true); |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 50 | |
Maarten Maathuis | ef2bb50 | 2009-12-13 16:53:12 +0100 | [diff] [blame] | 51 | NV_DEBUG_KMS(dev, "Disconnecting SOR %d\n", nv_encoder->or); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 52 | |
Ben Skeggs | 835aadb | 2010-07-05 15:19:16 +1000 | [diff] [blame] | 53 | ret = RING_SPACE(evo, 4); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 54 | if (ret) { |
| 55 | NV_ERROR(dev, "no space while disconnecting SOR\n"); |
| 56 | return; |
| 57 | } |
| 58 | BEGIN_RING(evo, 0, NV50_EVO_SOR(nv_encoder->or, MODE_CTRL), 1); |
Ben Skeggs | 835aadb | 2010-07-05 15:19:16 +1000 | [diff] [blame] | 59 | OUT_RING (evo, 0); |
| 60 | BEGIN_RING(evo, 0, NV50_EVO_UPDATE, 1); |
| 61 | OUT_RING (evo, 0); |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 62 | |
Ben Skeggs | 25575b4 | 2011-10-05 11:05:07 +1000 | [diff] [blame^] | 63 | nouveau_hdmi_mode_set(encoder, NULL); |
| 64 | |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 65 | nv_encoder->crtc = NULL; |
| 66 | nv_encoder->last_dpms = DRM_MODE_DPMS_OFF; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 67 | } |
| 68 | |
| 69 | static void |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 70 | nv50_sor_dpms(struct drm_encoder *encoder, int mode) |
| 71 | { |
| 72 | struct drm_device *dev = encoder->dev; |
| 73 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
Ben Skeggs | 1622653 | 2010-01-22 10:57:01 +1000 | [diff] [blame] | 74 | struct drm_encoder *enc; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 75 | uint32_t val; |
| 76 | int or = nv_encoder->or; |
| 77 | |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 78 | NV_DEBUG_KMS(dev, "or %d type %d mode %d\n", or, nv_encoder->dcb->type, mode); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 79 | |
Ben Skeggs | 1622653 | 2010-01-22 10:57:01 +1000 | [diff] [blame] | 80 | nv_encoder->last_dpms = mode; |
| 81 | list_for_each_entry(enc, &dev->mode_config.encoder_list, head) { |
| 82 | struct nouveau_encoder *nvenc = nouveau_encoder(enc); |
| 83 | |
| 84 | if (nvenc == nv_encoder || |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 85 | (nvenc->dcb->type != OUTPUT_TMDS && |
| 86 | nvenc->dcb->type != OUTPUT_LVDS && |
| 87 | nvenc->dcb->type != OUTPUT_DP) || |
Ben Skeggs | 1622653 | 2010-01-22 10:57:01 +1000 | [diff] [blame] | 88 | nvenc->dcb->or != nv_encoder->dcb->or) |
| 89 | continue; |
| 90 | |
| 91 | if (nvenc->last_dpms == DRM_MODE_DPMS_ON) |
| 92 | return; |
| 93 | } |
| 94 | |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 95 | /* wait for it to be done */ |
Francisco Jerez | 4b5c152 | 2010-09-07 17:34:44 +0200 | [diff] [blame] | 96 | if (!nv_wait(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or), |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 97 | NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING, 0)) { |
| 98 | NV_ERROR(dev, "timeout: SOR_DPMS_CTRL_PENDING(%d) == 0\n", or); |
| 99 | NV_ERROR(dev, "SOR_DPMS_CTRL(%d) = 0x%08x\n", or, |
| 100 | nv_rd32(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or))); |
| 101 | } |
| 102 | |
| 103 | val = nv_rd32(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or)); |
| 104 | |
| 105 | if (mode == DRM_MODE_DPMS_ON) |
| 106 | val |= NV50_PDISPLAY_SOR_DPMS_CTRL_ON; |
| 107 | else |
| 108 | val &= ~NV50_PDISPLAY_SOR_DPMS_CTRL_ON; |
| 109 | |
| 110 | nv_wr32(dev, NV50_PDISPLAY_SOR_DPMS_CTRL(or), val | |
| 111 | NV50_PDISPLAY_SOR_DPMS_CTRL_PENDING); |
Francisco Jerez | 4b5c152 | 2010-09-07 17:34:44 +0200 | [diff] [blame] | 112 | if (!nv_wait(dev, NV50_PDISPLAY_SOR_DPMS_STATE(or), |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 113 | NV50_PDISPLAY_SOR_DPMS_STATE_WAIT, 0)) { |
| 114 | NV_ERROR(dev, "timeout: SOR_DPMS_STATE_WAIT(%d) == 0\n", or); |
| 115 | NV_ERROR(dev, "SOR_DPMS_STATE(%d) = 0x%08x\n", or, |
| 116 | nv_rd32(dev, NV50_PDISPLAY_SOR_DPMS_STATE(or))); |
| 117 | } |
| 118 | |
Ben Skeggs | 1f403d9 | 2010-07-06 11:20:17 +1000 | [diff] [blame] | 119 | if (nv_encoder->dcb->type == OUTPUT_DP) { |
| 120 | struct nouveau_i2c_chan *auxch; |
| 121 | |
| 122 | auxch = nouveau_i2c_find(dev, nv_encoder->dcb->i2c_index); |
| 123 | if (!auxch) |
| 124 | return; |
| 125 | |
| 126 | if (mode == DRM_MODE_DPMS_ON) { |
| 127 | u8 status = DP_SET_POWER_D0; |
| 128 | nouveau_dp_auxch(auxch, 8, DP_SET_POWER, &status, 1); |
Ben Skeggs | a002fec | 2011-08-04 11:04:47 +1000 | [diff] [blame] | 129 | nouveau_dp_link_train(encoder, nv_encoder->dp.datarate); |
Ben Skeggs | 1f403d9 | 2010-07-06 11:20:17 +1000 | [diff] [blame] | 130 | } else { |
| 131 | u8 status = DP_SET_POWER_D3; |
| 132 | nouveau_dp_auxch(auxch, 8, DP_SET_POWER, &status, 1); |
| 133 | } |
| 134 | } |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 135 | } |
| 136 | |
| 137 | static void |
| 138 | nv50_sor_save(struct drm_encoder *encoder) |
| 139 | { |
| 140 | NV_ERROR(encoder->dev, "!!\n"); |
| 141 | } |
| 142 | |
| 143 | static void |
| 144 | nv50_sor_restore(struct drm_encoder *encoder) |
| 145 | { |
| 146 | NV_ERROR(encoder->dev, "!!\n"); |
| 147 | } |
| 148 | |
| 149 | static bool |
| 150 | nv50_sor_mode_fixup(struct drm_encoder *encoder, struct drm_display_mode *mode, |
| 151 | struct drm_display_mode *adjusted_mode) |
| 152 | { |
| 153 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
| 154 | struct nouveau_connector *connector; |
| 155 | |
Maarten Maathuis | ef2bb50 | 2009-12-13 16:53:12 +0100 | [diff] [blame] | 156 | NV_DEBUG_KMS(encoder->dev, "or %d\n", nv_encoder->or); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 157 | |
| 158 | connector = nouveau_encoder_connector_get(nv_encoder); |
| 159 | if (!connector) { |
| 160 | NV_ERROR(encoder->dev, "Encoder has no connector\n"); |
| 161 | return false; |
| 162 | } |
| 163 | |
| 164 | if (connector->scaling_mode != DRM_MODE_SCALE_NONE && |
| 165 | connector->native_mode) { |
| 166 | int id = adjusted_mode->base.id; |
| 167 | *adjusted_mode = *connector->native_mode; |
| 168 | adjusted_mode->base.id = id; |
| 169 | } |
| 170 | |
| 171 | return true; |
| 172 | } |
| 173 | |
| 174 | static void |
| 175 | nv50_sor_prepare(struct drm_encoder *encoder) |
| 176 | { |
| 177 | } |
| 178 | |
| 179 | static void |
| 180 | nv50_sor_commit(struct drm_encoder *encoder) |
| 181 | { |
| 182 | } |
| 183 | |
| 184 | static void |
| 185 | nv50_sor_mode_set(struct drm_encoder *encoder, struct drm_display_mode *mode, |
| 186 | struct drm_display_mode *adjusted_mode) |
| 187 | { |
Ben Skeggs | 59c0f57 | 2011-02-01 10:24:41 +1000 | [diff] [blame] | 188 | struct nouveau_channel *evo = nv50_display(encoder->dev)->master; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 189 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
| 190 | struct drm_device *dev = encoder->dev; |
| 191 | struct nouveau_crtc *crtc = nouveau_crtc(encoder->crtc); |
Ben Skeggs | 46959b7 | 2011-07-01 15:51:49 +1000 | [diff] [blame] | 192 | struct nouveau_connector *nv_connector; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 193 | uint32_t mode_ctl = 0; |
| 194 | int ret; |
| 195 | |
Ben Skeggs | 0441292 | 2010-07-02 13:47:38 +1000 | [diff] [blame] | 196 | NV_DEBUG_KMS(dev, "or %d type %d -> crtc %d\n", |
| 197 | nv_encoder->or, nv_encoder->dcb->type, crtc->index); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 198 | |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 199 | switch (nv_encoder->dcb->type) { |
| 200 | case OUTPUT_TMDS: |
| 201 | if (nv_encoder->dcb->sorconf.link & 1) { |
| 202 | if (adjusted_mode->clock < 165000) |
| 203 | mode_ctl = 0x0100; |
| 204 | else |
| 205 | mode_ctl = 0x0500; |
| 206 | } else |
| 207 | mode_ctl = 0x0200; |
Ben Skeggs | 25575b4 | 2011-10-05 11:05:07 +1000 | [diff] [blame^] | 208 | |
| 209 | nouveau_hdmi_mode_set(encoder, mode); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 210 | break; |
| 211 | case OUTPUT_DP: |
Ben Skeggs | 46959b7 | 2011-07-01 15:51:49 +1000 | [diff] [blame] | 212 | nv_connector = nouveau_encoder_connector_get(nv_encoder); |
Ben Skeggs | a002fec | 2011-08-04 11:04:47 +1000 | [diff] [blame] | 213 | if (nv_connector && nv_connector->base.display_info.bpc == 6) { |
| 214 | nv_encoder->dp.datarate = crtc->mode->clock * 18 / 8; |
Ben Skeggs | 46959b7 | 2011-07-01 15:51:49 +1000 | [diff] [blame] | 215 | mode_ctl |= 0x00020000; |
Ben Skeggs | a002fec | 2011-08-04 11:04:47 +1000 | [diff] [blame] | 216 | } else { |
| 217 | nv_encoder->dp.datarate = crtc->mode->clock * 24 / 8; |
Ben Skeggs | 46959b7 | 2011-07-01 15:51:49 +1000 | [diff] [blame] | 218 | mode_ctl |= 0x00050000; |
Ben Skeggs | a002fec | 2011-08-04 11:04:47 +1000 | [diff] [blame] | 219 | } |
Ben Skeggs | 46959b7 | 2011-07-01 15:51:49 +1000 | [diff] [blame] | 220 | |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 221 | if (nv_encoder->dcb->sorconf.link & 1) |
| 222 | mode_ctl |= 0x00000800; |
| 223 | else |
| 224 | mode_ctl |= 0x00000900; |
| 225 | break; |
| 226 | default: |
| 227 | break; |
| 228 | } |
| 229 | |
| 230 | if (crtc->index == 1) |
| 231 | mode_ctl |= NV50_EVO_SOR_MODE_CTRL_CRTC1; |
| 232 | else |
| 233 | mode_ctl |= NV50_EVO_SOR_MODE_CTRL_CRTC0; |
| 234 | |
| 235 | if (adjusted_mode->flags & DRM_MODE_FLAG_NHSYNC) |
| 236 | mode_ctl |= NV50_EVO_SOR_MODE_CTRL_NHSYNC; |
| 237 | |
| 238 | if (adjusted_mode->flags & DRM_MODE_FLAG_NVSYNC) |
| 239 | mode_ctl |= NV50_EVO_SOR_MODE_CTRL_NVSYNC; |
| 240 | |
Ben Skeggs | a002fec | 2011-08-04 11:04:47 +1000 | [diff] [blame] | 241 | nv50_sor_dpms(encoder, DRM_MODE_DPMS_ON); |
| 242 | |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 243 | ret = RING_SPACE(evo, 2); |
| 244 | if (ret) { |
| 245 | NV_ERROR(dev, "no space while connecting SOR\n"); |
| 246 | return; |
| 247 | } |
| 248 | BEGIN_RING(evo, 0, NV50_EVO_SOR(nv_encoder->or, MODE_CTRL), 1); |
| 249 | OUT_RING(evo, mode_ctl); |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 250 | |
| 251 | nv_encoder->crtc = encoder->crtc; |
| 252 | } |
| 253 | |
| 254 | static struct drm_crtc * |
| 255 | nv50_sor_crtc_get(struct drm_encoder *encoder) |
| 256 | { |
| 257 | return nouveau_encoder(encoder)->crtc; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 258 | } |
| 259 | |
| 260 | static const struct drm_encoder_helper_funcs nv50_sor_helper_funcs = { |
| 261 | .dpms = nv50_sor_dpms, |
| 262 | .save = nv50_sor_save, |
| 263 | .restore = nv50_sor_restore, |
| 264 | .mode_fixup = nv50_sor_mode_fixup, |
| 265 | .prepare = nv50_sor_prepare, |
| 266 | .commit = nv50_sor_commit, |
| 267 | .mode_set = nv50_sor_mode_set, |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 268 | .get_crtc = nv50_sor_crtc_get, |
| 269 | .detect = NULL, |
| 270 | .disable = nv50_sor_disconnect |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 271 | }; |
| 272 | |
| 273 | static void |
| 274 | nv50_sor_destroy(struct drm_encoder *encoder) |
| 275 | { |
| 276 | struct nouveau_encoder *nv_encoder = nouveau_encoder(encoder); |
| 277 | |
| 278 | if (!encoder) |
| 279 | return; |
| 280 | |
Maarten Maathuis | ef2bb50 | 2009-12-13 16:53:12 +0100 | [diff] [blame] | 281 | NV_DEBUG_KMS(encoder->dev, "\n"); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 282 | |
| 283 | drm_encoder_cleanup(encoder); |
| 284 | |
| 285 | kfree(nv_encoder); |
| 286 | } |
| 287 | |
| 288 | static const struct drm_encoder_funcs nv50_sor_encoder_funcs = { |
| 289 | .destroy = nv50_sor_destroy, |
| 290 | }; |
| 291 | |
| 292 | int |
Ben Skeggs | 8f1a608 | 2010-06-28 14:35:50 +1000 | [diff] [blame] | 293 | nv50_sor_create(struct drm_connector *connector, struct dcb_entry *entry) |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 294 | { |
| 295 | struct nouveau_encoder *nv_encoder = NULL; |
Ben Skeggs | 8f1a608 | 2010-06-28 14:35:50 +1000 | [diff] [blame] | 296 | struct drm_device *dev = connector->dev; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 297 | struct drm_encoder *encoder; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 298 | int type; |
| 299 | |
Maarten Maathuis | ef2bb50 | 2009-12-13 16:53:12 +0100 | [diff] [blame] | 300 | NV_DEBUG_KMS(dev, "\n"); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 301 | |
| 302 | switch (entry->type) { |
| 303 | case OUTPUT_TMDS: |
Ben Skeggs | 8f1a608 | 2010-06-28 14:35:50 +1000 | [diff] [blame] | 304 | case OUTPUT_DP: |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 305 | type = DRM_MODE_ENCODER_TMDS; |
| 306 | break; |
| 307 | case OUTPUT_LVDS: |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 308 | type = DRM_MODE_ENCODER_LVDS; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 309 | break; |
| 310 | default: |
| 311 | return -EINVAL; |
| 312 | } |
| 313 | |
| 314 | nv_encoder = kzalloc(sizeof(*nv_encoder), GFP_KERNEL); |
| 315 | if (!nv_encoder) |
| 316 | return -ENOMEM; |
| 317 | encoder = to_drm_encoder(nv_encoder); |
| 318 | |
| 319 | nv_encoder->dcb = entry; |
| 320 | nv_encoder->or = ffs(entry->or) - 1; |
Ben Skeggs | ec7fc4a | 2010-07-01 15:33:45 +1000 | [diff] [blame] | 321 | nv_encoder->last_dpms = DRM_MODE_DPMS_OFF; |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 322 | |
| 323 | drm_encoder_init(dev, encoder, &nv50_sor_encoder_funcs, type); |
| 324 | drm_encoder_helper_add(encoder, &nv50_sor_helper_funcs); |
| 325 | |
| 326 | encoder->possible_crtcs = entry->heads; |
| 327 | encoder->possible_clones = 0; |
| 328 | |
Ben Skeggs | 8f1a608 | 2010-06-28 14:35:50 +1000 | [diff] [blame] | 329 | drm_mode_connector_attach_encoder(connector, encoder); |
Ben Skeggs | 6ee7386 | 2009-12-11 19:24:15 +1000 | [diff] [blame] | 330 | return 0; |
| 331 | } |