1 /*
2  * Copyright (C) 2016 Texas Instruments, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or
7  * (at your option) any later version.
8  */
9 
10 #ifndef __OMAPDSS_PDATA_H
11 #define __OMAPDSS_PDATA_H
12 
13 enum omapdss_version {
14 	OMAPDSS_VER_UNKNOWN = 0,
15 	OMAPDSS_VER_OMAP24xx,
16 	OMAPDSS_VER_OMAP34xx_ES1,	/* OMAP3430 ES1.0, 2.0 */
17 	OMAPDSS_VER_OMAP34xx_ES3,	/* OMAP3430 ES3.0+ */
18 	OMAPDSS_VER_OMAP3630,
19 	OMAPDSS_VER_AM35xx,
20 	OMAPDSS_VER_OMAP4430_ES1,	/* OMAP4430 ES1.0 */
21 	OMAPDSS_VER_OMAP4430_ES2,	/* OMAP4430 ES2.0, 2.1, 2.2 */
22 	OMAPDSS_VER_OMAP4,		/* All other OMAP4s */
23 	OMAPDSS_VER_OMAP5,
24 	OMAPDSS_VER_AM43xx,
25 	OMAPDSS_VER_DRA7xx,
26 };
27 
28 struct omap_dss_device;
29 
30 /* Board specific data */
31 struct omap_dss_board_info {
32 	int num_devices;
33 	struct omap_dss_device **devices;
34 	struct omap_dss_device *default_device;
35 	const char *default_display_name;
36 	int (*dsi_enable_pads)(int dsi_id, unsigned int lane_mask);
37 	void (*dsi_disable_pads)(int dsi_id, unsigned int lane_mask);
38 	int (*set_min_bus_tput)(struct device *dev, unsigned long r);
39 	enum omapdss_version version;
40 };
41 
42 #endif /* __OMAPDSS_PDATA_H */
43