2 * Copyright (C) 2012 Lothar Waßmann <LW@KARO-electronics.de>
4 * LCD driver for i.MX28
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * version 2 as published by the Free Software Foundation.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
20 #include <linux/list.h>
23 #define fourcc(a, b, c, d) (((__u32)(a) << 0) | \
25 ((__u32)(c) << 16) | \
29 * Pixel formats are defined with ASCII FOURCC code. The pixel format codes are
30 * the same used by V4L2 API.
33 #define PIX_FMT_RGB332 fourcc('R', 'G', 'B', '1') /*< 8 RGB-3-3-2 */
34 #define PIX_FMT_RGB555 fourcc('R', 'G', 'B', 'O') /*< 16 RGB-5-5-5 */
35 #define PIX_FMT_RGB565 fourcc('R', 'G', 'B', 'P') /*< 1 6 RGB-5-6-5 */
36 #define PIX_FMT_RGB666 fourcc('R', 'G', 'B', '6') /*< 18 RGB-6-6-6 */
37 #define PIX_FMT_BGR666 fourcc('B', 'G', 'R', '6') /*< 18 BGR-6-6-6 */
38 #define PIX_FMT_BGR24 fourcc('B', 'G', 'R', '3') /*< 24 BGR-8-8-8 */
39 #define PIX_FMT_RGB24 fourcc('R', 'G', 'B', '3') /*< 24 RGB-8-8-8 */
41 #define PIX_FMT_GREY fourcc('G', 'R', 'E', 'Y') /*< 8 Greyscale */
43 #define FB_SYNC_DATA_ENABLE_HIGH_ACT (1 << 6)
44 #define FB_SYNC_DOTCLK_FALLING_ACT (1 << 7) /* falling/negative edge sampling */
46 extern int mxsfb_init(struct fb_videomode *mode, uint32_t pixfmt, int bpp);
47 extern void mxsfb_disable(void);
49 #endif /* __MXSFB_H */