Path: blob/master/arch/arm/mach-mxs/include/mach/mxsfb.h
10820 views
/*1* This program is free software; you can redistribute it and/or2* modify it under the terms of the GNU General Public License3* as published by the Free Software Foundation; either version 24* of the License, or (at your option) any later version.5* This program is distributed in the hope that it will be useful,6* but WITHOUT ANY WARRANTY; without even the implied warranty of7* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the8* GNU General Public License for more details.9*10* You should have received a copy of the GNU General Public License11* along with this program; if not, write to the Free Software12* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,13* MA 02110-1301, USA.14*/1516#ifndef __MACH_FB_H17#define __MACH_FB_H1819#include <linux/fb.h>2021#define STMLCDIF_8BIT 1 /** pixel data bus to the display is of 8 bit width */22#define STMLCDIF_16BIT 0 /** pixel data bus to the display is of 16 bit width */23#define STMLCDIF_18BIT 2 /** pixel data bus to the display is of 18 bit width */24#define STMLCDIF_24BIT 3 /** pixel data bus to the display is of 24 bit width */2526#define FB_SYNC_DATA_ENABLE_HIGH_ACT (1 << 6)27#define FB_SYNC_DOTCLK_FAILING_ACT (1 << 7) /* failing/negtive edge sampling */2829struct mxsfb_platform_data {30struct fb_videomode *mode_list;31unsigned mode_count;3233unsigned default_bpp;3435unsigned dotclk_delay; /* refer manual HW_LCDIF_VDCTRL4 register */36unsigned ld_intf_width; /* refer STMLCDIF_* macros */3738unsigned fb_size; /* Size of the video memory. If zero a39* default will be used40*/41unsigned long fb_phys; /* physical address for the video memory. If42* zero the framebuffer memory will be dynamically43* allocated. If specified,fb_size must also be specified.44* fb_phys must be unused by Linux.45*/46};4748#endif /* __MACH_FB_H */495051