Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 321075
b: refs/heads/master
c: bc2e60a
h: refs/heads/master
i:
  321073: afb248e
  321071: 068fe45
v: v3
  • Loading branch information
Archit Taneja committed Jun 29, 2012
1 parent 4cb8acf commit 1480bde
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5cf9a264115da9b69a2cdbe43ea0e741844bfef6
refs/heads/master: bc2e60a69fead72cfff97ddccb4cca5ce75164a8
34 changes: 28 additions & 6 deletions trunk/drivers/video/omap2/dss/rfbi.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,33 @@ static void rfbi_dump_regs(struct seq_file *s)
#undef DUMPREG
}

static void rfbi_config_lcd_manager(struct omap_dss_device *dssdev)
{
struct dss_lcd_mgr_config mgr_config;

mgr_config.io_pad_mode = DSS_IO_PAD_MODE_RFBI;

mgr_config.stallmode = true;
/* Do we need fifohandcheck for RFBI? */
mgr_config.fifohandcheck = false;

mgr_config.video_port_width = dssdev->ctrl.pixel_size;
mgr_config.lcden_sig_polarity = 0;

dispc_mgr_set_io_pad_mode(mgr_config.io_pad_mode);

dispc_mgr_enable_stallmode(dssdev->manager->id, mgr_config.stallmode);
dispc_mgr_enable_fifohandcheck(dssdev->manager->id,
mgr_config.fifohandcheck);

dispc_mgr_set_tft_data_lines(dssdev->manager->id,
mgr_config.video_port_width);

dispc_lcd_enable_signal_polarity(mgr_config.lcden_sig_polarity);

dispc_mgr_set_lcd_type_tft(dssdev->manager->id);
}

int omapdss_rfbi_display_enable(struct omap_dss_device *dssdev)
{
int r;
Expand All @@ -885,12 +912,7 @@ int omapdss_rfbi_display_enable(struct omap_dss_device *dssdev)
goto err1;
}

dispc_mgr_set_lcd_type_tft(dssdev->manager->id);

dispc_mgr_set_io_pad_mode(DSS_IO_PAD_MODE_RFBI);
dispc_mgr_enable_stallmode(dssdev->manager->id, true);

dispc_mgr_set_tft_data_lines(dssdev->manager->id, dssdev->ctrl.pixel_size);
rfbi_config_lcd_manager(dssdev);

rfbi_configure(dssdev->phy.rfbi.channel,
dssdev->ctrl.pixel_size,
Expand Down

0 comments on commit 1480bde

Please sign in to comment.