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 | * |
| 11 | * See file CREDITS for list of people who contributed to this |
| 12 | * project. |
| 13 | * |
| 14 | * This program is free software; you can redistribute it and/or |
| 15 | * modify it under the terms of the GNU General Public License as |
| 16 | * published by the Free Software Foundation; either version 2 of |
| 17 | * the License, or (at your option) any later version. |
| 18 | * |
| 19 | * This program is distributed in the hope that it will be useful, |
| 20 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 21 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 22 | * GNU General Public License for more details. |
| 23 | * |
| 24 | * You should have received a copy of the GNU General Public License |
| 25 | * along with this program; if not, write to the Free Software |
| 26 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
| 27 | * MA 02111-1307 USA |
| 28 | */ |
| 29 | |
| 30 | #ifndef __ASM_ARCH_MXCFB_H__ |
| 31 | #define __ASM_ARCH_MXCFB_H__ |
| 32 | |
| 33 | #define FB_SYNC_OE_LOW_ACT 0x80000000 |
| 34 | #define FB_SYNC_CLK_LAT_FALL 0x40000000 |
| 35 | #define FB_SYNC_DATA_INVERT 0x20000000 |
| 36 | #define FB_SYNC_CLK_IDLE_EN 0x10000000 |
| 37 | #define FB_SYNC_SHARP_MODE 0x08000000 |
| 38 | #define FB_SYNC_SWAP_RGB 0x04000000 |
| 39 | |
| 40 | struct mxcfb_gbl_alpha { |
| 41 | int enable; |
| 42 | int alpha; |
| 43 | }; |
| 44 | |
| 45 | struct mxcfb_loc_alpha { |
| 46 | int enable; |
| 47 | int alpha_in_pixel; |
| 48 | unsigned long alpha_phy_addr0; |
| 49 | unsigned long alpha_phy_addr1; |
| 50 | }; |
| 51 | |
| 52 | struct mxcfb_color_key { |
| 53 | int enable; |
| 54 | __u32 color_key; |
| 55 | }; |
| 56 | |
| 57 | struct mxcfb_pos { |
| 58 | __u16 x; |
| 59 | __u16 y; |
| 60 | }; |
| 61 | |
| 62 | struct mxcfb_gamma { |
| 63 | int enable; |
| 64 | int constk[16]; |
| 65 | int slopek[16]; |
| 66 | }; |
| 67 | |
| 68 | #endif |