···33333434struct device_node * __init omapdss_find_dss_of_node(void);35353636+struct omap_dss_board_info;3737+3838+/* Init with the board info */3939+int omap_display_init(struct omap_dss_board_info *board_data);4040+3641#endif
···11+/*22+ * Copyright (C) 2016 Texas Instruments, Inc.33+ *44+ * This program is free software; you can redistribute it and/or modify55+ * it under the terms of the GNU General Public License as published by66+ * the Free Software Foundation; either version 2 of the License, or77+ * (at your option) any later version.88+ */99+1010+#ifndef __OMAPDSS_PDATA_H1111+#define __OMAPDSS_PDATA_H1212+1313+enum omapdss_version {1414+ OMAPDSS_VER_UNKNOWN = 0,1515+ OMAPDSS_VER_OMAP24xx,1616+ OMAPDSS_VER_OMAP34xx_ES1, /* OMAP3430 ES1.0, 2.0 */1717+ OMAPDSS_VER_OMAP34xx_ES3, /* OMAP3430 ES3.0+ */1818+ OMAPDSS_VER_OMAP3630,1919+ OMAPDSS_VER_AM35xx,2020+ OMAPDSS_VER_OMAP4430_ES1, /* OMAP4430 ES1.0 */2121+ OMAPDSS_VER_OMAP4430_ES2, /* OMAP4430 ES2.0, 2.1, 2.2 */2222+ OMAPDSS_VER_OMAP4, /* All other OMAP4s */2323+ OMAPDSS_VER_OMAP5,2424+ OMAPDSS_VER_AM43xx,2525+ OMAPDSS_VER_DRA7xx,2626+};2727+2828+/* Board specific data */2929+struct omap_dss_board_info {3030+ const char *default_display_name;3131+ int (*dsi_enable_pads)(int dsi_id, unsigned int lane_mask);3232+ void (*dsi_disable_pads)(int dsi_id, unsigned int lane_mask);3333+ int (*set_min_bus_tput)(struct device *dev, unsigned long r);3434+ enum omapdss_version version;3535+};3636+3737+#endif /* __OMAPDSS_PDATA_H */
···2727#ifndef __OMAP_PANEL_DATA_H2828#define __OMAP_PANEL_DATA_H29293030-#include <video/omapdss.h>3130#include <video/display_timing.h>3232-3333-struct omap_dss_device;3434-3535-/**3636- * encoder_tfp410 platform data3737- * @name: name for this display entity3838- * @power_down_gpio: gpio number for PD pin (or -1 if not available)3939- * @data_lines: number of DPI datalines4040- */4141-struct encoder_tfp410_platform_data {4242- const char *name;4343- const char *source;4444- int power_down_gpio;4545- int data_lines;4646-};4747-4848-4949-/**5050- * connector_dvi platform data5151- * @name: name for this display entity5252- * @source: name of the display entity used as a video source5353- * @i2c_bus_num: i2c bus number to be used for reading EDID5454- */5555-struct connector_dvi_platform_data {5656- const char *name;5757- const char *source;5858- int i2c_bus_num;5959-};6060-6161-/**6262- * connector_hdmi platform data6363- * @name: name for this display entity6464- * @source: name of the display entity used as a video source6565- */6666-struct connector_hdmi_platform_data {6767- const char *name;6868- const char *source;6969-};70317132/**7233 * connector_atv platform data7334 * @name: name for this display entity7435 * @source: name of the display entity used as a video source7575- * @connector_type: composite/svideo7636 * @invert_polarity: invert signal polarity7737 */7838struct connector_atv_platform_data {7939 const char *name;8040 const char *source;81418282- enum omap_dss_venc_type connector_type;8342 bool invert_polarity;8443};8544···64105};6510666107/**6767- * panel_dsicm platform data6868- * @name: name for this display entity6969- * @source: name of the display entity used as a video source7070- * @reset_gpio: gpio to reset the panel (or -1)7171- * @use_ext_te: use external TE GPIO7272- * @ext_te_gpio: external TE GPIO7373- * @ulps_timeout: time to wait before entering ULPS, 0 = disabled (ms)7474- * @use_dsi_backlight: true if panel uses DSI command to control backlight7575- * @pin_config: DSI pin configuration7676- */7777-struct panel_dsicm_platform_data {7878- const char *name;7979- const char *source;8080-8181- int reset_gpio;8282-8383- bool use_ext_te;8484- int ext_te_gpio;8585-8686- unsigned ulps_timeout;8787-8888- bool use_dsi_backlight;8989-9090- struct omap_dsi_pin_config pin_config;9191-};9292-9393-/**94108 * panel_acx565akm platform data95109 * @name: name for this display entity96110 * @source: name of the display entity used as a video source···77145 int reset_gpio;7814679147 int datapairs;8080-};8181-8282-/**8383- * panel_lb035q02 platform data8484- * @name: name for this display entity8585- * @source: name of the display entity used as a video source8686- * @data_lines: number of DPI datalines8787- * @backlight_gpio: gpio to enable/disable the backlight (or -1)8888- * @enable_gpio: gpio to enable/disable the panel (or -1)8989- */9090-struct panel_lb035q02_platform_data {9191- const char *name;9292- const char *source;9393-9494- int data_lines;9595-9696- int backlight_gpio;9797- int enable_gpio;9898-};9999-100100-/**101101- * panel_sharp_ls037v7dw01 platform data102102- * @name: name for this display entity103103- * @source: name of the display entity used as a video source104104- * @data_lines: number of DPI datalines105105- * @resb_gpio: reset signal GPIO106106- * @ini_gpio: power on control GPIO107107- * @mo_gpio: selection for resolution(VGA/QVGA) GPIO108108- * @lr_gpio: selection for horizontal scanning direction GPIO109109- * @ud_gpio: selection for vertical scanning direction GPIO110110- */111111-struct panel_sharp_ls037v7dw01_platform_data {112112- const char *name;113113- const char *source;114114-115115- int data_lines;116116-117117- int resb_gpio;118118- int ini_gpio;119119- int mo_gpio;120120- int lr_gpio;121121- int ud_gpio;122122-};123123-124124-/**125125- * panel-tpo-td043mtea1 platform data126126- * @name: name for this display entity127127- * @source: name of the display entity used as a video source128128- * @data_lines: number of DPI datalines129129- * @nreset_gpio: reset signal130130- */131131-struct panel_tpo_td043mtea1_platform_data {132132- const char *name;133133- const char *source;134134-135135- int data_lines;136136-137137- int nreset_gpio;138138-};139139-140140-/**141141- * panel-nec-nl8048hl11 platform data142142- * @name: name for this display entity143143- * @source: name of the display entity used as a video source144144- * @data_lines: number of DPI datalines145145- * @res_gpio: reset signal146146- * @qvga_gpio: selection for resolution(QVGA/WVGA)147147- */148148-struct panel_nec_nl8048hl11_platform_data {149149- const char *name;150150- const char *source;151151-152152- int data_lines;153153-154154- int res_gpio;155155- int qvga_gpio;156156-};157157-158158-/**159159- * panel-tpo-td028ttec1 platform data160160- * @name: name for display entity161161- * @source: name of the display entity used as a video source162162- * @data_lines: number of DPI datalines163163- */164164-struct panel_tpo_td028ttec1_platform_data {165165- const char *name;166166- const char *source;167167-168168- int data_lines;169148};170149171150#endif /* __OMAP_PANEL_DATA_H */
···11/*22- * Copyright (C) 2008 Nokia Corporation33- * Author: Tomi Valkeinen <tomi.valkeinen@nokia.com>22+ * Copyright (C) 2016 Texas Instruments, Inc.43 *55- * This program is free software; you can redistribute it and/or modify it66- * under the terms of the GNU General Public License version 2 as published by77- * the Free Software Foundation.88- *99- * This program is distributed in the hope that it will be useful, but WITHOUT1010- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or1111- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for1212- * more details.1313- *1414- * You should have received a copy of the GNU General Public License along with1515- * this program. If not, see <http://www.gnu.org/licenses/>.44+ * This program is free software; you can redistribute it and/or modify55+ * it under the terms of the GNU General Public License as published by66+ * the Free Software Foundation; either version 2 of the License, or77+ * (at your option) any later version.168 */1791818-#ifndef __OMAP_OMAPDSS_H1919-#define __OMAP_OMAPDSS_H1010+#ifndef __OMAPFB_DSS_H1111+#define __OMAPFB_DSS_H20122113#include <linux/list.h>2214#include <linux/kobject.h>2315#include <linux/device.h>2416#include <linux/interrupt.h>1717+#include <linux/platform_data/omapdss.h>25182619#include <video/videomode.h>2720···160167 OMAP_DSS_DISPLAY_ACTIVE,161168};162169163163-struct omap_dss_audio {164164- struct snd_aes_iec958 *iec;165165- struct snd_cea_861_aud_if *cea;166166-};167167-168170enum omap_dss_rotation_type {169171 OMAP_DSS_ROT_DMA = 1 << 0,170172 OMAP_DSS_ROT_VRFB = 1 << 1,···271283 bool ddr_clk_always_on;272284 enum omap_dss_dsi_trans_mode trans_mode;273285};274274-275275-enum omapdss_version {276276- OMAPDSS_VER_UNKNOWN = 0,277277- OMAPDSS_VER_OMAP24xx,278278- OMAPDSS_VER_OMAP34xx_ES1, /* OMAP3430 ES1.0, 2.0 */279279- OMAPDSS_VER_OMAP34xx_ES3, /* OMAP3430 ES3.0+ */280280- OMAPDSS_VER_OMAP3630,281281- OMAPDSS_VER_AM35xx,282282- OMAPDSS_VER_OMAP4430_ES1, /* OMAP4430 ES1.0 */283283- OMAPDSS_VER_OMAP4430_ES2, /* OMAP4430 ES2.0, 2.1, 2.2 */284284- OMAPDSS_VER_OMAP4, /* All other OMAP4s */285285- OMAPDSS_VER_OMAP5,286286- OMAPDSS_VER_AM43xx,287287- OMAPDSS_VER_DRA7xx,288288-};289289-290290-/* Board specific data */291291-struct omap_dss_board_info {292292- int num_devices;293293- struct omap_dss_device **devices;294294- struct omap_dss_device *default_device;295295- const char *default_display_name;296296- int (*dsi_enable_pads)(int dsi_id, unsigned lane_mask);297297- void (*dsi_disable_pads)(int dsi_id, unsigned lane_mask);298298- int (*set_min_bus_tput)(struct device *dev, unsigned long r);299299- enum omapdss_version version;300300-};301301-302302-/* Init with the board info */303303-extern int omap_display_init(struct omap_dss_board_info *board_data);304286305287struct omap_video_timings {306288 /* Unit: pixels */···857899struct omap_dss_device *858900omapdss_of_find_source_for_first_ep(struct device_node *node);859901860860-#endif902902+#endif /* __OMAPFB_DSS_H */