diff options
author | Rob Clark <robdclark@gmail.com> | 2012-12-18 18:34:16 -0500 |
---|---|---|
committer | Rob Clark <robdclark@gmail.com> | 2013-02-19 17:57:45 -0500 |
commit | 0d4bbaf9f3e5b9f52150ddc5a4ee8b0ab83a440b (patch) | |
tree | ff5634b4f3bbb0b100a14bea54a6b1f6b672b3ef /drivers/gpu/drm/tilcdc | |
parent | 6e8de0bd6a51fdeebd5d975c4fcc426f730b339b (diff) |
drm/tilcdc: add support for LCD panels (v5)
Add an output panel driver for LCD panels. Tested with LCD3 cape on
beaglebone.
v1: original
v2: s/of_find_node_by_name()/of_get_child_by_name()/ from Pantelis
Antoniou
v3: add backlight support
v4: rebase to latest of video timing helpers
v5: remove some unneeded fields from panel-info struct, add DT bindings
docs
Signed-off-by: Rob Clark <robdclark@gmail.com>
Tested-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'drivers/gpu/drm/tilcdc')
-rw-r--r-- | drivers/gpu/drm/tilcdc/Kconfig | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/Makefile | 1 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_drv.c | 3 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_panel.c | 436 | ||||
-rw-r--r-- | drivers/gpu/drm/tilcdc/tilcdc_panel.h | 26 |
5 files changed, 469 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tilcdc/Kconfig b/drivers/gpu/drm/tilcdc/Kconfig index ee9b592d59eb..ae14fd6ea924 100644 --- a/drivers/gpu/drm/tilcdc/Kconfig +++ b/drivers/gpu/drm/tilcdc/Kconfig | |||
@@ -4,6 +4,9 @@ config DRM_TILCDC | |||
4 | select DRM_KMS_HELPER | 4 | select DRM_KMS_HELPER |
5 | select DRM_KMS_CMA_HELPER | 5 | select DRM_KMS_CMA_HELPER |
6 | select DRM_GEM_CMA_HELPER | 6 | select DRM_GEM_CMA_HELPER |
7 | select OF_VIDEOMODE | ||
8 | select OF_DISPLAY_TIMING | ||
9 | select BACKLIGHT_CLASS_DEVICE | ||
7 | help | 10 | help |
8 | Choose this option if you have an TI SoC with LCDC display | 11 | Choose this option if you have an TI SoC with LCDC display |
9 | controller, for example AM33xx in beagle-bone, DA8xx, or | 12 | controller, for example AM33xx in beagle-bone, DA8xx, or |
diff --git a/drivers/gpu/drm/tilcdc/Makefile b/drivers/gpu/drm/tilcdc/Makefile index aa9097edbaf8..deda656b10e7 100644 --- a/drivers/gpu/drm/tilcdc/Makefile +++ b/drivers/gpu/drm/tilcdc/Makefile | |||
@@ -4,6 +4,7 @@ tilcdc-y := \ | |||
4 | tilcdc_crtc.o \ | 4 | tilcdc_crtc.o \ |
5 | tilcdc_tfp410.o \ | 5 | tilcdc_tfp410.o \ |
6 | tilcdc_slave.o \ | 6 | tilcdc_slave.o \ |
7 | tilcdc_panel.o \ | ||
7 | tilcdc_drv.o | 8 | tilcdc_drv.o |
8 | 9 | ||
9 | obj-$(CONFIG_DRM_TILCDC) += tilcdc.o | 10 | obj-$(CONFIG_DRM_TILCDC) += tilcdc.o |
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_drv.c b/drivers/gpu/drm/tilcdc/tilcdc_drv.c index 25f3add2a754..c5b592dc1970 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_drv.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_drv.c | |||
@@ -21,6 +21,7 @@ | |||
21 | #include "tilcdc_regs.h" | 21 | #include "tilcdc_regs.h" |
22 | #include "tilcdc_tfp410.h" | 22 | #include "tilcdc_tfp410.h" |
23 | #include "tilcdc_slave.h" | 23 | #include "tilcdc_slave.h" |
24 | #include "tilcdc_panel.h" | ||
24 | 25 | ||
25 | #include "drm_fb_helper.h" | 26 | #include "drm_fb_helper.h" |
26 | 27 | ||
@@ -589,6 +590,7 @@ static int __init tilcdc_drm_init(void) | |||
589 | DBG("init"); | 590 | DBG("init"); |
590 | tilcdc_tfp410_init(); | 591 | tilcdc_tfp410_init(); |
591 | tilcdc_slave_init(); | 592 | tilcdc_slave_init(); |
593 | tilcdc_panel_init(); | ||
592 | return platform_driver_register(&tilcdc_platform_driver); | 594 | return platform_driver_register(&tilcdc_platform_driver); |
593 | } | 595 | } |
594 | 596 | ||
@@ -597,6 +599,7 @@ static void __exit tilcdc_drm_fini(void) | |||
597 | DBG("fini"); | 599 | DBG("fini"); |
598 | tilcdc_tfp410_fini(); | 600 | tilcdc_tfp410_fini(); |
599 | tilcdc_slave_fini(); | 601 | tilcdc_slave_fini(); |
602 | tilcdc_panel_fini(); | ||
600 | platform_driver_unregister(&tilcdc_platform_driver); | 603 | platform_driver_unregister(&tilcdc_platform_driver); |
601 | } | 604 | } |
602 | 605 | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.c b/drivers/gpu/drm/tilcdc/tilcdc_panel.c new file mode 100644 index 000000000000..580b74e2022b --- /dev/null +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.c | |||
@@ -0,0 +1,436 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Texas Instruments | ||
3 | * Author: Rob Clark <robdclark@gmail.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #include <linux/pinctrl/pinmux.h> | ||
19 | #include <linux/pinctrl/consumer.h> | ||
20 | #include <linux/backlight.h> | ||
21 | #include <video/display_timing.h> | ||
22 | #include <video/of_display_timing.h> | ||
23 | #include <video/videomode.h> | ||
24 | |||
25 | #include "tilcdc_drv.h" | ||
26 | |||
27 | struct panel_module { | ||
28 | struct tilcdc_module base; | ||
29 | struct tilcdc_panel_info *info; | ||
30 | struct display_timings *timings; | ||
31 | struct backlight_device *backlight; | ||
32 | }; | ||
33 | #define to_panel_module(x) container_of(x, struct panel_module, base) | ||
34 | |||
35 | |||
36 | /* | ||
37 | * Encoder: | ||
38 | */ | ||
39 | |||
40 | struct panel_encoder { | ||
41 | struct drm_encoder base; | ||
42 | struct panel_module *mod; | ||
43 | }; | ||
44 | #define to_panel_encoder(x) container_of(x, struct panel_encoder, base) | ||
45 | |||
46 | |||
47 | static void panel_encoder_destroy(struct drm_encoder *encoder) | ||
48 | { | ||
49 | struct panel_encoder *panel_encoder = to_panel_encoder(encoder); | ||
50 | drm_encoder_cleanup(encoder); | ||
51 | kfree(panel_encoder); | ||
52 | } | ||
53 | |||
54 | static void panel_encoder_dpms(struct drm_encoder *encoder, int mode) | ||
55 | { | ||
56 | struct panel_encoder *panel_encoder = to_panel_encoder(encoder); | ||
57 | struct backlight_device *backlight = panel_encoder->mod->backlight; | ||
58 | |||
59 | if (!backlight) | ||
60 | return; | ||
61 | |||
62 | backlight->props.power = mode == DRM_MODE_DPMS_ON | ||
63 | ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; | ||
64 | backlight_update_status(backlight); | ||
65 | } | ||
66 | |||
67 | static bool panel_encoder_mode_fixup(struct drm_encoder *encoder, | ||
68 | const struct drm_display_mode *mode, | ||
69 | struct drm_display_mode *adjusted_mode) | ||
70 | { | ||
71 | /* nothing needed */ | ||
72 | return true; | ||
73 | } | ||
74 | |||
75 | static void panel_encoder_prepare(struct drm_encoder *encoder) | ||
76 | { | ||
77 | struct panel_encoder *panel_encoder = to_panel_encoder(encoder); | ||
78 | panel_encoder_dpms(encoder, DRM_MODE_DPMS_OFF); | ||
79 | tilcdc_crtc_set_panel_info(encoder->crtc, panel_encoder->mod->info); | ||
80 | } | ||
81 | |||
82 | static void panel_encoder_commit(struct drm_encoder *encoder) | ||
83 | { | ||
84 | panel_encoder_dpms(encoder, DRM_MODE_DPMS_ON); | ||
85 | } | ||
86 | |||
87 | static void panel_encoder_mode_set(struct drm_encoder *encoder, | ||
88 | struct drm_display_mode *mode, | ||
89 | struct drm_display_mode *adjusted_mode) | ||
90 | { | ||
91 | /* nothing needed */ | ||
92 | } | ||
93 | |||
94 | static const struct drm_encoder_funcs panel_encoder_funcs = { | ||
95 | .destroy = panel_encoder_destroy, | ||
96 | }; | ||
97 | |||
98 | static const struct drm_encoder_helper_funcs panel_encoder_helper_funcs = { | ||
99 | .dpms = panel_encoder_dpms, | ||
100 | .mode_fixup = panel_encoder_mode_fixup, | ||
101 | .prepare = panel_encoder_prepare, | ||
102 | .commit = panel_encoder_commit, | ||
103 | .mode_set = panel_encoder_mode_set, | ||
104 | }; | ||
105 | |||
106 | static struct drm_encoder *panel_encoder_create(struct drm_device *dev, | ||
107 | struct panel_module *mod) | ||
108 | { | ||
109 | struct panel_encoder *panel_encoder; | ||
110 | struct drm_encoder *encoder; | ||
111 | int ret; | ||
112 | |||
113 | panel_encoder = kzalloc(sizeof(*panel_encoder), GFP_KERNEL); | ||
114 | if (!panel_encoder) { | ||
115 | dev_err(dev->dev, "allocation failed\n"); | ||
116 | return NULL; | ||
117 | } | ||
118 | |||
119 | panel_encoder->mod = mod; | ||
120 | |||
121 | encoder = &panel_encoder->base; | ||
122 | encoder->possible_crtcs = 1; | ||
123 | |||
124 | ret = drm_encoder_init(dev, encoder, &panel_encoder_funcs, | ||
125 | DRM_MODE_ENCODER_LVDS); | ||
126 | if (ret < 0) | ||
127 | goto fail; | ||
128 | |||
129 | drm_encoder_helper_add(encoder, &panel_encoder_helper_funcs); | ||
130 | |||
131 | return encoder; | ||
132 | |||
133 | fail: | ||
134 | panel_encoder_destroy(encoder); | ||
135 | return NULL; | ||
136 | } | ||
137 | |||
138 | /* | ||
139 | * Connector: | ||
140 | */ | ||
141 | |||
142 | struct panel_connector { | ||
143 | struct drm_connector base; | ||
144 | |||
145 | struct drm_encoder *encoder; /* our connected encoder */ | ||
146 | struct panel_module *mod; | ||
147 | }; | ||
148 | #define to_panel_connector(x) container_of(x, struct panel_connector, base) | ||
149 | |||
150 | |||
151 | static void panel_connector_destroy(struct drm_connector *connector) | ||
152 | { | ||
153 | struct panel_connector *panel_connector = to_panel_connector(connector); | ||
154 | drm_connector_cleanup(connector); | ||
155 | kfree(panel_connector); | ||
156 | } | ||
157 | |||
158 | static enum drm_connector_status panel_connector_detect( | ||
159 | struct drm_connector *connector, | ||
160 | bool force) | ||
161 | { | ||
162 | return connector_status_connected; | ||
163 | } | ||
164 | |||
165 | static int panel_connector_get_modes(struct drm_connector *connector) | ||
166 | { | ||
167 | struct drm_device *dev = connector->dev; | ||
168 | struct panel_connector *panel_connector = to_panel_connector(connector); | ||
169 | struct display_timings *timings = panel_connector->mod->timings; | ||
170 | int i; | ||
171 | |||
172 | for (i = 0; i < timings->num_timings; i++) { | ||
173 | struct drm_display_mode *mode = drm_mode_create(dev); | ||
174 | struct videomode vm; | ||
175 | |||
176 | if (videomode_from_timing(timings, &vm, i)) | ||
177 | break; | ||
178 | |||
179 | drm_display_mode_from_videomode(&vm, mode); | ||
180 | |||
181 | mode->type = DRM_MODE_TYPE_DRIVER; | ||
182 | |||
183 | if (timings->native_mode == i) | ||
184 | mode->type |= DRM_MODE_TYPE_PREFERRED; | ||
185 | |||
186 | drm_mode_set_name(mode); | ||
187 | drm_mode_probed_add(connector, mode); | ||
188 | } | ||
189 | |||
190 | return i; | ||
191 | } | ||
192 | |||
193 | static int panel_connector_mode_valid(struct drm_connector *connector, | ||
194 | struct drm_display_mode *mode) | ||
195 | { | ||
196 | struct tilcdc_drm_private *priv = connector->dev->dev_private; | ||
197 | /* our only constraints are what the crtc can generate: */ | ||
198 | return tilcdc_crtc_mode_valid(priv->crtc, mode); | ||
199 | } | ||
200 | |||
201 | static struct drm_encoder *panel_connector_best_encoder( | ||
202 | struct drm_connector *connector) | ||
203 | { | ||
204 | struct panel_connector *panel_connector = to_panel_connector(connector); | ||
205 | return panel_connector->encoder; | ||
206 | } | ||
207 | |||
208 | static const struct drm_connector_funcs panel_connector_funcs = { | ||
209 | .destroy = panel_connector_destroy, | ||
210 | .dpms = drm_helper_connector_dpms, | ||
211 | .detect = panel_connector_detect, | ||
212 | .fill_modes = drm_helper_probe_single_connector_modes, | ||
213 | }; | ||
214 | |||
215 | static const struct drm_connector_helper_funcs panel_connector_helper_funcs = { | ||
216 | .get_modes = panel_connector_get_modes, | ||
217 | .mode_valid = panel_connector_mode_valid, | ||
218 | .best_encoder = panel_connector_best_encoder, | ||
219 | }; | ||
220 | |||
221 | static struct drm_connector *panel_connector_create(struct drm_device *dev, | ||
222 | struct panel_module *mod, struct drm_encoder *encoder) | ||
223 | { | ||
224 | struct panel_connector *panel_connector; | ||
225 | struct drm_connector *connector; | ||
226 | int ret; | ||
227 | |||
228 | panel_connector = kzalloc(sizeof(*panel_connector), GFP_KERNEL); | ||
229 | if (!panel_connector) { | ||
230 | dev_err(dev->dev, "allocation failed\n"); | ||
231 | return NULL; | ||
232 | } | ||
233 | |||
234 | panel_connector->encoder = encoder; | ||
235 | panel_connector->mod = mod; | ||
236 | |||
237 | connector = &panel_connector->base; | ||
238 | |||
239 | drm_connector_init(dev, connector, &panel_connector_funcs, | ||
240 | DRM_MODE_CONNECTOR_LVDS); | ||
241 | drm_connector_helper_add(connector, &panel_connector_helper_funcs); | ||
242 | |||
243 | connector->interlace_allowed = 0; | ||
244 | connector->doublescan_allowed = 0; | ||
245 | |||
246 | ret = drm_mode_connector_attach_encoder(connector, encoder); | ||
247 | if (ret) | ||
248 | goto fail; | ||
249 | |||
250 | drm_sysfs_connector_add(connector); | ||
251 | |||
252 | return connector; | ||
253 | |||
254 | fail: | ||
255 | panel_connector_destroy(connector); | ||
256 | return NULL; | ||
257 | } | ||
258 | |||
259 | /* | ||
260 | * Module: | ||
261 | */ | ||
262 | |||
263 | static int panel_modeset_init(struct tilcdc_module *mod, struct drm_device *dev) | ||
264 | { | ||
265 | struct panel_module *panel_mod = to_panel_module(mod); | ||
266 | struct tilcdc_drm_private *priv = dev->dev_private; | ||
267 | struct drm_encoder *encoder; | ||
268 | struct drm_connector *connector; | ||
269 | |||
270 | encoder = panel_encoder_create(dev, panel_mod); | ||
271 | if (!encoder) | ||
272 | return -ENOMEM; | ||
273 | |||
274 | connector = panel_connector_create(dev, panel_mod, encoder); | ||
275 | if (!connector) | ||
276 | return -ENOMEM; | ||
277 | |||
278 | priv->encoders[priv->num_encoders++] = encoder; | ||
279 | priv->connectors[priv->num_connectors++] = connector; | ||
280 | |||
281 | return 0; | ||
282 | } | ||
283 | |||
284 | static void panel_destroy(struct tilcdc_module *mod) | ||
285 | { | ||
286 | struct panel_module *panel_mod = to_panel_module(mod); | ||
287 | |||
288 | if (panel_mod->timings) { | ||
289 | display_timings_release(panel_mod->timings); | ||
290 | kfree(panel_mod->timings); | ||
291 | } | ||
292 | |||
293 | tilcdc_module_cleanup(mod); | ||
294 | kfree(panel_mod->info); | ||
295 | kfree(panel_mod); | ||
296 | } | ||
297 | |||
298 | static const struct tilcdc_module_ops panel_module_ops = { | ||
299 | .modeset_init = panel_modeset_init, | ||
300 | .destroy = panel_destroy, | ||
301 | }; | ||
302 | |||
303 | /* | ||
304 | * Device: | ||
305 | */ | ||
306 | |||
307 | /* maybe move this somewhere common if it is needed by other outputs? */ | ||
308 | static struct tilcdc_panel_info * of_get_panel_info(struct device_node *np) | ||
309 | { | ||
310 | struct device_node *info_np; | ||
311 | struct tilcdc_panel_info *info; | ||
312 | int ret = 0; | ||
313 | |||
314 | if (!np) { | ||
315 | pr_err("%s: no devicenode given\n", __func__); | ||
316 | return NULL; | ||
317 | } | ||
318 | |||
319 | info_np = of_get_child_by_name(np, "panel-info"); | ||
320 | if (!info_np) { | ||
321 | pr_err("%s: could not find panel-info node\n", __func__); | ||
322 | return NULL; | ||
323 | } | ||
324 | |||
325 | info = kzalloc(sizeof(*info), GFP_KERNEL); | ||
326 | if (!info) { | ||
327 | pr_err("%s: allocation failed\n", __func__); | ||
328 | return NULL; | ||
329 | } | ||
330 | |||
331 | ret |= of_property_read_u32(info_np, "ac-bias", &info->ac_bias); | ||
332 | ret |= of_property_read_u32(info_np, "ac-bias-intrpt", &info->ac_bias_intrpt); | ||
333 | ret |= of_property_read_u32(info_np, "dma-burst-sz", &info->dma_burst_sz); | ||
334 | ret |= of_property_read_u32(info_np, "bpp", &info->bpp); | ||
335 | ret |= of_property_read_u32(info_np, "fdd", &info->fdd); | ||
336 | ret |= of_property_read_u32(info_np, "sync-edge", &info->sync_edge); | ||
337 | ret |= of_property_read_u32(info_np, "sync-ctrl", &info->sync_ctrl); | ||
338 | ret |= of_property_read_u32(info_np, "raster-order", &info->raster_order); | ||
339 | ret |= of_property_read_u32(info_np, "fifo-th", &info->fifo_th); | ||
340 | |||
341 | /* optional: */ | ||
342 | info->tft_alt_mode = of_property_read_bool(info_np, "tft-alt-mode"); | ||
343 | info->invert_pxl_clk = of_property_read_bool(info_np, "invert-pxl-clk"); | ||
344 | |||
345 | if (ret) { | ||
346 | pr_err("%s: error reading panel-info properties\n", __func__); | ||
347 | kfree(info); | ||
348 | return NULL; | ||
349 | } | ||
350 | |||
351 | return info; | ||
352 | } | ||
353 | |||
354 | static struct of_device_id panel_of_match[]; | ||
355 | |||
356 | static int panel_probe(struct platform_device *pdev) | ||
357 | { | ||
358 | struct device_node *node = pdev->dev.of_node; | ||
359 | struct panel_module *panel_mod; | ||
360 | struct tilcdc_module *mod; | ||
361 | struct pinctrl *pinctrl; | ||
362 | int ret = -EINVAL; | ||
363 | |||
364 | |||
365 | /* bail out early if no DT data: */ | ||
366 | if (!node) { | ||
367 | dev_err(&pdev->dev, "device-tree data is missing\n"); | ||
368 | return -ENXIO; | ||
369 | } | ||
370 | |||
371 | panel_mod = kzalloc(sizeof(*panel_mod), GFP_KERNEL); | ||
372 | if (!panel_mod) | ||
373 | return -ENOMEM; | ||
374 | |||
375 | mod = &panel_mod->base; | ||
376 | |||
377 | tilcdc_module_init(mod, "panel", &panel_module_ops); | ||
378 | |||
379 | pinctrl = devm_pinctrl_get_select_default(&pdev->dev); | ||
380 | if (IS_ERR(pinctrl)) | ||
381 | dev_warn(&pdev->dev, "pins are not configured\n"); | ||
382 | |||
383 | |||
384 | panel_mod->timings = of_get_display_timings(node); | ||
385 | if (!panel_mod->timings) { | ||
386 | dev_err(&pdev->dev, "could not get panel timings\n"); | ||
387 | goto fail; | ||
388 | } | ||
389 | |||
390 | panel_mod->info = of_get_panel_info(node); | ||
391 | if (!panel_mod->info) { | ||
392 | dev_err(&pdev->dev, "could not get panel info\n"); | ||
393 | goto fail; | ||
394 | } | ||
395 | |||
396 | panel_mod->backlight = of_find_backlight_by_node(node); | ||
397 | if (panel_mod->backlight) | ||
398 | dev_info(&pdev->dev, "found backlight\n"); | ||
399 | |||
400 | return 0; | ||
401 | |||
402 | fail: | ||
403 | panel_destroy(mod); | ||
404 | return ret; | ||
405 | } | ||
406 | |||
407 | static int panel_remove(struct platform_device *pdev) | ||
408 | { | ||
409 | return 0; | ||
410 | } | ||
411 | |||
412 | static struct of_device_id panel_of_match[] = { | ||
413 | { .compatible = "ti,tilcdc,panel", }, | ||
414 | { }, | ||
415 | }; | ||
416 | MODULE_DEVICE_TABLE(of, panel_of_match); | ||
417 | |||
418 | struct platform_driver panel_driver = { | ||
419 | .probe = panel_probe, | ||
420 | .remove = panel_remove, | ||
421 | .driver = { | ||
422 | .owner = THIS_MODULE, | ||
423 | .name = "panel", | ||
424 | .of_match_table = panel_of_match, | ||
425 | }, | ||
426 | }; | ||
427 | |||
428 | int __init tilcdc_panel_init(void) | ||
429 | { | ||
430 | return platform_driver_register(&panel_driver); | ||
431 | } | ||
432 | |||
433 | void __exit tilcdc_panel_fini(void) | ||
434 | { | ||
435 | platform_driver_unregister(&panel_driver); | ||
436 | } | ||
diff --git a/drivers/gpu/drm/tilcdc/tilcdc_panel.h b/drivers/gpu/drm/tilcdc/tilcdc_panel.h new file mode 100644 index 000000000000..7db40aacc74a --- /dev/null +++ b/drivers/gpu/drm/tilcdc/tilcdc_panel.h | |||
@@ -0,0 +1,26 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Texas Instruments | ||
3 | * Author: Rob Clark <robdclark@gmail.com> | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of the GNU General Public License version 2 as published by | ||
7 | * the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program. If not, see <http://www.gnu.org/licenses/>. | ||
16 | */ | ||
17 | |||
18 | #ifndef __TILCDC_PANEL_H__ | ||
19 | #define __TILCDC_PANEL_H__ | ||
20 | |||
21 | /* sub-module for generic lcd panel output */ | ||
22 | |||
23 | int tilcdc_panel_init(void); | ||
24 | void tilcdc_panel_fini(void); | ||
25 | |||
26 | #endif /* __TILCDC_PANEL_H__ */ | ||