diff options
author | Archit Taneja <archit@ti.com> | 2012-06-21 00:15:11 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2012-06-29 03:15:46 -0400 |
commit | d21f43bc392911acf01b7f2090615df4ca09ac7d (patch) | |
tree | e70cbdbcb4d4188ffd7f5f9cca708a0ea6919d10 /drivers/video | |
parent | 5ae9eaa6dbeccab781cd9312371fad801a5ba1a2 (diff) |
OMAPDSS: Remove passive matrix LCD support (part 3)
Remove omap_lcd_display_type enum
The enum omap_lcd_display_type is used to configure the lcd display type in
DISPC. Remove this enum and always set display type to TFT by creating function
dss_mgr_set_lcd_type_tft().
Signed-off-by: Archit Taneja <archit@ti.com>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/omap2/dss/dispc.c | 21 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dpi.c | 4 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dsi.c | 9 | ||||
-rw-r--r-- | drivers/video/omap2/dss/dss.h | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/rfbi.c | 3 | ||||
-rw-r--r-- | drivers/video/omap2/dss/sdi.c | 3 |
6 files changed, 12 insertions, 31 deletions
diff --git a/drivers/video/omap2/dss/dispc.c b/drivers/video/omap2/dss/dispc.c index 6e25624b3faf..c017d22cad48 100644 --- a/drivers/video/omap2/dss/dispc.c +++ b/drivers/video/omap2/dss/dispc.c | |||
@@ -2490,26 +2490,9 @@ void dispc_mgr_enable_fifohandcheck(enum omap_channel channel, bool enable) | |||
2490 | } | 2490 | } |
2491 | 2491 | ||
2492 | 2492 | ||
2493 | void dispc_mgr_set_lcd_display_type(enum omap_channel channel, | 2493 | void dispc_mgr_set_lcd_type_tft(enum omap_channel channel) |
2494 | enum omap_lcd_display_type type) | ||
2495 | { | 2494 | { |
2496 | int mode; | 2495 | mgr_fld_write(channel, DISPC_MGR_FLD_STNTFT, 1); |
2497 | |||
2498 | switch (type) { | ||
2499 | case OMAP_DSS_LCD_DISPLAY_STN: | ||
2500 | mode = 0; | ||
2501 | break; | ||
2502 | |||
2503 | case OMAP_DSS_LCD_DISPLAY_TFT: | ||
2504 | mode = 1; | ||
2505 | break; | ||
2506 | |||
2507 | default: | ||
2508 | BUG(); | ||
2509 | return; | ||
2510 | } | ||
2511 | |||
2512 | mgr_fld_write(channel, DISPC_MGR_FLD_STNTFT, mode); | ||
2513 | } | 2496 | } |
2514 | 2497 | ||
2515 | void dispc_set_loadmode(enum omap_dss_load_mode mode) | 2498 | void dispc_set_loadmode(enum omap_dss_load_mode mode) |
diff --git a/drivers/video/omap2/dss/dpi.c b/drivers/video/omap2/dss/dpi.c index e6904b2b9fec..45fb1a673a2a 100644 --- a/drivers/video/omap2/dss/dpi.c +++ b/drivers/video/omap2/dss/dpi.c | |||
@@ -163,8 +163,8 @@ static void dpi_basic_init(struct omap_dss_device *dssdev) | |||
163 | dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_BYPASS); | 163 | dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_BYPASS); |
164 | dispc_mgr_enable_stallmode(dssdev->manager->id, false); | 164 | dispc_mgr_enable_stallmode(dssdev->manager->id, false); |
165 | 165 | ||
166 | dispc_mgr_set_lcd_display_type(dssdev->manager->id, | 166 | dispc_mgr_set_lcd_type_tft(dssdev->manager->id); |
167 | OMAP_DSS_LCD_DISPLAY_TFT); | 167 | |
168 | dispc_mgr_set_tft_data_lines(dssdev->manager->id, | 168 | dispc_mgr_set_tft_data_lines(dssdev->manager->id, |
169 | dssdev->phy.dpi.data_lines); | 169 | dssdev->phy.dpi.data_lines); |
170 | } | 170 | } |
diff --git a/drivers/video/omap2/dss/dsi.c b/drivers/video/omap2/dss/dsi.c index aa3b81088a23..06b578036497 100644 --- a/drivers/video/omap2/dss/dsi.c +++ b/drivers/video/omap2/dss/dsi.c | |||
@@ -4380,10 +4380,11 @@ static int dsi_display_init_dispc(struct omap_dss_device *dssdev) | |||
4380 | dss_mgr_set_timings(dssdev->manager, &dssdev->panel.timings); | 4380 | dss_mgr_set_timings(dssdev->manager, &dssdev->panel.timings); |
4381 | } | 4381 | } |
4382 | 4382 | ||
4383 | dispc_mgr_set_lcd_display_type(dssdev->manager->id, | 4383 | dispc_mgr_set_lcd_type_tft(dssdev->manager->id); |
4384 | OMAP_DSS_LCD_DISPLAY_TFT); | 4384 | |
4385 | dispc_mgr_set_tft_data_lines(dssdev->manager->id, | 4385 | dispc_mgr_set_tft_data_lines(dssdev->manager->id, |
4386 | dsi_get_pixel_size(dssdev->panel.dsi_pix_fmt)); | 4386 | dsi_get_pixel_size(dssdev->panel.dsi_pix_fmt)); |
4387 | |||
4387 | return 0; | 4388 | return 0; |
4388 | } | 4389 | } |
4389 | 4390 | ||
diff --git a/drivers/video/omap2/dss/dss.h b/drivers/video/omap2/dss/dss.h index 88e1c12195e5..692d6501b4e8 100644 --- a/drivers/video/omap2/dss/dss.h +++ b/drivers/video/omap2/dss/dss.h | |||
@@ -420,8 +420,7 @@ bool dispc_mgr_is_channel_enabled(enum omap_channel channel); | |||
420 | void dispc_mgr_set_io_pad_mode(enum dss_io_pad_mode mode); | 420 | void dispc_mgr_set_io_pad_mode(enum dss_io_pad_mode mode); |
421 | void dispc_mgr_enable_stallmode(enum omap_channel channel, bool enable); | 421 | void dispc_mgr_enable_stallmode(enum omap_channel channel, bool enable); |
422 | void dispc_mgr_set_tft_data_lines(enum omap_channel channel, u8 data_lines); | 422 | void dispc_mgr_set_tft_data_lines(enum omap_channel channel, u8 data_lines); |
423 | void dispc_mgr_set_lcd_display_type(enum omap_channel channel, | 423 | void dispc_mgr_set_lcd_type_tft(enum omap_channel channel); |
424 | enum omap_lcd_display_type type); | ||
425 | void dispc_mgr_set_timings(enum omap_channel channel, | 424 | void dispc_mgr_set_timings(enum omap_channel channel, |
426 | struct omap_video_timings *timings); | 425 | struct omap_video_timings *timings); |
427 | void dispc_mgr_set_pol_freq(enum omap_channel channel, | 426 | void dispc_mgr_set_pol_freq(enum omap_channel channel, |
diff --git a/drivers/video/omap2/dss/rfbi.c b/drivers/video/omap2/dss/rfbi.c index 7985fa12b9b4..539d709c6c0e 100644 --- a/drivers/video/omap2/dss/rfbi.c +++ b/drivers/video/omap2/dss/rfbi.c | |||
@@ -885,8 +885,7 @@ int omapdss_rfbi_display_enable(struct omap_dss_device *dssdev) | |||
885 | goto err1; | 885 | goto err1; |
886 | } | 886 | } |
887 | 887 | ||
888 | dispc_mgr_set_lcd_display_type(dssdev->manager->id, | 888 | dispc_mgr_set_lcd_type_tft(dssdev->manager->id); |
889 | OMAP_DSS_LCD_DISPLAY_TFT); | ||
890 | 889 | ||
891 | dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_RFBI); | 890 | dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_RFBI); |
892 | dispc_mgr_enable_stallmode(dssdev->manager->id, true); | 891 | dispc_mgr_enable_stallmode(dssdev->manager->id, true); |
diff --git a/drivers/video/omap2/dss/sdi.c b/drivers/video/omap2/dss/sdi.c index d07ecc44603e..1a369decad38 100644 --- a/drivers/video/omap2/dss/sdi.c +++ b/drivers/video/omap2/dss/sdi.c | |||
@@ -40,8 +40,7 @@ static void sdi_basic_init(struct omap_dss_device *dssdev) | |||
40 | dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_BYPASS); | 40 | dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_BYPASS); |
41 | dispc_mgr_enable_stallmode(dssdev->manager->id, false); | 41 | dispc_mgr_enable_stallmode(dssdev->manager->id, false); |
42 | 42 | ||
43 | dispc_mgr_set_lcd_display_type(dssdev->manager->id, | 43 | dispc_mgr_set_lcd_type_tft(dssdev->manager->id); |
44 | OMAP_DSS_LCD_DISPLAY_TFT); | ||
45 | 44 | ||
46 | dispc_mgr_set_tft_data_lines(dssdev->manager->id, 24); | 45 | dispc_mgr_set_tft_data_lines(dssdev->manager->id, 24); |
47 | dispc_lcd_enable_signal_polarity(1); | 46 | dispc_lcd_enable_signal_polarity(1); |