dpi.c 12.6 KB
Newer Older
Tomi Valkeinen's avatar
Tomi Valkeinen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * linux/drivers/video/omap2/dss/dpi.c
 *
 * Copyright (C) 2009 Nokia Corporation
 * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>
 *
 * Some code and ideas taken from drivers/video/omap/ driver
 * by Imre Deak.
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License version 2 as published by
 * the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
 * more details.
 *
 * You should have received a copy of the GNU General Public License along with
 * this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#define DSS_SUBSYS_NAME "DPI"

#include <linux/kernel.h>
#include <linux/delay.h>
27
#include <linux/export.h>
28
#include <linux/err.h>
Tomi Valkeinen's avatar
Tomi Valkeinen committed
29
#include <linux/errno.h>
30
31
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
32
#include <linux/string.h>
Tomi Valkeinen's avatar
Tomi Valkeinen committed
33

34
#include <video/omapdss.h>
Tomi Valkeinen's avatar
Tomi Valkeinen committed
35
36

#include "dss.h"
37
#include "dss_features.h"
Tomi Valkeinen's avatar
Tomi Valkeinen committed
38
39

static struct {
40
	struct regulator *vdds_dsi_reg;
41
	struct platform_device *dsidev;
42

43
44
	struct mutex lock;

45
	struct omap_video_timings timings;
46
	struct dss_lcd_mgr_config mgr_config;
47
	int data_lines;
48
49

	struct omap_dss_output output;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
50
51
} dpi;

52
static struct platform_device *dpi_get_dsidev(enum omap_channel channel)
53
{
54
55
56
57
58
59
60
61
62
63
64
65
66
	/*
	 * XXX we can't currently use DSI PLL for DPI with OMAP3, as the DSI PLL
	 * would also be used for DISPC fclk. Meaning, when the DPI output is
	 * disabled, DISPC clock will be disabled, and TV out will stop.
	 */
	switch (omapdss_get_version()) {
	case OMAPDSS_VER_OMAP24xx:
	case OMAPDSS_VER_OMAP34xx_ES1:
	case OMAPDSS_VER_OMAP34xx_ES3:
	case OMAPDSS_VER_OMAP3630:
	case OMAPDSS_VER_AM35xx:
		return NULL;

67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
	case OMAPDSS_VER_OMAP4430_ES1:
	case OMAPDSS_VER_OMAP4430_ES2:
	case OMAPDSS_VER_OMAP4:
		switch (channel) {
		case OMAP_DSS_CHANNEL_LCD:
			return dsi_get_dsidev_from_id(0);
		case OMAP_DSS_CHANNEL_LCD2:
			return dsi_get_dsidev_from_id(1);
		default:
			return NULL;
		}

	case OMAPDSS_VER_OMAP5:
		switch (channel) {
		case OMAP_DSS_CHANNEL_LCD:
			return dsi_get_dsidev_from_id(0);
		case OMAP_DSS_CHANNEL_LCD3:
			return dsi_get_dsidev_from_id(1);
		default:
			return NULL;
		}

89
90
91
	default:
		return NULL;
	}
92
93
}

94
static enum omap_dss_clk_source dpi_get_alt_clk_src(enum omap_channel channel)
95
{
96
97
98
99
100
101
102
103
104
105
	switch (channel) {
	case OMAP_DSS_CHANNEL_LCD:
		return OMAP_DSS_CLK_SRC_DSI_PLL_HSDIV_DISPC;
	case OMAP_DSS_CHANNEL_LCD2:
		return OMAP_DSS_CLK_SRC_DSI2_PLL_HSDIV_DISPC;
	default:
		/* this shouldn't happen */
		WARN_ON(1);
		return OMAP_DSS_CLK_SRC_FCK;
	}
106
107
}

108
static int dpi_set_dsi_clk(enum omap_channel channel,
109
110
		unsigned long pck_req, unsigned long *fck, int *lck_div,
		int *pck_div)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
111
112
113
114
115
{
	struct dsi_clock_info dsi_cinfo;
	struct dispc_clock_info dispc_cinfo;
	int r;

116
117
	r = dsi_pll_calc_clock_div_pck(dpi.dsidev, pck_req, &dsi_cinfo,
			&dispc_cinfo);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
118
119
120
	if (r)
		return r;

121
	r = dsi_pll_set_clock_div(dpi.dsidev, &dsi_cinfo);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
122
123
124
	if (r)
		return r;

125
126
	dss_select_lcd_clk_source(channel,
			dpi_get_alt_clk_src(channel));
Tomi Valkeinen's avatar
Tomi Valkeinen committed
127

128
	dpi.mgr_config.clock_info = dispc_cinfo;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
129

130
	*fck = dsi_cinfo.dsi_pll_hsdiv_dispc_clk;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
131
132
133
134
135
	*lck_div = dispc_cinfo.lck_div;
	*pck_div = dispc_cinfo.pck_div;

	return 0;
}
136

137
138
static int dpi_set_dispc_clk(unsigned long pck_req, unsigned long *fck,
		int *lck_div, int *pck_div)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
139
140
141
142
143
{
	struct dss_clock_info dss_cinfo;
	struct dispc_clock_info dispc_cinfo;
	int r;

144
	r = dss_calc_clock_div(pck_req, &dss_cinfo, &dispc_cinfo);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
145
146
147
148
149
150
151
	if (r)
		return r;

	r = dss_set_clock_div(&dss_cinfo);
	if (r)
		return r;

152
	dpi.mgr_config.clock_info = dispc_cinfo;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
153
154
155
156
157
158
159
160

	*fck = dss_cinfo.fck;
	*lck_div = dispc_cinfo.lck_div;
	*pck_div = dispc_cinfo.pck_div;

	return 0;
}

161
static int dpi_set_mode(struct omap_overlay_manager *mgr)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
162
{
163
	struct omap_video_timings *t = &dpi.timings;
164
165
	int lck_div = 0, pck_div = 0;
	unsigned long fck = 0;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
166
167
168
	unsigned long pck;
	int r = 0;

169
	if (dpi.dsidev)
170
		r = dpi_set_dsi_clk(mgr->id, t->pixel_clock * 1000, &fck,
171
				&lck_div, &pck_div);
172
	else
173
		r = dpi_set_dispc_clk(t->pixel_clock * 1000, &fck,
174
				&lck_div, &pck_div);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
175
	if (r)
176
		return r;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
177
178
179
180
181
182
183
184
185
186
187

	pck = fck / lck_div / pck_div / 1000;

	if (pck != t->pixel_clock) {
		DSSWARN("Could not find exact pixel clock. "
				"Requested %d kHz, got %lu kHz\n",
				t->pixel_clock, pck);

		t->pixel_clock = pck;
	}

188
	dss_mgr_set_timings(mgr, t);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
189

190
	return 0;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
191
192
}

193
static void dpi_config_lcd_manager(struct omap_overlay_manager *mgr)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
194
{
195
	dpi.mgr_config.io_pad_mode = DSS_IO_PAD_MODE_BYPASS;
196

197
198
199
	dpi.mgr_config.stallmode = false;
	dpi.mgr_config.fifohandcheck = false;

200
	dpi.mgr_config.video_port_width = dpi.data_lines;
201
202
203

	dpi.mgr_config.lcden_sig_polarity = 0;

204
	dss_mgr_set_lcd_config(mgr, &dpi.mgr_config);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
205
206
}

