Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 196749
b: refs/heads/master
c: b4d78bf
h: refs/heads/master
i:
  196747: 5771be8
v: v3
  • Loading branch information
Roger Quadros authored and Tomi Valkeinen committed May 18, 2010
1 parent fb4bd88 commit 4e2fa54
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 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: 14ec4740ff64e4111216287b1e8d51d515618b56
refs/heads/master: b4d78bf7a4663c8354ec9432eb9631b144a33ffa
6 changes: 6 additions & 0 deletions trunk/drivers/video/omap2/dss/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ config OMAP2_DSS_COLLECT_IRQ_STATS
<debugfs>/omapdss/dispc_irq for DISPC interrupts, and
<debugfs>/omapdss/dsi_irq for DSI interrupts.

config OMAP2_DSS_DPI
bool "DPI support"
default y
help
DPI Interface. This is the Parallel Display Interface.

config OMAP2_DSS_RFBI
bool "RFBI support"
default n
Expand Down
3 changes: 2 additions & 1 deletion trunk/drivers/video/omap2/dss/Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
obj-$(CONFIG_OMAP2_DSS) += omapdss.o
omapdss-y := core.o dss.o dispc.o dpi.o display.o manager.o overlay.o
omapdss-y := core.o dss.o dispc.o display.o manager.o overlay.o
omapdss-$(CONFIG_OMAP2_DSS_DPI) += dpi.o
omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o
omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o
omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/video/omap2/dss/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,13 @@ static int omap_dss_probe(struct platform_device *pdev)
}
#endif

#ifdef CONFIG_OMAP2_DSS_DPI
r = dpi_init(pdev);
if (r) {
DSSERR("Failed to initialize dpi\n");
goto fail0;
}
#endif

r = dispc_init();
if (r) {
Expand Down Expand Up @@ -601,7 +603,9 @@ static int omap_dss_remove(struct platform_device *pdev)
venc_exit();
#endif
dispc_exit();
#ifdef CONFIG_OMAP2_DSS_DPI
dpi_exit();
#endif
#ifdef CONFIG_OMAP2_DSS_RFBI
rfbi_exit();
#endif
Expand Down
4 changes: 4 additions & 0 deletions trunk/drivers/video/omap2/dss/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,9 @@ void dss_init_device(struct platform_device *pdev,
int r;

switch (dssdev->type) {
#ifdef CONFIG_OMAP2_DSS_DPI
case OMAP_DISPLAY_TYPE_DPI:
#endif
#ifdef CONFIG_OMAP2_DSS_RFBI
case OMAP_DISPLAY_TYPE_DBI:
#endif
Expand All @@ -413,9 +415,11 @@ void dss_init_device(struct platform_device *pdev,
}

switch (dssdev->type) {
#ifdef CONFIG_OMAP2_DSS_DPI
case OMAP_DISPLAY_TYPE_DPI:
r = dpi_init_display(dssdev);
break;
#endif
#ifdef CONFIG_OMAP2_DSS_RFBI
case OMAP_DISPLAY_TYPE_DBI:
r = rfbi_init_display(dssdev);
Expand Down

0 comments on commit 4e2fa54

Please sign in to comment.