1 /******************************************************************************
2 ** File Name: lcm_v3_reg.h *
3 ** Author: Jianping.Wang *
5 ** Copyright: 2006 Spreatrum, Incoporated. All Rights Reserved. *
7 ******************************************************************************/
8 /******************************************************************************
10 **---------------------------------------------------------------------------*
11 ** DATE NAME DESCRIPTION *
12 ** 01/21/2006 Jianping.Wang Create. *
13 ******************************************************************************/
14 #ifndef _LCM_V3_REG_H_
15 #define _LCM_V3_REG_H_
16 /*----------------------------------------------------------------------------*
18 **---------------------------------------------------------------------------*/
20 /**---------------------------------------------------------------------------*
22 **---------------------------------------------------------------------------*/
27 /**---------------------------------------------------------------------------*
29 **----------------------------------------------------------------------------*/
31 #define LCM_CTRL (LCM_REG_BASE)
32 #define LCM_PARAMETER0 (LCM_REG_BASE + 0x04)
33 #define LCM_PARAMETER1 (LCM_REG_BASE + 0x08)
34 #define LCM_IFMODE (LCM_REG_BASE + 0x0c)
35 #define LCM_RGBMODE (LCM_REG_BASE + 0x10)
36 #define LCM_RDDATA (LCM_REG_BASE + 0x14)
37 #define LCM_STATUS (LCM_REG_BASE + 0x18)
38 #define LCM_RSTN (LCM_REG_BASE + 0x1c)
39 #define LCM_CD0 (LCM_REG_BASE + 0x40)
40 #define LCM_DATA0 (LCM_REG_BASE + 0x44)
41 #define LCM_CD1 (LCM_REG_BASE + 0x50)
42 #define LCM_DATA1 (LCM_REG_BASE + 0x54)
46 /**---------------------------------------------------------------------------*
48 **----------------------------------------------------------------------------*/
49 typedef union _lcm_ctrl_tag
53 #if defined(CHIP_ENDIAN_LITTLE) && !defined (_BIG_ENDIAN)
54 volatile uint trans_num :20;//[19:0]
55 volatile uint cd_sel :6;//[25:20]
56 volatile uint dev_id :3;//[28:26]
57 volatile uint reserved :3;//Reserved
59 volatile uint reserved :3;//Reserved
60 volatile uint dev_id :3;//[28:26]
61 volatile uint cd_sel :6;//[25:20]
62 volatile uint trans_num :20;//[19:0]
65 volatile uint dwValue;
68 typedef union _lcm_parameter0_tag
70 struct _lcm_paramter0_map
72 #if defined(CHIP_ENDIAN_LITTLE) && !defined (_BIG_ENDIAN)
73 volatile uint whpw :4;
74 volatile uint wlpw :4;
75 volatile uint wcss :2;
76 volatile uint rhpw :4;
77 volatile uint rlpw :4;
78 volatile uint rcss :2;
79 volatile uint reserved :12;//Reserved
81 volatile uint reserved :12;//Reserved
82 volatile uint rcss :2;
83 volatile uint rlpw :4;
84 volatile uint rhpw :4;
85 volatile uint wcss :2;
86 volatile uint wlpw :4;
87 volatile uint whpw :4;
90 volatile uint dwValue;
93 typedef union _lcm_parameter1_tag
95 struct _lcm_paramter1_map
97 #if defined(CHIP_ENDIAN_LITTLE) && !defined (_BIG_ENDIAN)
98 volatile uint whpw :4;
99 volatile uint wlpw :4;
100 volatile uint wcss :2;
101 volatile uint rhpw :4;
102 volatile uint rlpw :4;
103 volatile uint rcss :2;
104 volatile uint reserved :12;//Reserved
106 volatile uint reserved :12;//Reserved
107 volatile uint rcss :2;
108 volatile uint rlpw :4;
109 volatile uint rhpw :4;
110 volatile uint wcss :2;
111 volatile uint wlpw :4;
112 volatile uint whpw :4;
115 volatile uint dwValue;
118 typedef union _lcm_rstn_tag
122 #if defined(CHIP_ENDIAN_LITTLE) && !defined (_BIG_ENDIAN)
123 volatile uint rstn :1;
124 volatile uint reserved :31;//Reserved
126 volatile uint reserved :31;//Reserved
127 volatile uint rstn :1;
130 volatile uint dwValue;
135 typedef union _lcm_rddata_tag
137 struct _lcm_rddata_map
139 volatile uint rd_data :32;
141 volatile uint dValue;
144 typedef union _lcm_status_tag
146 struct _lcm_status_map
148 #if defined(CHIP_ENDIAN_LITTLE) && !defined (_BIG_ENDIAN)
149 volatile uint busy :1;
150 volatile uint fifo_full :1;
151 volatile uint fifo_empty :1;
152 volatile uint reserved2 :5;//Reserved
153 volatile uint remain :20;//Reserved
154 volatile uint reserved1 :4;//Reserved
156 volatile uint reserved1 :4;//Reserved
157 volatile uint remain :20;//Reserved
158 volatile uint reserved2 :5;//Reserved
159 volatile uint fifo_empty :1;
160 volatile uint fifo_full :1;
161 volatile uint busy :1;
164 volatile uint dValue;
167 typedef union _lcm_rgbmode_tag
169 struct _lcm_rgbmode_map
171 #if defined(CHIP_ENDIAN_LITTLE) && !defined (_BIG_ENDIAN)
172 volatile uint lcm_bits0 :2;
173 volatile uint lcm_bits1 :2;
174 volatile uint reserved :28;//Reserved
176 volatile uint reserved :28;//Reserved
177 volatile uint lcm_bits1 :2;
178 volatile uint lcm_bits0 :2;
181 volatile uint dwValue;
185 /**----------------------------------------------------------------------------*
187 **----------------------------------------------------------------------------*/
191 /**---------------------------------------------------------------------------*/