diff options
| author | Roger Quadros <roger.quadros@nokia.com> | 2010-03-17 08:35:19 -0400 |
|---|---|---|
| committer | Tomi Valkeinen <tomi.valkeinen@nokia.com> | 2010-05-18 07:14:29 -0400 |
| commit | b4d78bf7a4663c8354ec9432eb9631b144a33ffa (patch) | |
| tree | a62dabb850bb998f88891b79a3843b4033789c28 /drivers/video/omap2/dss | |
| parent | 14ec4740ff64e4111216287b1e8d51d515618b56 (diff) | |
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: Roger Quadros <roger.quadros@nokia.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
Diffstat (limited to 'drivers/video/omap2/dss')
| -rw-r--r-- | drivers/video/omap2/dss/Kconfig | 6 | ||||
| -rw-r--r-- | drivers/video/omap2/dss/Makefile | 3 | ||||
| -rw-r--r-- | drivers/video/omap2/dss/core.c | 4 | ||||
| -rw-r--r-- | drivers/video/omap2/dss/display.c | 4 |
4 files changed, 16 insertions, 1 deletions
diff --git a/drivers/video/omap2/dss/Kconfig b/drivers/video/omap2/dss/Kconfig index 87afb81b2c44..43b64403eaa4 100644 --- a/drivers/video/omap2/dss/Kconfig +++ b/drivers/video/omap2/dss/Kconfig | |||
| @@ -36,6 +36,12 @@ config OMAP2_DSS_COLLECT_IRQ_STATS | |||
| 36 | <debugfs>/omapdss/dispc_irq for DISPC interrupts, and | 36 | <debugfs>/omapdss/dispc_irq for DISPC interrupts, and |
| 37 | <debugfs>/omapdss/dsi_irq for DSI interrupts. | 37 | <debugfs>/omapdss/dsi_irq for DSI interrupts. |
| 38 | 38 | ||
| 39 | config OMAP2_DSS_DPI | ||
| 40 | bool "DPI support" | ||
| 41 | default y | ||
| 42 | help | ||
| 43 | DPI Interface. This is the Parallel Display Interface. | ||
| 44 | |||
| 39 | config OMAP2_DSS_RFBI | 45 | config OMAP2_DSS_RFBI |
| 40 | bool "RFBI support" | 46 | bool "RFBI support" |
| 41 | default n | 47 | default n |
diff --git a/drivers/video/omap2/dss/Makefile b/drivers/video/omap2/dss/Makefile index 980c72c2db98..d71b5d9d71b1 100644 --- a/drivers/video/omap2/dss/Makefile +++ b/drivers/video/omap2/dss/Makefile | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | obj-$(CONFIG_OMAP2_DSS) += omapdss.o | 1 | obj-$(CONFIG_OMAP2_DSS) += omapdss.o |
| 2 | omapdss-y := core.o dss.o dispc.o dpi.o display.o manager.o overlay.o | 2 | omapdss-y := core.o dss.o dispc.o display.o manager.o overlay.o |
| 3 | omapdss-$(CONFIG_OMAP2_DSS_DPI) += dpi.o | ||
| 3 | omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o | 4 | omapdss-$(CONFIG_OMAP2_DSS_RFBI) += rfbi.o |
| 4 | omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o | 5 | omapdss-$(CONFIG_OMAP2_DSS_VENC) += venc.o |
| 5 | omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o | 6 | omapdss-$(CONFIG_OMAP2_DSS_SDI) += sdi.o |
diff --git a/drivers/video/omap2/dss/core.c b/drivers/video/omap2/dss/core.c index 7ebe50b335ed..6d54467e5e20 100644 --- a/drivers/video/omap2/dss/core.c +++ b/drivers/video/omap2/dss/core.c | |||
| @@ -526,11 +526,13 @@ static int omap_dss_probe(struct platform_device *pdev) | |||
| 526 | } | 526 | } |
| 527 | #endif | 527 | #endif |
| 528 | 528 | ||
| 529 | #ifdef CONFIG_OMAP2_DSS_DPI | ||
| 529 | r = dpi_init(pdev); | 530 | r = dpi_init(pdev); |
| 530 | if (r) { | 531 | if (r) { |
| 531 | DSSERR("Failed to initialize dpi\n"); | 532 | DSSERR("Failed to initialize dpi\n"); |
| 532 | goto fail0; | 533 | goto fail0; |
| 533 | } | 534 | } |
| 535 | #endif | ||
| 534 | 536 | ||
| 535 | r = dispc_init(); | 537 | r = dispc_init(); |
| 536 | if (r) { | 538 | if (r) { |
| @@ -601,7 +603,9 @@ static int omap_dss_remove(struct platform_device *pdev) | |||
| 601 | venc_exit(); | 603 | venc_exit(); |
| 602 | #endif | 604 | #endif |
| 603 | dispc_exit(); | 605 | dispc_exit(); |
| 606 | #ifdef CONFIG_OMAP2_DSS_DPI | ||
| 604 | dpi_exit(); | 607 | dpi_exit(); |
| 608 | #endif | ||
| 605 | #ifdef CONFIG_OMAP2_DSS_RFBI | 609 | #ifdef CONFIG_OMAP2_DSS_RFBI |
| 606 | rfbi_exit(); | 610 | rfbi_exit(); |
| 607 | #endif | 611 | #endif |
diff --git a/drivers/video/omap2/dss/display.c b/drivers/video/omap2/dss/display.c index 6a74ea116d29..71389630b108 100644 --- a/drivers/video/omap2/dss/display.c +++ b/drivers/video/omap2/dss/display.c | |||
| @@ -392,7 +392,9 @@ void dss_init_device(struct platform_device *pdev, | |||
| 392 | int r; | 392 | int r; |
| 393 | 393 | ||
| 394 | switch (dssdev->type) { | 394 | switch (dssdev->type) { |
| 395 | #ifdef CONFIG_OMAP2_DSS_DPI | ||
| 395 | case OMAP_DISPLAY_TYPE_DPI: | 396 | case OMAP_DISPLAY_TYPE_DPI: |
| 397 | #endif | ||
| 396 | #ifdef CONFIG_OMAP2_DSS_RFBI | 398 | #ifdef CONFIG_OMAP2_DSS_RFBI |
| 397 | case OMAP_DISPLAY_TYPE_DBI: | 399 | case OMAP_DISPLAY_TYPE_DBI: |
| 398 | #endif | 400 | #endif |
| @@ -413,9 +415,11 @@ void dss_init_device(struct platform_device *pdev, | |||
| 413 | } | 415 | } |
| 414 | 416 | ||
| 415 | switch (dssdev->type) { | 417 | switch (dssdev->type) { |
| 418 | #ifdef CONFIG_OMAP2_DSS_DPI | ||
| 416 | case OMAP_DISPLAY_TYPE_DPI: | 419 | case OMAP_DISPLAY_TYPE_DPI: |
| 417 | r = dpi_init_display(dssdev); | 420 | r = dpi_init_display(dssdev); |
| 418 | break; | 421 | break; |
| 422 | #endif | ||
| 419 | #ifdef CONFIG_OMAP2_DSS_RFBI | 423 | #ifdef CONFIG_OMAP2_DSS_RFBI |
| 420 | case OMAP_DISPLAY_TYPE_DBI: | 424 | case OMAP_DISPLAY_TYPE_DBI: |
| 421 | r = rfbi_init_display(dssdev); | 425 | r = rfbi_init_display(dssdev); |
