xref: /openbmc/u-boot/drivers/video/mxcfb.h (revision 3ba98ed8)
1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /*
3  * Porting to u-boot:
4  *
5  * (C) Copyright 2010
6  * Stefano Babic, DENX Software Engineering, sbabic@denx.de
7  *
8  * Linux IPU driver for MX51:
9  *
10  * (C) Copyright 2004-2009 Freescale Semiconductor, Inc.
11  */
12 
13 #ifndef __ASM_ARCH_MXCFB_H__
14 #define __ASM_ARCH_MXCFB_H__
15 
16 #define FB_SYNC_OE_LOW_ACT	0x80000000
17 #define FB_SYNC_CLK_LAT_FALL	0x40000000
18 #define FB_SYNC_DATA_INVERT	0x20000000
19 #define FB_SYNC_CLK_IDLE_EN	0x10000000
20 #define FB_SYNC_SHARP_MODE	0x08000000
21 #define FB_SYNC_SWAP_RGB	0x04000000
22 
23 struct mxcfb_gbl_alpha {
24 	int enable;
25 	int alpha;
26 };
27 
28 struct mxcfb_loc_alpha {
29 	int enable;
30 	int alpha_in_pixel;
31 	unsigned long alpha_phy_addr0;
32 	unsigned long alpha_phy_addr1;
33 };
34 
35 struct mxcfb_color_key {
36 	int enable;
37 	__u32 color_key;
38 };
39 
40 struct mxcfb_pos {
41 	__u16 x;
42 	__u16 y;
43 };
44 
45 struct mxcfb_gamma {
46 	int enable;
47 	int constk[16];
48 	int slopek[16];
49 };
50 
51 #endif
52