blob: 0dc38861938e21dd28244fef7e5dcd0d552b9ae9 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Stefano Babic42f151a2010-10-13 12:17:14 +02002/*
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.
Stefano Babic42f151a2010-10-13 12:17:14 +020011 */
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
23struct mxcfb_gbl_alpha {
24 int enable;
25 int alpha;
26};
27
28struct 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
35struct mxcfb_color_key {
36 int enable;
37 __u32 color_key;
38};
39
40struct mxcfb_pos {
41 __u16 x;
42 __u16 y;
43};
44
45struct mxcfb_gamma {
46 int enable;
47 int constk[16];
48 int slopek[16];
49};
50
51#endif