Commit 5ae9eaa6 authored by Archit Taneja's avatar Archit Taneja Committed by Tomi Valkeinen

OMAPDSS: Remove passive matrix LCD support (part 2)

Remove OMAP_DSS_LCD_TFT as a omap_panel_config flag.

We don't support passive matrix displays any more. Remove this flag from all the
panel drivers.

Force the display_type to OMAP_DSS_LCD_DISPLAY_TFT in the interface drivers.
Signed-off-by: default avatarArchit Taneja <archit@ti.com>
parent 6d523e7b
...@@ -498,8 +498,8 @@ static int acx_panel_probe(struct omap_dss_device *dssdev) ...@@ -498,8 +498,8 @@ static int acx_panel_probe(struct omap_dss_device *dssdev)
struct backlight_properties props; struct backlight_properties props;
dev_dbg(&dssdev->dev, "%s\n", __func__); dev_dbg(&dssdev->dev, "%s\n", __func__);
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | dssdev->panel.config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS;
OMAP_DSS_LCD_IHS;
/* FIXME AC bias ? */ /* FIXME AC bias ? */
dssdev->panel.timings = acx_panel_timings; dssdev->panel.timings = acx_panel_timings;
......
...@@ -76,8 +76,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -76,8 +76,8 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IEO, OMAP_DSS_LCD_IEO,
.power_on_delay = 50, .power_on_delay = 50,
.power_off_delay = 100, .power_off_delay = 100,
.name = "sharp_lq", .name = "sharp_lq",
...@@ -101,8 +101,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -101,8 +101,7 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x28, .acb = 0x28,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.power_on_delay = 50, .power_on_delay = 50,
.power_off_delay = 100, .power_off_delay = 100,
.name = "sharp_ls", .name = "sharp_ls",
...@@ -126,9 +125,9 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -126,9 +125,9 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IPC | OMAP_DSS_LCD_IPC |
OMAP_DSS_LCD_ONOFF, OMAP_DSS_LCD_ONOFF,
.power_on_delay = 0, .power_on_delay = 0,
.power_off_delay = 0, .power_off_delay = 0,
.name = "toppoly_tdo35s", .name = "toppoly_tdo35s",
...@@ -152,8 +151,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -152,8 +151,7 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.power_on_delay = 0, .power_on_delay = 0,
.power_off_delay = 0, .power_off_delay = 0,
.name = "samsung_lte430wq_f0c", .name = "samsung_lte430wq_f0c",
...@@ -177,8 +175,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -177,8 +175,7 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.power_on_delay = 0, .power_on_delay = 0,
.power_off_delay = 0, .power_off_delay = 0,
.name = "seiko_70wvw1tz3", .name = "seiko_70wvw1tz3",
...@@ -202,8 +199,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -202,8 +199,8 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IEO, OMAP_DSS_LCD_IEO,
.power_on_delay = 0, .power_on_delay = 0,
.power_off_delay = 0, .power_off_delay = 0,
.name = "powertip_ph480272t", .name = "powertip_ph480272t",
...@@ -227,8 +224,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -227,8 +224,7 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x28, .acb = 0x28,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.power_on_delay = 0, .power_on_delay = 0,
.power_off_delay = 0, .power_off_delay = 0,
.name = "innolux_at070tn83", .name = "innolux_at070tn83",
...@@ -250,8 +246,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -250,8 +246,7 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 2, .vfp = 2,
.vbp = 7, .vbp = 7,
}, },
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.name = "nec_nl2432dr22-11b", .name = "nec_nl2432dr22-11b",
}, },
...@@ -271,8 +266,6 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -271,8 +266,6 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 1, .vfp = 1,
.vbp = 1, .vbp = 1,
}, },
.config = OMAP_DSS_LCD_TFT,
.name = "h4", .name = "h4",
}, },
...@@ -292,8 +285,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -292,8 +285,7 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 2, .vfp = 2,
.vbp = 2, .vbp = 2,
}, },
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.name = "apollon", .name = "apollon",
}, },
...@@ -313,8 +305,7 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -313,8 +305,7 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 13, .vfp = 13,
.vbp = 29, .vbp = 29,
}, },
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS,
OMAP_DSS_LCD_IHS,
.name = "focaltech_etm070003dh6", .name = "focaltech_etm070003dh6",
}, },
...@@ -336,8 +327,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -336,8 +327,8 @@ static struct panel_config generic_dpi_panels[] = {
}, },
.acbi = 0x0, .acbi = 0x0,
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IPC, OMAP_DSS_LCD_IPC,
.power_on_delay = 0, .power_on_delay = 0,
.power_off_delay = 0, .power_off_delay = 0,
.name = "microtips_umsh_8173md", .name = "microtips_umsh_8173md",
...@@ -359,8 +350,6 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -359,8 +350,6 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 4, .vfp = 4,
.vbp = 2, .vbp = 2,
}, },
.config = OMAP_DSS_LCD_TFT,
.name = "ortustech_com43h4m10xtc", .name = "ortustech_com43h4m10xtc",
}, },
...@@ -381,8 +370,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -381,8 +370,8 @@ static struct panel_config generic_dpi_panels[] = {
.vbp = 23, .vbp = 23,
}, },
.acb = 0x0, .acb = 0x0,
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IEO, OMAP_DSS_LCD_IEO,
.name = "innolux_at080tn52", .name = "innolux_at080tn52",
}, },
...@@ -402,7 +391,6 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -402,7 +391,6 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 26, .vfp = 26,
.vbp = 1, .vbp = 1,
}, },
.config = OMAP_DSS_LCD_TFT,
.name = "mitsubishi_aa084sb01", .name = "mitsubishi_aa084sb01",
}, },
/* EDT ET0500G0DH6 */ /* EDT ET0500G0DH6 */
...@@ -420,7 +408,6 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -420,7 +408,6 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 35, .vfp = 35,
.vbp = 10, .vbp = 10,
}, },
.config = OMAP_DSS_LCD_TFT,
.name = "edt_et0500g0dh6", .name = "edt_et0500g0dh6",
}, },
...@@ -440,8 +427,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -440,8 +427,8 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 10, .vfp = 10,
.vbp = 33, .vbp = 33,
}, },
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IPC, OMAP_DSS_LCD_IPC,
.name = "primeview_pd050vl1", .name = "primeview_pd050vl1",
}, },
...@@ -461,8 +448,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -461,8 +448,8 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 10, .vfp = 10,
.vbp = 33, .vbp = 33,
}, },
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IPC, OMAP_DSS_LCD_IPC,
.name = "primeview_pm070wl4", .name = "primeview_pm070wl4",
}, },
...@@ -482,8 +469,8 @@ static struct panel_config generic_dpi_panels[] = { ...@@ -482,8 +469,8 @@ static struct panel_config generic_dpi_panels[] = {
.vfp = 1, .vfp = 1,
.vbp = 23, .vbp = 23,
}, },
.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | .config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IPC, OMAP_DSS_LCD_IPC,
.name = "primeview_pd104slf", .name = "primeview_pd104slf",
}, },
}; };
......
...@@ -82,8 +82,7 @@ static int lb035q02_panel_probe(struct omap_dss_device *dssdev) ...@@ -82,8 +82,7 @@ static int lb035q02_panel_probe(struct omap_dss_device *dssdev)
struct lb035q02_data *ld; struct lb035q02_data *ld;
int r; int r;
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | dssdev->panel.config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS;
OMAP_DSS_LCD_IHS;
dssdev->panel.timings = lb035q02_timings; dssdev->panel.timings = lb035q02_timings;
ld = kzalloc(sizeof(*ld), GFP_KERNEL); ld = kzalloc(sizeof(*ld), GFP_KERNEL);
......
...@@ -473,7 +473,6 @@ static int n8x0_panel_probe(struct omap_dss_device *dssdev) ...@@ -473,7 +473,6 @@ static int n8x0_panel_probe(struct omap_dss_device *dssdev)
mutex_init(&ddata->lock); mutex_init(&ddata->lock);
dssdev->panel.config = OMAP_DSS_LCD_TFT;
dssdev->panel.timings.x_res = 800; dssdev->panel.timings.x_res = 800;
dssdev->panel.timings.y_res = 480; dssdev->panel.timings.y_res = 480;
dssdev->ctrl.pixel_size = 16; dssdev->ctrl.pixel_size = 16;
......
...@@ -116,9 +116,8 @@ static int nec_8048_panel_probe(struct omap_dss_device *dssdev) ...@@ -116,9 +116,8 @@ static int nec_8048_panel_probe(struct omap_dss_device *dssdev)
struct backlight_properties props; struct backlight_properties props;
int r; int r;
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | dssdev->panel.config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_RF | OMAP_DSS_LCD_RF | OMAP_DSS_LCD_ONOFF;
OMAP_DSS_LCD_ONOFF;
dssdev->panel.timings = nec_8048_panel_timings; dssdev->panel.timings = nec_8048_panel_timings;
necd = kzalloc(sizeof(*necd), GFP_KERNEL); necd = kzalloc(sizeof(*necd), GFP_KERNEL);
......
...@@ -414,8 +414,8 @@ static int picodlp_panel_probe(struct omap_dss_device *dssdev) ...@@ -414,8 +414,8 @@ static int picodlp_panel_probe(struct omap_dss_device *dssdev)
struct i2c_client *picodlp_i2c_client; struct i2c_client *picodlp_i2c_client;
int r = 0, picodlp_adapter_id; int r = 0, picodlp_adapter_id;
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_ONOFF | dssdev->panel.config = OMAP_DSS_LCD_ONOFF | OMAP_DSS_LCD_IHS |
OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IVS; OMAP_DSS_LCD_IVS;
dssdev->panel.acb = 0x0; dssdev->panel.acb = 0x0;
dssdev->panel.timings = pico_ls_timings; dssdev->panel.timings = pico_ls_timings;
......
...@@ -86,8 +86,7 @@ static int sharp_ls_panel_probe(struct omap_dss_device *dssdev) ...@@ -86,8 +86,7 @@ static int sharp_ls_panel_probe(struct omap_dss_device *dssdev)
struct sharp_data *sd; struct sharp_data *sd;
int r; int r;
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IVS | dssdev->panel.config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS;
OMAP_DSS_LCD_IHS;
dssdev->panel.acb = 0x28; dssdev->panel.acb = 0x28;
dssdev->panel.timings = sharp_ls_timings; dssdev->panel.timings = sharp_ls_timings;
......
...@@ -882,7 +882,6 @@ static int taal_probe(struct omap_dss_device *dssdev) ...@@ -882,7 +882,6 @@ static int taal_probe(struct omap_dss_device *dssdev)
goto err; goto err;
} }
dssdev->panel.config = OMAP_DSS_LCD_TFT;
dssdev->panel.timings = panel_config->timings; dssdev->panel.timings = panel_config->timings;
dssdev->panel.dsi_pix_fmt = OMAP_DSS_DSI_FMT_RGB888; dssdev->panel.dsi_pix_fmt = OMAP_DSS_DSI_FMT_RGB888;
......
...@@ -95,7 +95,6 @@ static int tfp410_probe(struct omap_dss_device *dssdev) ...@@ -95,7 +95,6 @@ static int tfp410_probe(struct omap_dss_device *dssdev)
return -ENOMEM; return -ENOMEM;
dssdev->panel.timings = tfp410_default_timings; dssdev->panel.timings = tfp410_default_timings;
dssdev->panel.config = OMAP_DSS_LCD_TFT;
ddata->dssdev = dssdev; ddata->dssdev = dssdev;
mutex_init(&ddata->lock); mutex_init(&ddata->lock);
......
...@@ -423,8 +423,8 @@ static int tpo_td043_probe(struct omap_dss_device *dssdev) ...@@ -423,8 +423,8 @@ static int tpo_td043_probe(struct omap_dss_device *dssdev)
return -ENODEV; return -ENODEV;
} }
dssdev->panel.config = OMAP_DSS_LCD_TFT | OMAP_DSS_LCD_IHS | dssdev->panel.config = OMAP_DSS_LCD_IHS | OMAP_DSS_LCD_IVS |
OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IPC; OMAP_DSS_LCD_IPC;
dssdev->panel.timings = tpo_td043_timings; dssdev->panel.timings = tpo_td043_timings;
dssdev->ctrl.pixel_size = 24; dssdev->ctrl.pixel_size = 24;
......
...@@ -327,10 +327,6 @@ bool dss_use_replication(struct omap_dss_device *dssdev, ...@@ -327,10 +327,6 @@ bool dss_use_replication(struct omap_dss_device *dssdev,
if (mode != OMAP_DSS_COLOR_RGB12U && mode != OMAP_DSS_COLOR_RGB16) if (mode != OMAP_DSS_COLOR_RGB12U && mode != OMAP_DSS_COLOR_RGB16)
return false; return false;
if (dssdev->type == OMAP_DISPLAY_TYPE_DPI &&
(dssdev->panel.config & OMAP_DSS_LCD_TFT) == 0)
return false;
switch (dssdev->type) { switch (dssdev->type) {
case OMAP_DISPLAY_TYPE_DPI: case OMAP_DISPLAY_TYPE_DPI:
bpp = dssdev->phy.dpi.data_lines; bpp = dssdev->phy.dpi.data_lines;
......
...@@ -160,15 +160,11 @@ static int dpi_set_mode(struct omap_dss_device *dssdev) ...@@ -160,15 +160,11 @@ static int dpi_set_mode(struct omap_dss_device *dssdev)
static void dpi_basic_init(struct omap_dss_device *dssdev) static void dpi_basic_init(struct omap_dss_device *dssdev)
{ {
bool is_tft;
is_tft = (dssdev->panel.config & OMAP_DSS_LCD_TFT) != 0;
dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_BYPASS); dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_BYPASS);
dispc_mgr_enable_stallmode(dssdev->manager->id, false); dispc_mgr_enable_stallmode(dssdev->manager->id, false);
dispc_mgr_set_lcd_display_type(dssdev->manager->id, is_tft ? dispc_mgr_set_lcd_display_type(dssdev->manager->id,
OMAP_DSS_LCD_DISPLAY_TFT : OMAP_DSS_LCD_DISPLAY_STN); OMAP_DSS_LCD_DISPLAY_TFT);
dispc_mgr_set_tft_data_lines(dssdev->manager->id, dispc_mgr_set_tft_data_lines(dssdev->manager->id,
dssdev->phy.dpi.data_lines); dssdev->phy.dpi.data_lines);
} }
......
...@@ -43,8 +43,7 @@ static int hdmi_panel_probe(struct omap_dss_device *dssdev) ...@@ -43,8 +43,7 @@ static int hdmi_panel_probe(struct omap_dss_device *dssdev)
{ {
DSSDBG("ENTER hdmi_panel_probe\n"); DSSDBG("ENTER hdmi_panel_probe\n");
dssdev->panel.config = OMAP_DSS_LCD_TFT | dssdev->panel.config = OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS;
OMAP_DSS_LCD_IVS | OMAP_DSS_LCD_IHS;
dssdev->panel.timings = (struct omap_video_timings){640, 480, 25175, 96, 16, 48, 2 , 11, 31}; dssdev->panel.timings = (struct omap_video_timings){640, 480, 25175, 96, 16, 48, 2 , 11, 31};
......
...@@ -133,8 +133,6 @@ enum omap_panel_config { ...@@ -133,8 +133,6 @@ enum omap_panel_config {
OMAP_DSS_LCD_IEO = 1<<3, OMAP_DSS_LCD_IEO = 1<<3,
OMAP_DSS_LCD_RF = 1<<4, OMAP_DSS_LCD_RF = 1<<4,
OMAP_DSS_LCD_ONOFF = 1<<5, OMAP_DSS_LCD_ONOFF = 1<<5,
OMAP_DSS_LCD_TFT = 1<<20,
}; };
enum omap_dss_venc_type { enum omap_dss_venc_type {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment