1 
   2 
   3 
   4 
   5 
   6 
   7 
   8 #ifndef __PLATFORM_DATA_SIMPLEFB_H__
   9 #define __PLATFORM_DATA_SIMPLEFB_H__
  10 
  11 #include <drm/drm_fourcc.h>
  12 #include <linux/fb.h>
  13 #include <linux/kernel.h>
  14 
  15 
  16 #define SIMPLEFB_FORMATS \
  17 { \
  18         { "r5g6b5", 16, {11, 5}, {5, 6}, {0, 5}, {0, 0}, DRM_FORMAT_RGB565 }, \
  19         { "x1r5g5b5", 16, {10, 5}, {5, 5}, {0, 5}, {0, 0}, DRM_FORMAT_XRGB1555 }, \
  20         { "a1r5g5b5", 16, {10, 5}, {5, 5}, {0, 5}, {15, 1}, DRM_FORMAT_ARGB1555 }, \
  21         { "r8g8b8", 24, {16, 8}, {8, 8}, {0, 8}, {0, 0}, DRM_FORMAT_RGB888 }, \
  22         { "x8r8g8b8", 32, {16, 8}, {8, 8}, {0, 8}, {0, 0}, DRM_FORMAT_XRGB8888 }, \
  23         { "a8r8g8b8", 32, {16, 8}, {8, 8}, {0, 8}, {24, 8}, DRM_FORMAT_ARGB8888 }, \
  24         { "a8b8g8r8", 32, {0, 8}, {8, 8}, {16, 8}, {24, 8}, DRM_FORMAT_ABGR8888 }, \
  25         { "x2r10g10b10", 32, {20, 10}, {10, 10}, {0, 10}, {0, 0}, DRM_FORMAT_XRGB2101010 }, \
  26         { "a2r10g10b10", 32, {20, 10}, {10, 10}, {0, 10}, {30, 2}, DRM_FORMAT_ARGB2101010 }, \
  27 }
  28 
  29 
  30 
  31 
  32 
  33 
  34 
  35 
  36 struct simplefb_format {
  37         const char *name;
  38         u32 bits_per_pixel;
  39         struct fb_bitfield red;
  40         struct fb_bitfield green;
  41         struct fb_bitfield blue;
  42         struct fb_bitfield transp;
  43         u32 fourcc;
  44 };
  45 
  46 
  47 
  48 
  49 
  50 
  51 
  52 
  53 struct simplefb_platform_data {
  54         u32 width;
  55         u32 height;
  56         u32 stride;
  57         const char *format;
  58 };
  59 
  60 #endif