0001
0002
0003
0004
0005
0006
0007
0008 #ifndef __PLATFORM_DATA_SIMPLEFB_H__
0009 #define __PLATFORM_DATA_SIMPLEFB_H__
0010
0011 #include <drm/drm_fourcc.h>
0012 #include <linux/fb.h>
0013 #include <linux/types.h>
0014
0015
0016 #define SIMPLEFB_FORMATS \
0017 { \
0018 { "r5g6b5", 16, {11, 5}, {5, 6}, {0, 5}, {0, 0}, DRM_FORMAT_RGB565 }, \
0019 { "r5g5b5a1", 16, {11, 5}, {6, 5}, {1, 5}, {0, 1}, DRM_FORMAT_RGBA5551 }, \
0020 { "x1r5g5b5", 16, {10, 5}, {5, 5}, {0, 5}, {0, 0}, DRM_FORMAT_XRGB1555 }, \
0021 { "a1r5g5b5", 16, {10, 5}, {5, 5}, {0, 5}, {15, 1}, DRM_FORMAT_ARGB1555 }, \
0022 { "r8g8b8", 24, {16, 8}, {8, 8}, {0, 8}, {0, 0}, DRM_FORMAT_RGB888 }, \
0023 { "x8r8g8b8", 32, {16, 8}, {8, 8}, {0, 8}, {0, 0}, DRM_FORMAT_XRGB8888 }, \
0024 { "a8r8g8b8", 32, {16, 8}, {8, 8}, {0, 8}, {24, 8}, DRM_FORMAT_ARGB8888 }, \
0025 { "a8b8g8r8", 32, {0, 8}, {8, 8}, {16, 8}, {24, 8}, DRM_FORMAT_ABGR8888 }, \
0026 { "x2r10g10b10", 32, {20, 10}, {10, 10}, {0, 10}, {0, 0}, DRM_FORMAT_XRGB2101010 }, \
0027 { "a2r10g10b10", 32, {20, 10}, {10, 10}, {0, 10}, {30, 2}, DRM_FORMAT_ARGB2101010 }, \
0028 }
0029
0030
0031
0032
0033
0034
0035
0036
0037 struct simplefb_format {
0038 const char *name;
0039 u32 bits_per_pixel;
0040 struct fb_bitfield red;
0041 struct fb_bitfield green;
0042 struct fb_bitfield blue;
0043 struct fb_bitfield transp;
0044 u32 fourcc;
0045 };
0046
0047
0048
0049
0050
0051
0052
0053
0054 struct simplefb_platform_data {
0055 u32 width;
0056 u32 height;
0057 u32 stride;
0058 const char *format;
0059 };
0060
0061 #endif