eGUI alias D4D  Release 3.0
Reference Manual
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
d4dlcdhw_dragonfire_lcdc.h
Go to the documentation of this file.
1 /**************************************************************************
2 *
3 * Copyright 2014 by Petr Gargulak. eGUI Community.
4 * Copyright 2009-2013 by Petr Gargulak. Freescale Semiconductor, Inc.
5 *
6 ***************************************************************************
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License Version 3
9 * or later (the "LGPL").
10 *
11 * As a special exception, the copyright holders of the eGUI project give you
12 * permission to link the eGUI sources with independent modules to produce an
13 * executable, regardless of the license terms of these independent modules,
14 * and to copy and distribute the resulting executable under terms of your
15 * choice, provided that you also meet, for each linked independent module,
16 * the terms and conditions of the license of that module.
17 * An independent module is a module which is not derived from or based
18 * on this library.
19 * If you modify the eGUI sources, you may extend this exception
20 * to your version of the eGUI sources, but you are not obligated
21 * to do so. If you do not wish to do so, delete this
22 * exception statement from your version.
23 *
24 * This program is distributed in the hope that it will be useful,
25 * but WITHOUT ANY WARRANTY; without even the implied warranty of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
27 *
28 * You should have received a copy of the GNU General Public License
29 * and the GNU Lesser General Public License along with this program.
30 * If not, see <http://www.gnu.org/licenses/>.
31 *
32 ***************************************************************************/
46 #ifndef __D4DLCDHW_DRAGONFIRE_LCDC_H
47 #define __D4DLCDHW_DRAGONFIRE_LCDC_H
48 
49  #if (D4D_MK_STR(D4D_LLD_LCD_HW) == d4dlcdhw_dragonfire_lcdc_ID)
50 
51  /******************************************************************************
52  * Includes
53  ******************************************************************************/
54  #include "d4dlcdhw_dragonfire_lcdc_cfg.h"
55 
56  /******************************************************************************
57  * Constants
58  ******************************************************************************/
59 
60  #ifndef D4DLCDHWFB_START_ADDRESS
61  #define D4DLCDHWFB_START_ADDRESS 0x40000000
62  #endif
63 
64  #ifndef D4DLCDHWFB_X_MAX
65  #define D4DLCDHWFB_X_MAX 240
66  #endif
67 
68  #ifndef D4DLCDHWFB_Y_MAX
69  #define D4DLCDHWFB_Y_MAX 320
70  #endif
71 
72  #ifndef D4DLCDHWFB_Y_BPP_BYTE
73  #define D4DLCDHWFB_Y_BPP_BYTE 2
74  #endif
75 
76 
77  #ifndef D4DLCDHWFB_MIRROWED
78  #define D4DLCDHWFB_MIRROWED 0
79  #endif
80 
81  #ifndef D4DLCDHWFB_PANEL_TYPE
82  #define D4DLCDHWFB_PANEL_TYPE M52277EVB_PANEL
83  #endif
84 
85  #ifndef D4DLCDHWFB_PANEL_CLKDIV
86  #define D4DLCDHWFB_PANEL_CLKDIV 7
87  #endif
88 
89  /******************************************************************************
90  * Types
91  ******************************************************************************/
92 
93  /******************************************************************************
94  * Macros
95  ******************************************************************************/
96 
97  #define MCF_LCDC_LCD_PCR_PANEL_TYPE(x) (((x)&0x00000003)<<30)
98 
99  /******************************************************************************
100  * Global variables
101  ******************************************************************************/
102 
103  /******************************************************************************
104  * Global functions
105  ******************************************************************************/
106 
107 
108 
109 /************************* Structure/Union Data types ************************/
110 #define VDDEN_ON (*(unsigned long*)(0xC0080000))
111 //#define USE_m5329evb
112 
113 
114 typedef enum
131 } ACD_DIV;
132 
133 typedef enum
140 } Panel_Size ;
141 
142 
143 typedef enum
149 
150 typedef enum
151 {
152  BPP1=0,
153  BPP2=1,
154  BPP4=2,
155  BPP8=3,
156  BPP12=4,
157  BPP16=5,
158  BPP18=6,
160 } BPP_TYPE;
161 
162  #endif
163 #endif /* __D4DLCDHW_DRAGONFIRE_LCDC_H */
164 
165 
166 
167 
168 
169 
170 
171 
172 
173