aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/video/s3c-fb.c77
1 files changed, 67 insertions, 10 deletions
diff --git a/drivers/video/s3c-fb.c b/drivers/video/s3c-fb.c
index cb68040dfc5b..6b7c5a8aea8a 100644
--- a/drivers/video/s3c-fb.c
+++ b/drivers/video/s3c-fb.c
@@ -1676,6 +1676,63 @@ static struct s3c_fb_win_variant s3c_fb_data_64xx_wins[] = {
1676 }, 1676 },
1677}; 1677};
1678 1678
1679static struct s3c_fb_win_variant s3c_fb_data_s5p_wins[] = {
1680 [0] = {
1681 .has_osd_c = 1,
1682 .osd_size_off = 0x8,
1683 .palette_sz = 256,
1684 .valid_bpp = (VALID_BPP1248 | VALID_BPP(13) |
1685 VALID_BPP(15) | VALID_BPP(16) |
1686 VALID_BPP(18) | VALID_BPP(19) |
1687 VALID_BPP(24) | VALID_BPP(25) |
1688 VALID_BPP(32)),
1689 },
1690 [1] = {
1691 .has_osd_c = 1,
1692 .has_osd_d = 1,
1693 .osd_size_off = 0xc,
1694 .has_osd_alpha = 1,
1695 .palette_sz = 256,
1696 .valid_bpp = (VALID_BPP1248 | VALID_BPP(13) |
1697 VALID_BPP(15) | VALID_BPP(16) |
1698 VALID_BPP(18) | VALID_BPP(19) |
1699 VALID_BPP(24) | VALID_BPP(25) |
1700 VALID_BPP(32)),
1701 },
1702 [2] = {
1703 .has_osd_c = 1,
1704 .has_osd_d = 1,
1705 .osd_size_off = 0xc,
1706 .has_osd_alpha = 1,
1707 .palette_sz = 256,
1708 .valid_bpp = (VALID_BPP1248 | VALID_BPP(13) |
1709 VALID_BPP(15) | VALID_BPP(16) |
1710 VALID_BPP(18) | VALID_BPP(19) |
1711 VALID_BPP(24) | VALID_BPP(25) |
1712 VALID_BPP(32)),
1713 },
1714 [3] = {
1715 .has_osd_c = 1,
1716 .has_osd_alpha = 1,
1717 .palette_sz = 256,
1718 .valid_bpp = (VALID_BPP1248 | VALID_BPP(13) |
1719 VALID_BPP(15) | VALID_BPP(16) |
1720 VALID_BPP(18) | VALID_BPP(19) |
1721 VALID_BPP(24) | VALID_BPP(25) |
1722 VALID_BPP(32)),
1723 },
1724 [4] = {
1725 .has_osd_c = 1,
1726 .has_osd_alpha = 1,
1727 .palette_sz = 256,
1728 .valid_bpp = (VALID_BPP1248 | VALID_BPP(13) |
1729 VALID_BPP(15) | VALID_BPP(16) |
1730 VALID_BPP(18) | VALID_BPP(19) |
1731 VALID_BPP(24) | VALID_BPP(25) |
1732 VALID_BPP(32)),
1733 },
1734};
1735
1679static struct s3c_fb_driverdata s3c_fb_data_64xx = { 1736static struct s3c_fb_driverdata s3c_fb_data_64xx = {
1680 .variant = { 1737 .variant = {
1681 .nr_windows = 5, 1738 .nr_windows = 5,
@@ -1729,11 +1786,11 @@ static struct s3c_fb_driverdata s3c_fb_data_s5pc100 = {
1729 1786
1730 .has_prtcon = 1, 1787 .has_prtcon = 1,
1731 }, 1788 },
1732 .win[0] = &s3c_fb_data_64xx_wins[0], 1789 .win[0] = &s3c_fb_data_s5p_wins[0],
1733 .win[1] = &s3c_fb_data_64xx_wins[1], 1790 .win[1] = &s3c_fb_data_s5p_wins[1],
1734 .win[2] = &s3c_fb_data_64xx_wins[2], 1791 .win[2] = &s3c_fb_data_s5p_wins[2],
1735 .win[3] = &s3c_fb_data_64xx_wins[3], 1792 .win[3] = &s3c_fb_data_s5p_wins[3],
1736 .win[4] = &s3c_fb_data_64xx_wins[4], 1793 .win[4] = &s3c_fb_data_s5p_wins[4],
1737}; 1794};
1738 1795
1739static struct s3c_fb_driverdata s3c_fb_data_s5pv210 = { 1796static struct s3c_fb_driverdata s3c_fb_data_s5pv210 = {
@@ -1759,11 +1816,11 @@ static struct s3c_fb_driverdata s3c_fb_data_s5pv210 = {
1759 1816
1760 .has_shadowcon = 1, 1817 .has_shadowcon = 1,
1761 }, 1818 },
1762 .win[0] = &s3c_fb_data_64xx_wins[0], 1819 .win[0] = &s3c_fb_data_s5p_wins[0],
1763 .win[1] = &s3c_fb_data_64xx_wins[1], 1820 .win[1] = &s3c_fb_data_s5p_wins[1],
1764 .win[2] = &s3c_fb_data_64xx_wins[2], 1821 .win[2] = &s3c_fb_data_s5p_wins[2],
1765 .win[3] = &s3c_fb_data_64xx_wins[3], 1822 .win[3] = &s3c_fb_data_s5p_wins[3],
1766 .win[4] = &s3c_fb_data_64xx_wins[4], 1823 .win[4] = &s3c_fb_data_s5p_wins[4],
1767}; 1824};
1768 1825
1769/* S3C2443/S3C2416 style hardware */ 1826/* S3C2443/S3C2416 style hardware */