Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright (C) 2008
0004  * Guennadi Liakhovetski, DENX Software Engineering, <lg@denx.de>
0005  */
0006 
0007 #ifndef __ASM_ARCH_MX3FB_H__
0008 #define __ASM_ARCH_MX3FB_H__
0009 
0010 #include <linux/device.h>
0011 #include <linux/fb.h>
0012 
0013 /* Proprietary FB_SYNC_ flags */
0014 #define FB_SYNC_OE_ACT_HIGH 0x80000000
0015 #define FB_SYNC_CLK_INVERT  0x40000000
0016 #define FB_SYNC_DATA_INVERT 0x20000000
0017 #define FB_SYNC_CLK_IDLE_EN 0x10000000
0018 #define FB_SYNC_SHARP_MODE  0x08000000
0019 #define FB_SYNC_SWAP_RGB    0x04000000
0020 #define FB_SYNC_CLK_SEL_EN  0x02000000
0021 
0022 /*
0023  * Specify the way your display is connected. The IPU can arbitrarily
0024  * map the internal colors to the external data lines. We only support
0025  * the following mappings at the moment.
0026  */
0027 enum disp_data_mapping {
0028     /* blue -> d[0..5], green -> d[6..11], red -> d[12..17] */
0029     IPU_DISP_DATA_MAPPING_RGB666,
0030     /* blue -> d[0..4], green -> d[5..10], red -> d[11..15] */
0031     IPU_DISP_DATA_MAPPING_RGB565,
0032     /* blue -> d[0..7], green -> d[8..15], red -> d[16..23] */
0033     IPU_DISP_DATA_MAPPING_RGB888,
0034 };
0035 
0036 /**
0037  * struct mx3fb_platform_data - mx3fb platform data
0038  *
0039  * @dma_dev:    pointer to the dma-device, used for dma-slave connection
0040  * @mode:   pointer to a platform-provided per mxc_register_fb() videomode
0041  */
0042 struct mx3fb_platform_data {
0043     struct device           *dma_dev;
0044     const char          *name;
0045     const struct fb_videomode   *mode;
0046     int             num_modes;
0047     enum disp_data_mapping      disp_data_fmt;
0048 };
0049 
0050 #endif