207
int omapdss_dpi_display_enable(struct omap_dss_device *dssdev)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
208
{
209
	struct omap_dss_output *out = &dpi.output;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
210
211
	int r;

212
213
	mutex_lock(&dpi.lock);

214
	if (dss_has_feature(FEAT_DPI_USES_VDDS_DSI) && !dpi.vdds_dsi_reg) {
215
		DSSERR("no VDSS_DSI regulator\n");
216
217
		r = -ENODEV;
		goto err_no_reg;
218
219
	}

220
221
	if (out == NULL || out->manager == NULL) {
		DSSERR("failed to enable display: no output/manager\n");
222
		r = -ENODEV;
223
		goto err_no_out_mgr;
224
225
	}

Tomi Valkeinen's avatar
Tomi Valkeinen committed
226
227
228
	r = omap_dss_start_device(dssdev);
	if (r) {
		DSSERR("failed to start device\n");
229
		goto err_start_dev;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
230
231
	}

232
	if (dss_has_feature(FEAT_DPI_USES_VDDS_DSI)) {
233
234
		r = regulator_enable(dpi.vdds_dsi_reg);
		if (r)
235
			goto err_reg_enable;
236
237
	}

238
	r = dispc_runtime_get();
Tomi Valkeinen's avatar
Tomi Valkeinen committed
239
	if (r)
240
241
		goto err_get_dispc;

242
	r = dss_dpi_select_source(out->manager->id);
243
244
245
	if (r)
		goto err_src_sel;

246
	if (dpi.dsidev) {
247
248
249
250
		r = dsi_runtime_get(dpi.dsidev);
		if (r)
			goto err_get_dsi;

251
		r = dsi_pll_init(dpi.dsidev, 0, 1);
252
		if (r)
253
			goto err_dsi_pll_init;
254
255
	}

256
	r = dpi_set_mode(out->manager);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
257
	if (r)
258
		goto err_set_mode;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
259

260
	dpi_config_lcd_manager(out->manager);
261

Tomi Valkeinen's avatar
Tomi Valkeinen committed
262
263
	mdelay(2);

264
	r = dss_mgr_enable(out->manager);
265
266
	if (r)
		goto err_mgr_enable;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
267

268
269
	mutex_unlock(&dpi.lock);

Tomi Valkeinen's avatar
Tomi Valkeinen committed
270
271
	return 0;

272
err_mgr_enable:
273
err_set_mode:
274
	if (dpi.dsidev)
275
		dsi_pll_uninit(dpi.dsidev, true);
276
err_dsi_pll_init:
277
	if (dpi.dsidev)
278
279
		dsi_runtime_put(dpi.dsidev);
err_get_dsi:
280
err_src_sel:
281
282
	dispc_runtime_put();
err_get_dispc:
283
	if (dss_has_feature(FEAT_DPI_USES_VDDS_DSI))
284
		regulator_disable(dpi.vdds_dsi_reg);
285
err_reg_enable:
Tomi Valkeinen's avatar
Tomi Valkeinen committed
286
	omap_dss_stop_device(dssdev);
287
err_start_dev:
288
err_no_out_mgr:
289
290
err_no_reg:
	mutex_unlock(&dpi.lock);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
291
292
	return r;
}
293
EXPORT_SYMBOL(omapdss_dpi_display_enable);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
294

295
void omapdss_dpi_display_disable(struct omap_dss_device *dssdev)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
296
{
297
	struct omap_overlay_manager *mgr = dpi.output.manager;
298

299
300
	mutex_lock(&dpi.lock);

301
	dss_mgr_disable(mgr);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
302

303
	if (dpi.dsidev) {
304
		dss_select_lcd_clk_source(mgr->id, OMAP_DSS_CLK_SRC_FCK);
305
		dsi_pll_uninit(dpi.dsidev, true);
306
		dsi_runtime_put(dpi.dsidev);
307
	}
Tomi Valkeinen's avatar
Tomi Valkeinen committed
308

309
	dispc_runtime_put();
Tomi Valkeinen's avatar
Tomi Valkeinen committed
310

311
	if (dss_has_feature(FEAT_DPI_USES_VDDS_DSI))
312
313
		regulator_disable(dpi.vdds_dsi_reg);

Tomi Valkeinen's avatar
Tomi Valkeinen committed
314
	omap_dss_stop_device(dssdev);
315
316

	mutex_unlock(&dpi.lock);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
317
}
318
EXPORT_SYMBOL(omapdss_dpi_display_disable);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
319

320
321
void omapdss_dpi_set_timings(struct omap_dss_device *dssdev,
		struct omap_video_timings *timings)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
322
323
{
	DSSDBG("dpi_set_timings\n");
324
325
326

	mutex_lock(&dpi.lock);

327
328
	dpi.timings = *timings;

329
	mutex_unlock(&dpi.lock);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
330
}
331
EXPORT_SYMBOL(omapdss_dpi_set_timings);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
332

333
int dpi_check_timings(struct omap_dss_device *dssdev,
Tomi Valkeinen's avatar
Tomi Valkeinen committed
334
335
336
			struct omap_video_timings *timings)
{
	int r;
337
	struct omap_overlay_manager *mgr = dpi.output.manager;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
338
339
340
	int lck_div, pck_div;
	unsigned long fck;
	unsigned long pck;
341
	struct dispc_clock_info dispc_cinfo;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
342

343
	if (mgr && !dispc_mgr_timings_ok(mgr->id, timings))
Tomi Valkeinen's avatar
Tomi Valkeinen committed
344
345
346
347
348
		return -EINVAL;

