lkml.org 
[lkml]   [2013]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH RESEND 5/8] fbdev: simplefb: add common x86 RGB formats
    Date
    32bit XRGB and ARGB are used by modern x86 systems for EFI and VESA
    framebuffers. The other formats were reported by hpa to be most common.
    Add these so simplefb works on most common x86 systems.

    Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
    ---
    include/linux/platform_data/simplefb.h | 7 +++++++
    1 file changed, 7 insertions(+)

    diff --git a/include/linux/platform_data/simplefb.h b/include/linux/platform_data/simplefb.h
    index 5fa2c5e..53774b0 100644
    --- a/include/linux/platform_data/simplefb.h
    +++ b/include/linux/platform_data/simplefb.h
    @@ -20,6 +20,13 @@
    #define SIMPLEFB_FORMATS \
    { \
    { "r5g6b5", 16, {11, 5}, {5, 6}, {0, 5}, {0, 0}, DRM_FORMAT_RGB565 }, \
    + { "x1r5g5b5", 16, {10, 5}, {5, 5}, {0, 5}, {0, 0}, DRM_FORMAT_XRGB1555 }, \
    + { "a1r5g5b5", 16, {10, 5}, {5, 5}, {0, 5}, {15, 1}, DRM_FORMAT_ARGB1555 }, \
    + { "r8g8b8", 24, {16, 8}, {8, 8}, {0, 8}, {0, 0}, DRM_FORMAT_RGB888 }, \
    + { "x8r8g8b8", 32, {16, 8}, {8, 8}, {0, 8}, {0, 0}, DRM_FORMAT_XRGB8888 }, \
    + { "a8r8g8b8", 32, {16, 8}, {8, 8}, {0, 8}, {24, 8}, DRM_FORMAT_ARGB8888 }, \
    + { "x2r10g10b10", 32, {20, 10}, {10, 10}, {0, 10}, {0, 0}, DRM_FORMAT_XRGB2101010 }, \
    + { "a2r10g10b10", 32, {20, 10}, {10, 10}, {0, 10}, {30, 2}, DRM_FORMAT_ARGB2101010 }, \
    }

    /*
    --
    1.8.3.4


    \
     
     \ /
      Last update: 2013-08-02 15:21    [W:3.256 / U:0.236 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site