blob: a9608a2e5a29896f251523939ac9dfc4da1c2241 [file] [log] [blame]
Liviu Dudauad49f862016-03-07 10:00:53 +00001/*
2 * (C) COPYRIGHT 2016 ARM Limited. All rights reserved.
3 * Author: Liviu Dudau <Liviu.Dudau@arm.com>
4 *
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
8 * of such GNU licence.
9 *
10 * ARM Mali DP500/DP550/DP650 KMS/DRM driver
11 */
12
13#include <linux/module.h>
14#include <linux/clk.h>
15#include <linux/component.h>
16#include <linux/of_device.h>
17#include <linux/of_graph.h>
18#include <linux/of_reserved_mem.h>
19
20#include <drm/drmP.h>
21#include <drm/drm_atomic.h>
22#include <drm/drm_atomic_helper.h>
23#include <drm/drm_crtc.h>
24#include <drm/drm_crtc_helper.h>
Liviu Dudauad49f862016-03-07 10:00:53 +000025#include <drm/drm_fb_cma_helper.h>
26#include <drm/drm_gem_cma_helper.h>
27#include <drm/drm_of.h>
28
29#include "malidp_drv.h"
30#include "malidp_regs.h"
31#include "malidp_hw.h"
32
33#define MALIDP_CONF_VALID_TIMEOUT 250
34
35/*
36 * set the "config valid" bit and wait until the hardware acts on it
37 */
38static int malidp_set_and_wait_config_valid(struct drm_device *drm)
39{
40 struct malidp_drm *malidp = drm->dev_private;
41 struct malidp_hw_device *hwdev = malidp->dev;
42 int ret;
43
Liviu Dudauaad38962016-07-21 16:09:38 +010044 atomic_set(&malidp->config_valid, 0);
Liviu Dudauad49f862016-03-07 10:00:53 +000045 hwdev->set_config_valid(hwdev);
46 /* don't wait for config_valid flag if we are in config mode */
47 if (hwdev->in_config_mode(hwdev))
48 return 0;
49
50 ret = wait_event_interruptible_timeout(malidp->wq,
51 atomic_read(&malidp->config_valid) == 1,
52 msecs_to_jiffies(MALIDP_CONF_VALID_TIMEOUT));
53
54 return (ret > 0) ? 0 : -ETIMEDOUT;
55}
56
57static void malidp_output_poll_changed(struct drm_device *drm)
58{
59 struct malidp_drm *malidp = drm->dev_private;
60
61 drm_fbdev_cma_hotplug_event(malidp->fbdev);
62}
63
64static void malidp_atomic_commit_hw_done(struct drm_atomic_state *state)
65{
66 struct drm_pending_vblank_event *event;
67 struct drm_device *drm = state->dev;
68 struct malidp_drm *malidp = drm->dev_private;
69 int ret = malidp_set_and_wait_config_valid(drm);
70
71 if (ret)
72 DRM_DEBUG_DRIVER("timed out waiting for updated configuration\n");
73
74 event = malidp->crtc.state->event;
75 if (event) {
76 malidp->crtc.state->event = NULL;
77
78 spin_lock_irq(&drm->event_lock);
79 if (drm_crtc_vblank_get(&malidp->crtc) == 0)
80 drm_crtc_arm_vblank_event(&malidp->crtc, event);
81 else
82 drm_crtc_send_vblank_event(&malidp->crtc, event);
83 spin_unlock_irq(&drm->event_lock);
84 }
85 drm_atomic_helper_commit_hw_done(state);
86}
87
88static void malidp_atomic_commit_tail(struct drm_atomic_state *state)
89{
90 struct drm_device *drm = state->dev;
91
92 drm_atomic_helper_commit_modeset_disables(drm, state);
93 drm_atomic_helper_commit_modeset_enables(drm, state);
Brian Starkeyfe37ed62016-10-24 14:55:17 +010094 drm_atomic_helper_commit_planes(drm, state, 0);
Liviu Dudauad49f862016-03-07 10:00:53 +000095
96 malidp_atomic_commit_hw_done(state);
97
98 drm_atomic_helper_wait_for_vblanks(drm, state);
99
100 drm_atomic_helper_cleanup_planes(drm, state);
101}
102
Laurent Pincharta4b10cc2017-01-02 11:16:13 +0200103static const struct drm_mode_config_helper_funcs malidp_mode_config_helpers = {
Liviu Dudauad49f862016-03-07 10:00:53 +0000104 .atomic_commit_tail = malidp_atomic_commit_tail,
105};
106
107static const struct drm_mode_config_funcs malidp_mode_config_funcs = {
108 .fb_create = drm_fb_cma_create,
109 .output_poll_changed = malidp_output_poll_changed,
110 .atomic_check = drm_atomic_helper_check,
111 .atomic_commit = drm_atomic_helper_commit,
112};
113
Liviu Dudauad49f862016-03-07 10:00:53 +0000114static int malidp_init(struct drm_device *drm)
115{
116 int ret;
117 struct malidp_drm *malidp = drm->dev_private;
118 struct malidp_hw_device *hwdev = malidp->dev;
119
120 drm_mode_config_init(drm);
121
122 drm->mode_config.min_width = hwdev->min_line_size;
123 drm->mode_config.min_height = hwdev->min_line_size;
124 drm->mode_config.max_width = hwdev->max_line_size;
125 drm->mode_config.max_height = hwdev->max_line_size;
126 drm->mode_config.funcs = &malidp_mode_config_funcs;
127 drm->mode_config.helper_private = &malidp_mode_config_helpers;
128
129 ret = malidp_crtc_init(drm);
130 if (ret) {
131 drm_mode_config_cleanup(drm);
132 return ret;
133 }
134
135 return 0;
136}
137
Brian Starkeyde9c4812016-10-11 15:26:06 +0100138static void malidp_fini(struct drm_device *drm)
139{
140 malidp_de_planes_destroy(drm);
141 drm_mode_config_cleanup(drm);
142}
143
Liviu Dudauad49f862016-03-07 10:00:53 +0000144static int malidp_irq_init(struct platform_device *pdev)
145{
146 int irq_de, irq_se, ret = 0;
147 struct drm_device *drm = dev_get_drvdata(&pdev->dev);
148
149 /* fetch the interrupts from DT */
150 irq_de = platform_get_irq_byname(pdev, "DE");
151 if (irq_de < 0) {
152 DRM_ERROR("no 'DE' IRQ specified!\n");
153 return irq_de;
154 }
155 irq_se = platform_get_irq_byname(pdev, "SE");
156 if (irq_se < 0) {
157 DRM_ERROR("no 'SE' IRQ specified!\n");
158 return irq_se;
159 }
160
161 ret = malidp_de_irq_init(drm, irq_de);
162 if (ret)
163 return ret;
164
165 ret = malidp_se_irq_init(drm, irq_se);
166 if (ret) {
167 malidp_de_irq_fini(drm);
168 return ret;
169 }
170
171 return 0;
172}
173
174static void malidp_lastclose(struct drm_device *drm)
175{
176 struct malidp_drm *malidp = drm->dev_private;
177
178 drm_fbdev_cma_restore_mode(malidp->fbdev);
179}
180
181static const struct file_operations fops = {
182 .owner = THIS_MODULE,
183 .open = drm_open,
184 .release = drm_release,
185 .unlocked_ioctl = drm_ioctl,
Liviu Dudauad49f862016-03-07 10:00:53 +0000186 .compat_ioctl = drm_compat_ioctl,
Liviu Dudauad49f862016-03-07 10:00:53 +0000187 .poll = drm_poll,
188 .read = drm_read,
189 .llseek = noop_llseek,
190 .mmap = drm_gem_cma_mmap,
191};
192
193static struct drm_driver malidp_driver = {
194 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC |
195 DRIVER_PRIME,
196 .lastclose = malidp_lastclose,
Liviu Dudauad49f862016-03-07 10:00:53 +0000197 .gem_free_object_unlocked = drm_gem_cma_free_object,
198 .gem_vm_ops = &drm_gem_cma_vm_ops,
199 .dumb_create = drm_gem_cma_dumb_create,
200 .dumb_map_offset = drm_gem_cma_dumb_map_offset,
201 .dumb_destroy = drm_gem_dumb_destroy,
202 .prime_handle_to_fd = drm_gem_prime_handle_to_fd,
203 .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
204 .gem_prime_export = drm_gem_prime_export,
205 .gem_prime_import = drm_gem_prime_import,
206 .gem_prime_get_sg_table = drm_gem_cma_prime_get_sg_table,
207 .gem_prime_import_sg_table = drm_gem_cma_prime_import_sg_table,
208 .gem_prime_vmap = drm_gem_cma_prime_vmap,
209 .gem_prime_vunmap = drm_gem_cma_prime_vunmap,
210 .gem_prime_mmap = drm_gem_cma_prime_mmap,
211 .fops = &fops,
212 .name = "mali-dp",
213 .desc = "ARM Mali Display Processor driver",
214 .date = "20160106",
215 .major = 1,
216 .minor = 0,
217};
218
219static const struct of_device_id malidp_drm_of_match[] = {
220 {
221 .compatible = "arm,mali-dp500",
222 .data = &malidp_device[MALIDP_500]
223 },
224 {
225 .compatible = "arm,mali-dp550",
226 .data = &malidp_device[MALIDP_550]
227 },
228 {
229 .compatible = "arm,mali-dp650",
230 .data = &malidp_device[MALIDP_650]
231 },
232 {},
233};
234MODULE_DEVICE_TABLE(of, malidp_drm_of_match);
235
Mihail Atanassov592d8c82017-01-23 13:46:41 +0000236static bool malidp_is_compatible_hw_id(struct malidp_hw_device *hwdev,
237 const struct of_device_id *dev_id)
238{
239 u32 core_id;
240 const char *compatstr_dp500 = "arm,mali-dp500";
241 bool is_dp500;
242 bool dt_is_dp500;
243
244 /*
245 * The DP500 CORE_ID register is in a different location, so check it
246 * first. If the product id field matches, then this is DP500, otherwise
247 * check the DP550/650 CORE_ID register.
248 */
249 core_id = malidp_hw_read(hwdev, MALIDP500_DC_BASE + MALIDP_DE_CORE_ID);
250 /* Offset 0x18 will never read 0x500 on products other than DP500. */
251 is_dp500 = (MALIDP_PRODUCT_ID(core_id) == 0x500);
252 dt_is_dp500 = strnstr(dev_id->compatible, compatstr_dp500,
253 sizeof(dev_id->compatible)) != NULL;
254 if (is_dp500 != dt_is_dp500) {
255 DRM_ERROR("Device-tree expects %s, but hardware %s DP500.\n",
256 dev_id->compatible, is_dp500 ? "is" : "is not");
257 return false;
258 } else if (!dt_is_dp500) {
259 u16 product_id;
260 char buf[32];
261
262 core_id = malidp_hw_read(hwdev,
263 MALIDP550_DC_BASE + MALIDP_DE_CORE_ID);
264 product_id = MALIDP_PRODUCT_ID(core_id);
265 snprintf(buf, sizeof(buf), "arm,mali-dp%X", product_id);
266 if (!strnstr(dev_id->compatible, buf,
267 sizeof(dev_id->compatible))) {
268 DRM_ERROR("Device-tree expects %s, but hardware is DP%03X.\n",
269 dev_id->compatible, product_id);
270 return false;
271 }
272 }
273 return true;
274}
275
Mihail Atanassov4d6000e2017-01-23 13:46:42 +0000276static bool malidp_has_sufficient_address_space(const struct resource *res,
277 const struct of_device_id *dev_id)
278{
279 resource_size_t res_size = resource_size(res);
280 const char *compatstr_dp500 = "arm,mali-dp500";
281
282 if (!strnstr(dev_id->compatible, compatstr_dp500,
283 sizeof(dev_id->compatible)))
284 return res_size >= MALIDP550_ADDR_SPACE_SIZE;
285 else if (res_size < MALIDP500_ADDR_SPACE_SIZE)
286 return false;
287 return true;
288}
289
Liviu Dudauad49f862016-03-07 10:00:53 +0000290#define MAX_OUTPUT_CHANNELS 3
291
292static int malidp_bind(struct device *dev)
293{
294 struct resource *res;
295 struct drm_device *drm;
Brian Starkey3c317602016-07-26 17:15:25 +0100296 struct device_node *ep;
Liviu Dudauad49f862016-03-07 10:00:53 +0000297 struct malidp_drm *malidp;
298 struct malidp_hw_device *hwdev;
299 struct platform_device *pdev = to_platform_device(dev);
Mihail Atanassov592d8c82017-01-23 13:46:41 +0000300 struct of_device_id const *dev_id;
Liviu Dudauad49f862016-03-07 10:00:53 +0000301 /* number of lines for the R, G and B output */
302 u8 output_width[MAX_OUTPUT_CHANNELS];
303 int ret = 0, i;
304 u32 version, out_depth = 0;
305
306 malidp = devm_kzalloc(dev, sizeof(*malidp), GFP_KERNEL);
307 if (!malidp)
308 return -ENOMEM;
309
310 hwdev = devm_kzalloc(dev, sizeof(*hwdev), GFP_KERNEL);
311 if (!hwdev)
312 return -ENOMEM;
313
314 /*
315 * copy the associated data from malidp_drm_of_match to avoid
316 * having to keep a reference to the OF node after binding
317 */
318 memcpy(hwdev, of_device_get_match_data(dev), sizeof(*hwdev));
319 malidp->dev = hwdev;
320
Liviu Dudauad49f862016-03-07 10:00:53 +0000321
322 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
323 hwdev->regs = devm_ioremap_resource(dev, res);
Wei Yongjun1a9d71f2016-07-28 02:09:13 +0000324 if (IS_ERR(hwdev->regs))
Liviu Dudauad49f862016-03-07 10:00:53 +0000325 return PTR_ERR(hwdev->regs);
Liviu Dudauad49f862016-03-07 10:00:53 +0000326
327 hwdev->pclk = devm_clk_get(dev, "pclk");
328 if (IS_ERR(hwdev->pclk))
329 return PTR_ERR(hwdev->pclk);
330
331 hwdev->aclk = devm_clk_get(dev, "aclk");
332 if (IS_ERR(hwdev->aclk))
333 return PTR_ERR(hwdev->aclk);
334
335 hwdev->mclk = devm_clk_get(dev, "mclk");
336 if (IS_ERR(hwdev->mclk))
337 return PTR_ERR(hwdev->mclk);
338
339 hwdev->pxlclk = devm_clk_get(dev, "pxlclk");
340 if (IS_ERR(hwdev->pxlclk))
341 return PTR_ERR(hwdev->pxlclk);
342
343 /* Get the optional framebuffer memory resource */
344 ret = of_reserved_mem_device_init(dev);
345 if (ret && ret != -ENODEV)
346 return ret;
347
348 drm = drm_dev_alloc(&malidp_driver, dev);
Tom Gundersen0f288602016-09-21 16:59:19 +0200349 if (IS_ERR(drm)) {
350 ret = PTR_ERR(drm);
Liviu Dudauad49f862016-03-07 10:00:53 +0000351 goto alloc_fail;
352 }
353
354 /* Enable APB clock in order to get access to the registers */
355 clk_prepare_enable(hwdev->pclk);
356 /*
357 * Enable AXI clock and main clock so that prefetch can start once
358 * the registers are set
359 */
360 clk_prepare_enable(hwdev->aclk);
361 clk_prepare_enable(hwdev->mclk);
362
Mihail Atanassov592d8c82017-01-23 13:46:41 +0000363 dev_id = of_match_device(malidp_drm_of_match, dev);
364 if (!dev_id) {
365 ret = -EINVAL;
366 goto query_hw_fail;
367 }
368
Mihail Atanassov4d6000e2017-01-23 13:46:42 +0000369 if (!malidp_has_sufficient_address_space(res, dev_id)) {
370 DRM_ERROR("Insufficient address space in device-tree.\n");
371 ret = -EINVAL;
372 goto query_hw_fail;
373 }
374
Mihail Atanassov592d8c82017-01-23 13:46:41 +0000375 if (!malidp_is_compatible_hw_id(hwdev, dev_id)) {
376 ret = -EINVAL;
377 goto query_hw_fail;
378 }
379
Liviu Dudauad49f862016-03-07 10:00:53 +0000380 ret = hwdev->query_hw(hwdev);
381 if (ret) {
382 DRM_ERROR("Invalid HW configuration\n");
383 goto query_hw_fail;
384 }
385
386 version = malidp_hw_read(hwdev, hwdev->map.dc_base + MALIDP_DE_CORE_ID);
387 DRM_INFO("found ARM Mali-DP%3x version r%dp%d\n", version >> 16,
388 (version >> 12) & 0xf, (version >> 8) & 0xf);
389
390 /* set the number of lines used for output of RGB data */
391 ret = of_property_read_u8_array(dev->of_node,
392 "arm,malidp-output-port-lines",
393 output_width, MAX_OUTPUT_CHANNELS);
394 if (ret)
395 goto query_hw_fail;
396
397 for (i = 0; i < MAX_OUTPUT_CHANNELS; i++)
398 out_depth = (out_depth << 8) | (output_width[i] & 0xf);
399 malidp_hw_write(hwdev, out_depth, hwdev->map.out_depth_base);
400
401 drm->dev_private = malidp;
402 dev_set_drvdata(dev, drm);
403 atomic_set(&malidp->config_valid, 0);
404 init_waitqueue_head(&malidp->wq);
405
406 ret = malidp_init(drm);
407 if (ret < 0)
408 goto init_fail;
409
Liviu Dudauad49f862016-03-07 10:00:53 +0000410 /* Set the CRTC's port so that the encoder component can find it */
Brian Starkey3c317602016-07-26 17:15:25 +0100411 ep = of_graph_get_next_endpoint(dev->of_node, NULL);
Wei Yongjun12ae57a2016-07-28 02:14:26 +0000412 if (!ep) {
413 ret = -EINVAL;
Brian Starkey3c317602016-07-26 17:15:25 +0100414 goto port_fail;
Wei Yongjun12ae57a2016-07-28 02:14:26 +0000415 }
Brian Starkey3c317602016-07-26 17:15:25 +0100416 malidp->crtc.port = of_get_next_parent(ep);
Liviu Dudauad49f862016-03-07 10:00:53 +0000417
418 ret = component_bind_all(dev, drm);
Liviu Dudauad49f862016-03-07 10:00:53 +0000419 if (ret) {
420 DRM_ERROR("Failed to bind all components\n");
421 goto bind_fail;
422 }
423
424 ret = malidp_irq_init(pdev);
425 if (ret < 0)
426 goto irq_init_fail;
427
Liviu Dudaua6a7b9a2016-07-29 14:21:29 +0100428 drm->irq_enabled = true;
429
Liviu Dudauad49f862016-03-07 10:00:53 +0000430 ret = drm_vblank_init(drm, drm->mode_config.num_crtc);
431 if (ret < 0) {
432 DRM_ERROR("failed to initialise vblank\n");
433 goto vblank_fail;
434 }
435
436 drm_mode_config_reset(drm);
437
Gabriel Krisman Bertazie4563f62017-02-02 14:26:40 -0200438 malidp->fbdev = drm_fbdev_cma_init(drm, 32,
Liviu Dudauad49f862016-03-07 10:00:53 +0000439 drm->mode_config.num_connector);
440
441 if (IS_ERR(malidp->fbdev)) {
442 ret = PTR_ERR(malidp->fbdev);
443 malidp->fbdev = NULL;
444 goto fbdev_fail;
445 }
446
447 drm_kms_helper_poll_init(drm);
Brian Starkey90731c22016-10-24 15:27:59 +0100448
449 ret = drm_dev_register(drm, 0);
450 if (ret)
451 goto register_fail;
452
Liviu Dudauad49f862016-03-07 10:00:53 +0000453 return 0;
454
Brian Starkey90731c22016-10-24 15:27:59 +0100455register_fail:
456 if (malidp->fbdev) {
457 drm_fbdev_cma_fini(malidp->fbdev);
458 malidp->fbdev = NULL;
459 }
Liviu Dudauad49f862016-03-07 10:00:53 +0000460fbdev_fail:
461 drm_vblank_cleanup(drm);
462vblank_fail:
463 malidp_se_irq_fini(drm);
464 malidp_de_irq_fini(drm);
Liviu Dudaua6a7b9a2016-07-29 14:21:29 +0100465 drm->irq_enabled = false;
Liviu Dudauad49f862016-03-07 10:00:53 +0000466irq_init_fail:
467 component_unbind_all(dev, drm);
468bind_fail:
Brian Starkey3c317602016-07-26 17:15:25 +0100469 of_node_put(malidp->crtc.port);
470 malidp->crtc.port = NULL;
471port_fail:
Brian Starkeyde9c4812016-10-11 15:26:06 +0100472 malidp_fini(drm);
Liviu Dudauad49f862016-03-07 10:00:53 +0000473init_fail:
474 drm->dev_private = NULL;
475 dev_set_drvdata(dev, NULL);
476query_hw_fail:
477 clk_disable_unprepare(hwdev->mclk);
478 clk_disable_unprepare(hwdev->aclk);
479 clk_disable_unprepare(hwdev->pclk);
480 drm_dev_unref(drm);
481alloc_fail:
482 of_reserved_mem_device_release(dev);
483
484 return ret;
485}
486
487static void malidp_unbind(struct device *dev)
488{
489 struct drm_device *drm = dev_get_drvdata(dev);
490 struct malidp_drm *malidp = drm->dev_private;
491 struct malidp_hw_device *hwdev = malidp->dev;
492
Brian Starkey90731c22016-10-24 15:27:59 +0100493 drm_dev_unregister(drm);
Liviu Dudauad49f862016-03-07 10:00:53 +0000494 if (malidp->fbdev) {
495 drm_fbdev_cma_fini(malidp->fbdev);
496 malidp->fbdev = NULL;
497 }
498 drm_kms_helper_poll_fini(drm);
499 malidp_se_irq_fini(drm);
500 malidp_de_irq_fini(drm);
501 drm_vblank_cleanup(drm);
502 component_unbind_all(dev, drm);
Brian Starkey3c317602016-07-26 17:15:25 +0100503 of_node_put(malidp->crtc.port);
504 malidp->crtc.port = NULL;
Brian Starkeyde9c4812016-10-11 15:26:06 +0100505 malidp_fini(drm);
Liviu Dudauad49f862016-03-07 10:00:53 +0000506 drm->dev_private = NULL;
507 dev_set_drvdata(dev, NULL);
508 clk_disable_unprepare(hwdev->mclk);
509 clk_disable_unprepare(hwdev->aclk);
510 clk_disable_unprepare(hwdev->pclk);
511 drm_dev_unref(drm);
512 of_reserved_mem_device_release(dev);
513}
514
515static const struct component_master_ops malidp_master_ops = {
516 .bind = malidp_bind,
517 .unbind = malidp_unbind,
518};
519
520static int malidp_compare_dev(struct device *dev, void *data)
521{
522 struct device_node *np = data;
523
524 return dev->of_node == np;
525}
526
527static int malidp_platform_probe(struct platform_device *pdev)
528{
529 struct device_node *port, *ep;
530 struct component_match *match = NULL;
531
532 if (!pdev->dev.of_node)
533 return -ENODEV;
534
535 /* there is only one output port inside each device, find it */
536 ep = of_graph_get_next_endpoint(pdev->dev.of_node, NULL);
537 if (!ep)
538 return -ENODEV;
539
540 if (!of_device_is_available(ep)) {
541 of_node_put(ep);
542 return -ENODEV;
543 }
544
545 /* add the remote encoder port as component */
546 port = of_graph_get_remote_port_parent(ep);
547 of_node_put(ep);
548 if (!port || !of_device_is_available(port)) {
549 of_node_put(port);
550 return -EAGAIN;
551 }
552
Russell King97ac0e42016-10-19 11:28:27 +0100553 drm_of_component_match_add(&pdev->dev, &match, malidp_compare_dev,
554 port);
555 of_node_put(port);
Liviu Dudauad49f862016-03-07 10:00:53 +0000556 return component_master_add_with_match(&pdev->dev, &malidp_master_ops,
557 match);
558}
559
560static int malidp_platform_remove(struct platform_device *pdev)
561{
562 component_master_del(&pdev->dev, &malidp_master_ops);
563 return 0;
564}
565
566static struct platform_driver malidp_platform_driver = {
567 .probe = malidp_platform_probe,
568 .remove = malidp_platform_remove,
569 .driver = {
570 .name = "mali-dp",
571 .of_match_table = malidp_drm_of_match,
572 },
573};
574
575module_platform_driver(malidp_platform_driver);
576
577MODULE_AUTHOR("Liviu Dudau <Liviu.Dudau@arm.com>");
578MODULE_DESCRIPTION("ARM Mali DP DRM driver");
579MODULE_LICENSE("GPL v2");