Commit b4d78bf7 authored by Roger Quadros's avatar Roger Quadros Committed by Tomi Valkeinen

OMAP: DSS2: Add Kconfig option for DPI display type

This allows us to disable DPI on systems that do not have it
Signed-off-by: default avatarRoger Quadros <roger.quadros@nokia.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@nokia.com>
parent 14ec4740
...@@ -36,6 +36,12 @@ config OMAP2_DSS_COLLECT_IRQ_STATS ...@@ -36,6 +36,12 @@ config OMAP2_DSS_COLLECT_IRQ_STATS
<debugfs>/omapdss/dispc_irq for DISPC interrupts, and <debugfs>/omapdss/dispc_irq for DISPC interrupts, and
<debugfs>/omapdss/dsi_irq for DSI interrupts. <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 config OMAP2_DSS_RFBI
bool "RFBI support" bool "RFBI support"
default n default n
......
obj-$(CONFIG_OMAP2_DSS) += omapdss.o 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_RFBI) += rfbi.o
omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o
omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o
......
...@@ -526,11 +526,13 @@ static int omap_dss_probe(struct platform_device *pdev) ...@@ -526,11 +526,13 @@ static int omap_dss_probe(struct platform_device *pdev)
} }
#endif #endif
#ifdef CONFIG_OMAP2_DSS_DPI
r = dpi_init(pdev); r = dpi_init(pdev);
if (r) { if (r) {
DSSERR("Failed to initialize dpi\n"); DSSERR("Failed to initialize dpi\n");
goto fail0; goto fail0;
} }
#endif
r = dispc_init(); r = dispc_init();
if (r) { if (r) {
...@@ -601,7 +603,9 @@ static int omap_dss_remove(struct platform_device *pdev) ...@@ -601,7 +603,9 @@ static int omap_dss_remove(struct platform_device *pdev)
venc_exit(); venc_exit();
#endif #endif
dispc_exit(); dispc_exit();
#ifdef CONFIG_OMAP2_DSS_DPI
dpi_exit(); dpi_exit();
#endif
#ifdef CONFIG_OMAP2_DSS_RFBI #ifdef CONFIG_OMAP2_DSS_RFBI
rfbi_exit(); rfbi_exit();
#endif #endif
......
...@@ -392,7 +392,9 @@ void dss_init_device(struct platform_device *pdev, ...@@ -392,7 +392,9 @@ void dss_init_device(struct platform_device *pdev,
int r; int r;
switch (dssdev->type) { switch (dssdev->type) {
#ifdef CONFIG_OMAP2_DSS_DPI
case OMAP_DISPLAY_TYPE_DPI: case OMAP_DISPLAY_TYPE_DPI:
#endif
#ifdef CONFIG_OMAP2_DSS_RFBI #ifdef CONFIG_OMAP2_DSS_RFBI
case OMAP_DISPLAY_TYPE_DBI: case OMAP_DISPLAY_TYPE_DBI:
#endif #endif
...@@ -413,9 +415,11 @@ void dss_init_device(struct platform_device *pdev, ...@@ -413,9 +415,11 @@ void dss_init_device(struct platform_device *pdev,
} }
switch (dssdev->type) { switch (dssdev->type) {
#ifdef CONFIG_OMAP2_DSS_DPI
case OMAP_DISPLAY_TYPE_DPI: case OMAP_DISPLAY_TYPE_DPI:
r = dpi_init_display(dssdev); r = dpi_init_display(dssdev);
break; break;
#endif
#ifdef CONFIG_OMAP2_DSS_RFBI #ifdef CONFIG_OMAP2_DSS_RFBI
case OMAP_DISPLAY_TYPE_DBI: case OMAP_DISPLAY_TYPE_DBI:
r = rfbi_init_display(dssdev); r = rfbi_init_display(dssdev);
......
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