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