	if (timings->pixel_clock == 0)
		return -EINVAL;

349
	if (dpi.dsidev) {
Tomi Valkeinen's avatar
Tomi Valkeinen committed
350
		struct dsi_clock_info dsi_cinfo;
351
		r = dsi_pll_calc_clock_div_pck(dpi.dsidev,
Tomi Valkeinen's avatar
Tomi Valkeinen committed
352
353
354
355
356
357
				timings->pixel_clock * 1000,
				&dsi_cinfo, &dispc_cinfo);

		if (r)
			return r;

358
		fck = dsi_cinfo.dsi_pll_hsdiv_dispc_clk;
359
	} else {
Tomi Valkeinen's avatar
Tomi Valkeinen committed
360
		struct dss_clock_info dss_cinfo;
361
		r = dss_calc_clock_div(timings->pixel_clock * 1000,
Tomi Valkeinen's avatar
Tomi Valkeinen committed
362
363
364
365
366
367
368
				&dss_cinfo, &dispc_cinfo);

		if (r)
			return r;

		fck = dss_cinfo.fck;
	}
369
370
371

	lck_div = dispc_cinfo.lck_div;
	pck_div = dispc_cinfo.pck_div;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
372
373
374
375
376
377
378

	pck = fck / lck_div / pck_div / 1000;

	timings->pixel_clock = pck;

	return 0;
}
379
EXPORT_SYMBOL(dpi_check_timings);
Tomi Valkeinen's avatar
Tomi Valkeinen committed
380

381
382
383
384
385
386
387
388
389
390
void omapdss_dpi_set_data_lines(struct omap_dss_device *dssdev, int data_lines)
{
	mutex_lock(&dpi.lock);

	dpi.data_lines = data_lines;

	mutex_unlock(&dpi.lock);
}
EXPORT_SYMBOL(omapdss_dpi_set_data_lines);

391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
static int __init dpi_verify_dsi_pll(struct platform_device *dsidev)
{
	int r;

	/* do initial setup with the PLL to see if it is operational */

	r = dsi_runtime_get(dsidev);
	if (r)
		return r;

	r = dsi_pll_init(dsidev, 0, 1);
	if (r) {
		dsi_runtime_put(dsidev);
		return r;
	}

	dsi_pll_uninit(dsidev, true);
	dsi_runtime_put(dsidev);

	return 0;
}

413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
/*
 * Return a hardcoded channel for the DPI output. This should work for
 * current use cases, but this can be later expanded to either resolve
 * the channel in some more dynamic manner, or get the channel as a user
 * parameter.
 */
static enum omap_channel dpi_get_channel(void)
{
	switch (omapdss_get_version()) {
	case OMAPDSS_VER_OMAP24xx:
	case OMAPDSS_VER_OMAP34xx_ES1:
	case OMAPDSS_VER_OMAP34xx_ES3:
	case OMAPDSS_VER_OMAP3630:
	case OMAPDSS_VER_AM35xx:
		return OMAP_DSS_CHANNEL_LCD;

	case OMAPDSS_VER_OMAP4430_ES1:
	case OMAPDSS_VER_OMAP4430_ES2:
	case OMAPDSS_VER_OMAP4:
		return OMAP_DSS_CHANNEL_LCD2;

	case OMAPDSS_VER_OMAP5:
		return OMAP_DSS_CHANNEL_LCD3;

	default:
		DSSWARN("unsupported DSS version\n");
		return OMAP_DSS_CHANNEL_LCD;
	}
}

443
static int __init dpi_init_display(struct omap_dss_device *dssdev)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
444
{
445
446
	struct platform_device *dsidev;

Tomi Valkeinen's avatar
Tomi Valkeinen committed
447
448
	DSSDBG("init_display\n");

449
450
	if (dss_has_feature(FEAT_DPI_USES_VDDS_DSI) &&
					dpi.vdds_dsi_reg == NULL) {
451
		struct regulator *vdds_dsi;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
452

453
454
455
		vdds_dsi = dss_get_vdds_dsi();

		if (IS_ERR(vdds_dsi)) {
456
			DSSERR("can't get VDDS_DSI regulator\n");
457
			return PTR_ERR(vdds_dsi);
458
		}
459
460

		dpi.vdds_dsi_reg = vdds_dsi;
461
462
	}

463
	dsidev = dpi_get_dsidev(dpi.output.dispc_channel);
464

465
	if (dsidev && dpi_verify_dsi_pll(dsidev)) {
466
467
		dsidev = NULL;
		DSSWARN("DSI PLL not operational\n");
468
469
	}

470
471
472
473
474
	if (dsidev)
		DSSDBG("using DSI PLL for DPI clock\n");

	dpi.dsidev = dsidev;

Tomi Valkeinen's avatar
Tomi Valkeinen committed
475
476
477
	return 0;
}

