summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-samsung/include/mach/s3c24xx-fb.h
blob: 05e013aadb4dae442b01d856b28968b5279600d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
 * Copyright (C) 2010 Juergen Beisert
 * Copyright (C) 2011 Alexey Galakhov
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 *
 */

#ifndef __MACH_FB_H_
# define __MACH_FB_H_

#include <fb.h>

/** Proprietary flags corresponding to  S3C24x0 LCDCON5 register */

/** ! INVVDEN - DE active high */
#define FB_SYNC_DE_HIGH_ACT	(1 << 23)
/** INVVCLK - invert CLK signal */
#define FB_SYNC_CLK_INVERT	(1 << 24)
/** INVVD - invert data */
#define FB_SYNC_DATA_INVERT	(1 << 25)
/** INVPWREN - use PWREN signal */
#define FB_SYNC_INVERT_PWREN	(1 << 26)
/** INVLEND - use LEND signal */
#define FB_SYNC_INVERT_LEND	(1 << 27)
/** PWREN - use PWREN signal */
#define FB_SYNC_USE_PWREN	(1 << 28)
/** ENLEND - use LEND signal */
#define FB_SYNC_USE_LEND	(1 << 29)
/** BSWP - swap bytes */
#define FB_SYNC_SWAP_BYTES	(1 << 30)
/** HWSWP - swap half words */
#define FB_SYNC_SWAP_HW		(1 << 31)

struct s3c_fb_platform_data {
	struct fb_videomode *mode_list;
	unsigned mode_cnt;

	unsigned bits_per_pixel;
	int passive_display;	/**< enable support for STN or CSTN displays */

	/** hook to enable backlight and stuff */
	void (*enable)(int enable);
};

#endif /* __MACH_FB_H_ */