diff options
Diffstat (limited to 'drivers/video/omap2')
-rw-r--r-- | drivers/video/omap2/omapfb/omapfb-main.c | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/drivers/video/omap2/omapfb/omapfb-main.c b/drivers/video/omap2/omapfb/omapfb-main.c index 4c28d57e34df..b00db4068d21 100644 --- a/drivers/video/omap2/omapfb/omapfb-main.c +++ b/drivers/video/omap2/omapfb/omapfb-main.c | |||
@@ -1487,60 +1487,6 @@ static int omapfb_alloc_fbmem_display(struct fb_info *fbi, unsigned long size, | |||
1487 | return omapfb_alloc_fbmem(fbi, size, paddr); | 1487 | return omapfb_alloc_fbmem(fbi, size, paddr); |
1488 | } | 1488 | } |
1489 | 1489 | ||
1490 | static enum omap_color_mode fb_format_to_dss_mode(enum omapfb_color_format fmt) | ||
1491 | { | ||
1492 | enum omap_color_mode mode; | ||
1493 | |||
1494 | switch (fmt) { | ||
1495 | case OMAPFB_COLOR_RGB565: | ||
1496 | mode = OMAP_DSS_COLOR_RGB16; | ||
1497 | break; | ||
1498 | case OMAPFB_COLOR_YUV422: | ||
1499 | mode = OMAP_DSS_COLOR_YUV2; | ||
1500 | break; | ||
1501 | case OMAPFB_COLOR_CLUT_8BPP: | ||
1502 | mode = OMAP_DSS_COLOR_CLUT8; | ||
1503 | break; | ||
1504 | case OMAPFB_COLOR_CLUT_4BPP: | ||
1505 | mode = OMAP_DSS_COLOR_CLUT4; | ||
1506 | break; | ||
1507 | case OMAPFB_COLOR_CLUT_2BPP: | ||
1508 | mode = OMAP_DSS_COLOR_CLUT2; | ||
1509 | break; | ||
1510 | case OMAPFB_COLOR_CLUT_1BPP: | ||
1511 | mode = OMAP_DSS_COLOR_CLUT1; | ||
1512 | break; | ||
1513 | case OMAPFB_COLOR_RGB444: | ||
1514 | mode = OMAP_DSS_COLOR_RGB12U; | ||
1515 | break; | ||
1516 | case OMAPFB_COLOR_YUY422: | ||
1517 | mode = OMAP_DSS_COLOR_UYVY; | ||
1518 | break; | ||
1519 | case OMAPFB_COLOR_ARGB16: | ||
1520 | mode = OMAP_DSS_COLOR_ARGB16; | ||
1521 | break; | ||
1522 | case OMAPFB_COLOR_RGB24U: | ||
1523 | mode = OMAP_DSS_COLOR_RGB24U; | ||
1524 | break; | ||
1525 | case OMAPFB_COLOR_RGB24P: | ||
1526 | mode = OMAP_DSS_COLOR_RGB24P; | ||
1527 | break; | ||
1528 | case OMAPFB_COLOR_ARGB32: | ||
1529 | mode = OMAP_DSS_COLOR_ARGB32; | ||
1530 | break; | ||
1531 | case OMAPFB_COLOR_RGBA32: | ||
1532 | mode = OMAP_DSS_COLOR_RGBA32; | ||
1533 | break; | ||
1534 | case OMAPFB_COLOR_RGBX32: | ||
1535 | mode = OMAP_DSS_COLOR_RGBX32; | ||
1536 | break; | ||
1537 | default: | ||
1538 | mode = -EINVAL; | ||
1539 | } | ||
1540 | |||
1541 | return mode; | ||
1542 | } | ||
1543 | |||
1544 | static int omapfb_parse_vram_param(const char *param, int max_entries, | 1490 | static int omapfb_parse_vram_param(const char *param, int max_entries, |
1545 | unsigned long *sizes, unsigned long *paddrs) | 1491 | unsigned long *sizes, unsigned long *paddrs) |
1546 | { | 1492 | { |