478
static struct omap_dss_device * __init dpi_find_dssdev(struct platform_device *pdev)
479
{
480
	struct omap_dss_board_info *pdata = pdev->dev.platform_data;
481
	const char *def_disp_name = omapdss_get_default_display_name();
482
483
484
485
	struct omap_dss_device *def_dssdev;
	int i;

	def_dssdev = NULL;
486
487
488
489
490
491
492

	for (i = 0; i < pdata->num_devices; ++i) {
		struct omap_dss_device *dssdev = pdata->devices[i];

		if (dssdev->type != OMAP_DISPLAY_TYPE_DPI)
			continue;

493
494
495
496
497
498
499
		if (def_dssdev == NULL)
			def_dssdev = dssdev;

		if (def_disp_name != NULL &&
				strcmp(dssdev->name, def_disp_name) == 0) {
			def_dssdev = dssdev;
			break;
500
		}
501
	}
502

503
504
505
	return def_dssdev;
}

506
static void __init dpi_probe_pdata(struct platform_device *dpidev)
507
{
508
	struct omap_dss_device *plat_dssdev;
509
510
511
	struct omap_dss_device *dssdev;
	int r;

512
	plat_dssdev = dpi_find_dssdev(dpidev);
513

514
515
516
517
	if (!plat_dssdev)
		return;

	dssdev = dss_alloc_and_init_device(&dpidev->dev);
518
519
520
	if (!dssdev)
		return;

521
522
	dss_copy_device_pdata(dssdev, plat_dssdev);

523
524
525
	r = dpi_init_display(dssdev);
	if (r) {
		DSSERR("device %s init failed: %d\n", dssdev->name, r);
526
		dss_put_device(dssdev);
527
528
529
		return;
	}

530
531
532
533
534
535
536
537
	r = omapdss_output_set_device(&dpi.output, dssdev);
	if (r) {
		DSSERR("failed to connect output to new device: %s\n",
				dssdev->name);
		dss_put_device(dssdev);
		return;
	}

538
	r = dss_add_device(dssdev);
539
540
	if (r) {
		DSSERR("device %s register failed: %d\n", dssdev->name, r);
541
		omapdss_output_unset_device(&dpi.output);
542
		dss_put_device(dssdev);
543
		return;
544
	}
545
546
}

547
548
549
550
551
552
553
static void __init dpi_init_output(struct platform_device *pdev)
{
	struct omap_dss_output *out = &dpi.output;

	out->pdev = pdev;
	out->id = OMAP_DSS_OUTPUT_DPI;
	out->type = OMAP_DISPLAY_TYPE_DPI;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
554
	out->name = "dpi.0";
555
	out->dispc_channel = dpi_get_channel();
556
557
558
559
560
561
562
563
564
565
566

	dss_register_output(out);
}

static void __exit dpi_uninit_output(struct platform_device *pdev)
{
	struct omap_dss_output *out = &dpi.output;

	dss_unregister_output(out);
}

567
568
static int __init omap_dpi_probe(struct platform_device *pdev)
{
569
570
	mutex_init(&dpi.lock);

571
572
	dpi_init_output(pdev);

573
	dpi_probe_pdata(pdev);
574

575
576
577
	return 0;
}

Tomi Valkeinen's avatar
Tomi Valkeinen committed
578
static int __exit omap_dpi_remove(struct platform_device *pdev)
Tomi Valkeinen's avatar
Tomi Valkeinen committed
579
{
580
	dss_unregister_child_devices(&pdev->dev);
581

582
583
	dpi_uninit_output(pdev);

584
	return 0;
Tomi Valkeinen's avatar
Tomi Valkeinen committed
585
586
}

587
static struct platform_driver omap_dpi_driver = {
Tomi Valkeinen's avatar
Tomi Valkeinen committed
588
	.remove         = __exit_p(omap_dpi_remove),
589
590
591
592
593
594
	.driver         = {
		.name   = "omapdss_dpi",
		.owner  = THIS_MODULE,
	},
};

Tomi Valkeinen's avatar
Tomi Valkeinen committed
595
int __init dpi_init_platform_driver(void)
596
{
597
	return platform_driver_probe(&omap_dpi_driver, omap_dpi_probe);
598
599
}

Tomi Valkeinen's avatar
Tomi Valkeinen committed
600
void __exit dpi_uninit_platform_driver(void)
601
602
603
{
	platform_driver_unregister(&omap_dpi_driver);
}