summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-13 19:03:33 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-15 22:27:34 +0200
commit017667c2dc9843eb5082e991f421c773636dcf36 (patch)
tree60432008dd3bc012ac60cbfa771305f6d894dd84 /firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h
parent97b9ade63945fd8b8261fb0cf1dd0aa225c1a319 (diff)
downloadrockbox-017667c2dc9843eb5082e991f421c773636dcf36.tar.gz
rockbox-017667c2dc9843eb5082e991f421c773636dcf36.zip
imx233: generate register headers for stmp3600, stmp3700 and imx233
Change-Id: Ia87086f4f4f4ecbb844ffd869407b14ea2509934
Diffstat (limited to 'firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h')
-rw-r--r--firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h451
1 files changed, 451 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h b/firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h
new file mode 100644
index 0000000000..c528c81fee
--- /dev/null
+++ b/firmware/target/arm/imx233/regs/stmp3700/regs-lcdif.h
@@ -0,0 +1,451 @@
1/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
8 * This file was automatically generated by headergen, DO NOT EDIT it.
9 * headergen version: 2.1.7
10 * XML versions: stmp3700:3.2.0
11 *
12 * Copyright (C) 2013 by Amaury Pouly
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
16 * as published by the Free Software Foundation; either version 2
17 * of the License, or (at your option) any later version.
18 *
19 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
20 * KIND, either express or implied.
21 *
22 ****************************************************************************/
23#ifndef __HEADERGEN__STMP3700__LCDIF__H__
24#define __HEADERGEN__STMP3700__LCDIF__H__
25
26#define REGS_LCDIF_BASE (0x80030000)
27
28#define REGS_LCDIF_VERSION "3.2.0"
29
30/**
31 * Register: HW_LCDIF_CTRL
32 * Address: 0
33 * SCT: yes
34*/
35#define HW_LCDIF_CTRL (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x0 + 0x0))
36#define HW_LCDIF_CTRL_SET (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x0 + 0x4))
37#define HW_LCDIF_CTRL_CLR (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x0 + 0x8))
38#define HW_LCDIF_CTRL_TOG (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x0 + 0xc))
39#define BP_LCDIF_CTRL_SFTRST 31
40#define BM_LCDIF_CTRL_SFTRST 0x80000000
41#define BF_LCDIF_CTRL_SFTRST(v) (((v) << 31) & 0x80000000)
42#define BP_LCDIF_CTRL_CLKGATE 30
43#define BM_LCDIF_CTRL_CLKGATE 0x40000000
44#define BF_LCDIF_CTRL_CLKGATE(v) (((v) << 30) & 0x40000000)
45#define BP_LCDIF_CTRL_READ_WRITEB 29
46#define BM_LCDIF_CTRL_READ_WRITEB 0x20000000
47#define BF_LCDIF_CTRL_READ_WRITEB(v) (((v) << 29) & 0x20000000)
48#define BP_LCDIF_CTRL_WAIT_FOR_VSYNC_EDGE 28
49#define BM_LCDIF_CTRL_WAIT_FOR_VSYNC_EDGE 0x10000000
50#define BF_LCDIF_CTRL_WAIT_FOR_VSYNC_EDGE(v) (((v) << 28) & 0x10000000)
51#define BP_LCDIF_CTRL_DATA_SHIFT_DIR 27
52#define BM_LCDIF_CTRL_DATA_SHIFT_DIR 0x8000000
53#define BV_LCDIF_CTRL_DATA_SHIFT_DIR__TXDATA_SHIFT_LEFT 0x0
54#define BV_LCDIF_CTRL_DATA_SHIFT_DIR__TXDATA_SHIFT_RIGHT 0x1
55#define BF_LCDIF_CTRL_DATA_SHIFT_DIR(v) (((v) << 27) & 0x8000000)
56#define BF_LCDIF_CTRL_DATA_SHIFT_DIR_V(v) ((BV_LCDIF_CTRL_DATA_SHIFT_DIR__##v << 27) & 0x8000000)
57#define BP_LCDIF_CTRL_SHIFT_NUM_BITS 25
58#define BM_LCDIF_CTRL_SHIFT_NUM_BITS 0x6000000
59#define BF_LCDIF_CTRL_SHIFT_NUM_BITS(v) (((v) << 25) & 0x6000000)
60#define BP_LCDIF_CTRL_DVI_MODE 24
61#define BM_LCDIF_CTRL_DVI_MODE 0x1000000
62#define BF_LCDIF_CTRL_DVI_MODE(v) (((v) << 24) & 0x1000000)
63#define BP_LCDIF_CTRL_BYPASS_COUNT 23
64#define BM_LCDIF_CTRL_BYPASS_COUNT 0x800000
65#define BF_LCDIF_CTRL_BYPASS_COUNT(v) (((v) << 23) & 0x800000)
66#define BP_LCDIF_CTRL_DATA_SWIZZLE 21
67#define BM_LCDIF_CTRL_DATA_SWIZZLE 0x600000
68#define BV_LCDIF_CTRL_DATA_SWIZZLE__NO_SWAP 0x0
69#define BV_LCDIF_CTRL_DATA_SWIZZLE__LITTLE_ENDIAN 0x0
70#define BV_LCDIF_CTRL_DATA_SWIZZLE__BIG_ENDIAN_SWAP 0x1
71#define BV_LCDIF_CTRL_DATA_SWIZZLE__SWAP_ALL_BYTES 0x1
72#define BV_LCDIF_CTRL_DATA_SWIZZLE__HWD_SWAP 0x2
73#define BV_LCDIF_CTRL_DATA_SWIZZLE__HWD_BYTE_SWAP 0x3
74#define BF_LCDIF_CTRL_DATA_SWIZZLE(v) (((v) << 21) & 0x600000)
75#define BF_LCDIF_CTRL_DATA_SWIZZLE_V(v) ((BV_LCDIF_CTRL_DATA_SWIZZLE__##v << 21) & 0x600000)
76#define BP_LCDIF_CTRL_VSYNC_MODE 20
77#define BM_LCDIF_CTRL_VSYNC_MODE 0x100000
78#define BF_LCDIF_CTRL_VSYNC_MODE(v) (((v) << 20) & 0x100000)
79#define BP_LCDIF_CTRL_DOTCLK_MODE 19
80#define BM_LCDIF_CTRL_DOTCLK_MODE 0x80000
81#define BF_LCDIF_CTRL_DOTCLK_MODE(v) (((v) << 19) & 0x80000)
82#define BP_LCDIF_CTRL_DATA_SELECT 18
83#define BM_LCDIF_CTRL_DATA_SELECT 0x40000
84#define BV_LCDIF_CTRL_DATA_SELECT__CMD_MODE 0x0
85#define BV_LCDIF_CTRL_DATA_SELECT__DATA_MODE 0x1
86#define BF_LCDIF_CTRL_DATA_SELECT(v) (((v) << 18) & 0x40000)
87#define BF_LCDIF_CTRL_DATA_SELECT_V(v) ((BV_LCDIF_CTRL_DATA_SELECT__##v << 18) & 0x40000)
88#define BP_LCDIF_CTRL_WORD_LENGTH 17
89#define BM_LCDIF_CTRL_WORD_LENGTH 0x20000
90#define BV_LCDIF_CTRL_WORD_LENGTH__16_BIT 0x0
91#define BV_LCDIF_CTRL_WORD_LENGTH__8_BIT 0x1
92#define BF_LCDIF_CTRL_WORD_LENGTH(v) (((v) << 17) & 0x20000)
93#define BF_LCDIF_CTRL_WORD_LENGTH_V(v) ((BV_LCDIF_CTRL_WORD_LENGTH__##v << 17) & 0x20000)
94#define BP_LCDIF_CTRL_RUN 16
95#define BM_LCDIF_CTRL_RUN 0x10000
96#define BF_LCDIF_CTRL_RUN(v) (((v) << 16) & 0x10000)
97#define BP_LCDIF_CTRL_COUNT 0
98#define BM_LCDIF_CTRL_COUNT 0xffff
99#define BF_LCDIF_CTRL_COUNT(v) (((v) << 0) & 0xffff)
100
101/**
102 * Register: HW_LCDIF_CTRL1
103 * Address: 0x10
104 * SCT: yes
105*/
106#define HW_LCDIF_CTRL1 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x10 + 0x0))
107#define HW_LCDIF_CTRL1_SET (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x10 + 0x4))
108#define HW_LCDIF_CTRL1_CLR (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x10 + 0x8))
109#define HW_LCDIF_CTRL1_TOG (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x10 + 0xc))
110#define BP_LCDIF_CTRL1_BYTE_PACKING_FORMAT 16
111#define BM_LCDIF_CTRL1_BYTE_PACKING_FORMAT 0xf0000
112#define BF_LCDIF_CTRL1_BYTE_PACKING_FORMAT(v) (((v) << 16) & 0xf0000)
113#define BP_LCDIF_CTRL1_OVERFLOW_IRQ_EN 15
114#define BM_LCDIF_CTRL1_OVERFLOW_IRQ_EN 0x8000
115#define BF_LCDIF_CTRL1_OVERFLOW_IRQ_EN(v) (((v) << 15) & 0x8000)
116#define BP_LCDIF_CTRL1_UNDERFLOW_IRQ_EN 14
117#define BM_LCDIF_CTRL1_UNDERFLOW_IRQ_EN 0x4000
118#define BF_LCDIF_CTRL1_UNDERFLOW_IRQ_EN(v) (((v) << 14) & 0x4000)
119#define BP_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ_EN 13
120#define BM_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ_EN 0x2000
121#define BF_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ_EN(v) (((v) << 13) & 0x2000)
122#define BP_LCDIF_CTRL1_VSYNC_EDGE_IRQ_EN 12
123#define BM_LCDIF_CTRL1_VSYNC_EDGE_IRQ_EN 0x1000
124#define BF_LCDIF_CTRL1_VSYNC_EDGE_IRQ_EN(v) (((v) << 12) & 0x1000)
125#define BP_LCDIF_CTRL1_OVERFLOW_IRQ 11
126#define BM_LCDIF_CTRL1_OVERFLOW_IRQ 0x800
127#define BV_LCDIF_CTRL1_OVERFLOW_IRQ__NO_REQUEST 0x0
128#define BV_LCDIF_CTRL1_OVERFLOW_IRQ__REQUEST 0x1
129#define BF_LCDIF_CTRL1_OVERFLOW_IRQ(v) (((v) << 11) & 0x800)
130#define BF_LCDIF_CTRL1_OVERFLOW_IRQ_V(v) ((BV_LCDIF_CTRL1_OVERFLOW_IRQ__##v << 11) & 0x800)
131#define BP_LCDIF_CTRL1_UNDERFLOW_IRQ 10
132#define BM_LCDIF_CTRL1_UNDERFLOW_IRQ 0x400
133#define BV_LCDIF_CTRL1_UNDERFLOW_IRQ__NO_REQUEST 0x0
134#define BV_LCDIF_CTRL1_UNDERFLOW_IRQ__REQUEST 0x1
135#define BF_LCDIF_CTRL1_UNDERFLOW_IRQ(v) (((v) << 10) & 0x400)
136#define BF_LCDIF_CTRL1_UNDERFLOW_IRQ_V(v) ((BV_LCDIF_CTRL1_UNDERFLOW_IRQ__##v << 10) & 0x400)
137#define BP_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ 9
138#define BM_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ 0x200
139#define BV_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ__NO_REQUEST 0x0
140#define BV_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ__REQUEST 0x1
141#define BF_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ(v) (((v) << 9) & 0x200)
142#define BF_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ_V(v) ((BV_LCDIF_CTRL1_CUR_FRAME_DONE_IRQ__##v << 9) & 0x200)
143#define BP_LCDIF_CTRL1_VSYNC_EDGE_IRQ 8
144#define BM_LCDIF_CTRL1_VSYNC_EDGE_IRQ 0x100
145#define BV_LCDIF_CTRL1_VSYNC_EDGE_IRQ__NO_REQUEST 0x0
146#define BV_LCDIF_CTRL1_VSYNC_EDGE_IRQ__REQUEST 0x1
147#define BF_LCDIF_CTRL1_VSYNC_EDGE_IRQ(v) (((v) << 8) & 0x100)
148#define BF_LCDIF_CTRL1_VSYNC_EDGE_IRQ_V(v) ((BV_LCDIF_CTRL1_VSYNC_EDGE_IRQ__##v << 8) & 0x100)
149#define BP_LCDIF_CTRL1_READ_MODE_NUM_PACKED_SUBWORDS 5
150#define BM_LCDIF_CTRL1_READ_MODE_NUM_PACKED_SUBWORDS 0xe0
151#define BF_LCDIF_CTRL1_READ_MODE_NUM_PACKED_SUBWORDS(v) (((v) << 5) & 0xe0)
152#define BP_LCDIF_CTRL1_FIRST_READ_DUMMY 4
153#define BM_LCDIF_CTRL1_FIRST_READ_DUMMY 0x10
154#define BF_LCDIF_CTRL1_FIRST_READ_DUMMY(v) (((v) << 4) & 0x10)
155#define BP_LCDIF_CTRL1_LCD_CS_CTRL 3
156#define BM_LCDIF_CTRL1_LCD_CS_CTRL 0x8
157#define BF_LCDIF_CTRL1_LCD_CS_CTRL(v) (((v) << 3) & 0x8)
158#define BP_LCDIF_CTRL1_BUSY_ENABLE 2
159#define BM_LCDIF_CTRL1_BUSY_ENABLE 0x4
160#define BV_LCDIF_CTRL1_BUSY_ENABLE__BUSY_DISABLED 0x0
161#define BV_LCDIF_CTRL1_BUSY_ENABLE__BUSY_ENABLED 0x1
162#define BF_LCDIF_CTRL1_BUSY_ENABLE(v) (((v) << 2) & 0x4)
163#define BF_LCDIF_CTRL1_BUSY_ENABLE_V(v) ((BV_LCDIF_CTRL1_BUSY_ENABLE__##v << 2) & 0x4)
164#define BP_LCDIF_CTRL1_MODE86 1
165#define BM_LCDIF_CTRL1_MODE86 0x2
166#define BV_LCDIF_CTRL1_MODE86__8080_MODE 0x0
167#define BV_LCDIF_CTRL1_MODE86__6800_MODE 0x1
168#define BF_LCDIF_CTRL1_MODE86(v) (((v) << 1) & 0x2)
169#define BF_LCDIF_CTRL1_MODE86_V(v) ((BV_LCDIF_CTRL1_MODE86__##v << 1) & 0x2)
170#define BP_LCDIF_CTRL1_RESET 0
171#define BM_LCDIF_CTRL1_RESET 0x1
172#define BV_LCDIF_CTRL1_RESET__LCDRESET_LOW 0x0
173#define BV_LCDIF_CTRL1_RESET__LCDRESET_HIGH 0x1
174#define BF_LCDIF_CTRL1_RESET(v) (((v) << 0) & 0x1)
175#define BF_LCDIF_CTRL1_RESET_V(v) ((BV_LCDIF_CTRL1_RESET__##v << 0) & 0x1)
176
177/**
178 * Register: HW_LCDIF_TIMING
179 * Address: 0x20
180 * SCT: no
181*/
182#define HW_LCDIF_TIMING (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x20))
183#define BP_LCDIF_TIMING_CMD_HOLD 24
184#define BM_LCDIF_TIMING_CMD_HOLD 0xff000000
185#define BF_LCDIF_TIMING_CMD_HOLD(v) (((v) << 24) & 0xff000000)
186#define BP_LCDIF_TIMING_CMD_SETUP 16
187#define BM_LCDIF_TIMING_CMD_SETUP 0xff0000
188#define BF_LCDIF_TIMING_CMD_SETUP(v) (((v) << 16) & 0xff0000)
189#define BP_LCDIF_TIMING_DATA_HOLD 8
190#define BM_LCDIF_TIMING_DATA_HOLD 0xff00
191#define BF_LCDIF_TIMING_DATA_HOLD(v) (((v) << 8) & 0xff00)
192#define BP_LCDIF_TIMING_DATA_SETUP 0
193#define BM_LCDIF_TIMING_DATA_SETUP 0xff
194#define BF_LCDIF_TIMING_DATA_SETUP(v) (((v) << 0) & 0xff)
195
196/**
197 * Register: HW_LCDIF_VDCTRL0
198 * Address: 0x30
199 * SCT: yes
200*/
201#define HW_LCDIF_VDCTRL0 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x30 + 0x0))
202#define HW_LCDIF_VDCTRL0_SET (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x30 + 0x4))
203#define HW_LCDIF_VDCTRL0_CLR (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x30 + 0x8))
204#define HW_LCDIF_VDCTRL0_TOG (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x30 + 0xc))
205#define BP_LCDIF_VDCTRL0_VSYNC_OEB 29
206#define BM_LCDIF_VDCTRL0_VSYNC_OEB 0x20000000
207#define BV_LCDIF_VDCTRL0_VSYNC_OEB__VSYNC_OUTPUT 0x0
208#define BV_LCDIF_VDCTRL0_VSYNC_OEB__VSYNC_INPUT 0x1
209#define BF_LCDIF_VDCTRL0_VSYNC_OEB(v) (((v) << 29) & 0x20000000)
210#define BF_LCDIF_VDCTRL0_VSYNC_OEB_V(v) ((BV_LCDIF_VDCTRL0_VSYNC_OEB__##v << 29) & 0x20000000)
211#define BP_LCDIF_VDCTRL0_ENABLE_PRESENT 28
212#define BM_LCDIF_VDCTRL0_ENABLE_PRESENT 0x10000000
213#define BF_LCDIF_VDCTRL0_ENABLE_PRESENT(v) (((v) << 28) & 0x10000000)
214#define BP_LCDIF_VDCTRL0_VSYNC_POL 27
215#define BM_LCDIF_VDCTRL0_VSYNC_POL 0x8000000
216#define BF_LCDIF_VDCTRL0_VSYNC_POL(v) (((v) << 27) & 0x8000000)
217#define BP_LCDIF_VDCTRL0_HSYNC_POL 26
218#define BM_LCDIF_VDCTRL0_HSYNC_POL 0x4000000
219#define BF_LCDIF_VDCTRL0_HSYNC_POL(v) (((v) << 26) & 0x4000000)
220#define BP_LCDIF_VDCTRL0_DOTCLK_POL 25
221#define BM_LCDIF_VDCTRL0_DOTCLK_POL 0x2000000
222#define BF_LCDIF_VDCTRL0_DOTCLK_POL(v) (((v) << 25) & 0x2000000)
223#define BP_LCDIF_VDCTRL0_ENABLE_POL 24
224#define BM_LCDIF_VDCTRL0_ENABLE_POL 0x1000000
225#define BF_LCDIF_VDCTRL0_ENABLE_POL(v) (((v) << 24) & 0x1000000)
226#define BP_LCDIF_VDCTRL0_VSYNC_PERIOD_UNIT 21
227#define BM_LCDIF_VDCTRL0_VSYNC_PERIOD_UNIT 0x200000
228#define BF_LCDIF_VDCTRL0_VSYNC_PERIOD_UNIT(v) (((v) << 21) & 0x200000)
229#define BP_LCDIF_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT 20
230#define BM_LCDIF_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT 0x100000
231#define BF_LCDIF_VDCTRL0_VSYNC_PULSE_WIDTH_UNIT(v) (((v) << 20) & 0x100000)
232#define BP_LCDIF_VDCTRL0_INTERLACE 19
233#define BM_LCDIF_VDCTRL0_INTERLACE 0x80000
234#define BF_LCDIF_VDCTRL0_INTERLACE(v) (((v) << 19) & 0x80000)
235#define BP_LCDIF_VDCTRL0_DOTCLK_V_VALID_DATA_CNT 0
236#define BM_LCDIF_VDCTRL0_DOTCLK_V_VALID_DATA_CNT 0x3ff
237#define BF_LCDIF_VDCTRL0_DOTCLK_V_VALID_DATA_CNT(v) (((v) << 0) & 0x3ff)
238
239/**
240 * Register: HW_LCDIF_VDCTRL1
241 * Address: 0x40
242 * SCT: no
243*/
244#define HW_LCDIF_VDCTRL1 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x40))
245#define BP_LCDIF_VDCTRL1_VSYNC_PULSE_WIDTH 20
246#define BM_LCDIF_VDCTRL1_VSYNC_PULSE_WIDTH 0xfff00000
247#define BF_LCDIF_VDCTRL1_VSYNC_PULSE_WIDTH(v) (((v) << 20) & 0xfff00000)
248#define BP_LCDIF_VDCTRL1_VSYNC_PERIOD 0
249#define BM_LCDIF_VDCTRL1_VSYNC_PERIOD 0xfffff
250#define BF_LCDIF_VDCTRL1_VSYNC_PERIOD(v) (((v) << 0) & 0xfffff)
251
252/**
253 * Register: HW_LCDIF_VDCTRL2
254 * Address: 0x50
255 * SCT: no
256*/
257#define HW_LCDIF_VDCTRL2 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x50))
258#define BP_LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH 23
259#define BM_LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH 0xff800000
260#define BF_LCDIF_VDCTRL2_HSYNC_PULSE_WIDTH(v) (((v) << 23) & 0xff800000)
261#define BP_LCDIF_VDCTRL2_HSYNC_PERIOD 11
262#define BM_LCDIF_VDCTRL2_HSYNC_PERIOD 0x7ff800
263#define BF_LCDIF_VDCTRL2_HSYNC_PERIOD(v) (((v) << 11) & 0x7ff800)
264#define BP_LCDIF_VDCTRL2_DOTCLK_H_VALID_DATA_CNT 0
265#define BM_LCDIF_VDCTRL2_DOTCLK_H_VALID_DATA_CNT 0x7ff
266#define BF_LCDIF_VDCTRL2_DOTCLK_H_VALID_DATA_CNT(v) (((v) << 0) & 0x7ff)
267
268/**
269 * Register: HW_LCDIF_VDCTRL3
270 * Address: 0x60
271 * SCT: no
272*/
273#define HW_LCDIF_VDCTRL3 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x60))
274#define BP_LCDIF_VDCTRL3_SYNC_SIGNALS_ON 24
275#define BM_LCDIF_VDCTRL3_SYNC_SIGNALS_ON 0x1000000
276#define BF_LCDIF_VDCTRL3_SYNC_SIGNALS_ON(v) (((v) << 24) & 0x1000000)
277#define BP_LCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT 12
278#define BM_LCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT 0xfff000
279#define BF_LCDIF_VDCTRL3_HORIZONTAL_WAIT_CNT(v) (((v) << 12) & 0xfff000)
280#define BP_LCDIF_VDCTRL3_VERTICAL_WAIT_CNT 0
281#define BM_LCDIF_VDCTRL3_VERTICAL_WAIT_CNT 0x1ff
282#define BF_LCDIF_VDCTRL3_VERTICAL_WAIT_CNT(v) (((v) << 0) & 0x1ff)
283
284/**
285 * Register: HW_LCDIF_DVICTRL0
286 * Address: 0x70
287 * SCT: no
288*/
289#define HW_LCDIF_DVICTRL0 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x70))
290#define BP_LCDIF_DVICTRL0_H_ACTIVE_CNT 20
291#define BM_LCDIF_DVICTRL0_H_ACTIVE_CNT 0x7ff00000
292#define BF_LCDIF_DVICTRL0_H_ACTIVE_CNT(v) (((v) << 20) & 0x7ff00000)
293#define BP_LCDIF_DVICTRL0_H_BLANKING_CNT 10
294#define BM_LCDIF_DVICTRL0_H_BLANKING_CNT 0xffc00
295#define BF_LCDIF_DVICTRL0_H_BLANKING_CNT(v) (((v) << 10) & 0xffc00)
296#define BP_LCDIF_DVICTRL0_V_LINES_CNT 0
297#define BM_LCDIF_DVICTRL0_V_LINES_CNT 0x3ff
298#define BF_LCDIF_DVICTRL0_V_LINES_CNT(v) (((v) << 0) & 0x3ff)
299
300/**
301 * Register: HW_LCDIF_DVICTRL1
302 * Address: 0x80
303 * SCT: no
304*/
305#define HW_LCDIF_DVICTRL1 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x80))
306#define BP_LCDIF_DVICTRL1_F1_START_LINE 20
307#define BM_LCDIF_DVICTRL1_F1_START_LINE 0x3ff00000
308#define BF_LCDIF_DVICTRL1_F1_START_LINE(v) (((v) << 20) & 0x3ff00000)
309#define BP_LCDIF_DVICTRL1_F1_END_LINE 10
310#define BM_LCDIF_DVICTRL1_F1_END_LINE 0xffc00
311#define BF_LCDIF_DVICTRL1_F1_END_LINE(v) (((v) << 10) & 0xffc00)
312#define BP_LCDIF_DVICTRL1_F2_START_LINE 0
313#define BM_LCDIF_DVICTRL1_F2_START_LINE 0x3ff
314#define BF_LCDIF_DVICTRL1_F2_START_LINE(v) (((v) << 0) & 0x3ff)
315
316/**
317 * Register: HW_LCDIF_DVICTRL2
318 * Address: 0x90
319 * SCT: no
320*/
321#define HW_LCDIF_DVICTRL2 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x90))
322#define BP_LCDIF_DVICTRL2_F2_END_LINE 20
323#define BM_LCDIF_DVICTRL2_F2_END_LINE 0x3ff00000
324#define BF_LCDIF_DVICTRL2_F2_END_LINE(v) (((v) << 20) & 0x3ff00000)
325#define BP_LCDIF_DVICTRL2_V1_BLANK_START_LINE 10
326#define BM_LCDIF_DVICTRL2_V1_BLANK_START_LINE 0xffc00
327#define BF_LCDIF_DVICTRL2_V1_BLANK_START_LINE(v) (((v) << 10) & 0xffc00)
328#define BP_LCDIF_DVICTRL2_V1_BLANK_END_LINE 0
329#define BM_LCDIF_DVICTRL2_V1_BLANK_END_LINE 0x3ff
330#define BF_LCDIF_DVICTRL2_V1_BLANK_END_LINE(v) (((v) << 0) & 0x3ff)
331
332/**
333 * Register: HW_LCDIF_DVICTRL3
334 * Address: 0xa0
335 * SCT: no
336*/
337#define HW_LCDIF_DVICTRL3 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0xa0))
338#define BP_LCDIF_DVICTRL3_V2_BLANK_START_LINE 16
339#define BM_LCDIF_DVICTRL3_V2_BLANK_START_LINE 0x3ff0000
340#define BF_LCDIF_DVICTRL3_V2_BLANK_START_LINE(v) (((v) << 16) & 0x3ff0000)
341#define BP_LCDIF_DVICTRL3_V2_BLANK_END_LINE 0
342#define BM_LCDIF_DVICTRL3_V2_BLANK_END_LINE 0x3ff
343#define BF_LCDIF_DVICTRL3_V2_BLANK_END_LINE(v) (((v) << 0) & 0x3ff)
344
345/**
346 * Register: HW_LCDIF_DATA
347 * Address: 0xb0
348 * SCT: no
349*/
350#define HW_LCDIF_DATA (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0xb0))
351#define BP_LCDIF_DATA_DATA_THREE 24
352#define BM_LCDIF_DATA_DATA_THREE 0xff000000
353#define BF_LCDIF_DATA_DATA_THREE(v) (((v) << 24) & 0xff000000)
354#define BP_LCDIF_DATA_DATA_TWO 16
355#define BM_LCDIF_DATA_DATA_TWO 0xff0000
356#define BF_LCDIF_DATA_DATA_TWO(v) (((v) << 16) & 0xff0000)
357#define BP_LCDIF_DATA_DATA_ONE 8
358#define BM_LCDIF_DATA_DATA_ONE 0xff00
359#define BF_LCDIF_DATA_DATA_ONE(v) (((v) << 8) & 0xff00)
360#define BP_LCDIF_DATA_DATA_ZERO 0
361#define BM_LCDIF_DATA_DATA_ZERO 0xff
362#define BF_LCDIF_DATA_DATA_ZERO(v) (((v) << 0) & 0xff)
363
364/**
365 * Register: HW_LCDIF_STAT
366 * Address: 0xc0
367 * SCT: no
368*/
369#define HW_LCDIF_STAT (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0xc0))
370#define BP_LCDIF_STAT_PRESENT 31
371#define BM_LCDIF_STAT_PRESENT 0x80000000
372#define BF_LCDIF_STAT_PRESENT(v) (((v) << 31) & 0x80000000)
373#define BP_LCDIF_STAT_DMA_REQ 30
374#define BM_LCDIF_STAT_DMA_REQ 0x40000000
375#define BF_LCDIF_STAT_DMA_REQ(v) (((v) << 30) & 0x40000000)
376#define BP_LCDIF_STAT_RXFIFO_FULL 29
377#define BM_LCDIF_STAT_RXFIFO_FULL 0x20000000
378#define BF_LCDIF_STAT_RXFIFO_FULL(v) (((v) << 29) & 0x20000000)
379#define BP_LCDIF_STAT_RXFIFO_EMPTY 28
380#define BM_LCDIF_STAT_RXFIFO_EMPTY 0x10000000
381#define BF_LCDIF_STAT_RXFIFO_EMPTY(v) (((v) << 28) & 0x10000000)
382#define BP_LCDIF_STAT_TXFIFO_FULL 27
383#define BM_LCDIF_STAT_TXFIFO_FULL 0x8000000
384#define BF_LCDIF_STAT_TXFIFO_FULL(v) (((v) << 27) & 0x8000000)
385#define BP_LCDIF_STAT_TXFIFO_EMPTY 26
386#define BM_LCDIF_STAT_TXFIFO_EMPTY 0x4000000
387#define BF_LCDIF_STAT_TXFIFO_EMPTY(v) (((v) << 26) & 0x4000000)
388#define BP_LCDIF_STAT_BUSY 25
389#define BM_LCDIF_STAT_BUSY 0x2000000
390#define BF_LCDIF_STAT_BUSY(v) (((v) << 25) & 0x2000000)
391#define BP_LCDIF_STAT_DVI_CURRENT_FIELD 24
392#define BM_LCDIF_STAT_DVI_CURRENT_FIELD 0x1000000
393#define BF_LCDIF_STAT_DVI_CURRENT_FIELD(v) (((v) << 24) & 0x1000000)
394
395/**
396 * Register: HW_LCDIF_VERSION
397 * Address: 0xd0
398 * SCT: no
399*/
400#define HW_LCDIF_VERSION (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0xd0))
401#define BP_LCDIF_VERSION_MAJOR 24
402#define BM_LCDIF_VERSION_MAJOR 0xff000000
403#define BF_LCDIF_VERSION_MAJOR(v) (((v) << 24) & 0xff000000)
404#define BP_LCDIF_VERSION_MINOR 16
405#define BM_LCDIF_VERSION_MINOR 0xff0000
406#define BF_LCDIF_VERSION_MINOR(v) (((v) << 16) & 0xff0000)
407#define BP_LCDIF_VERSION_STEP 0
408#define BM_LCDIF_VERSION_STEP 0xffff
409#define BF_LCDIF_VERSION_STEP(v) (((v) << 0) & 0xffff)
410
411/**
412 * Register: HW_LCDIF_DEBUG0
413 * Address: 0xe0
414 * SCT: no
415*/
416#define HW_LCDIF_DEBUG0 (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0xe0))
417#define BP_LCDIF_DEBUG0_STREAMING_END_DETECTED 31
418#define BM_LCDIF_DEBUG0_STREAMING_END_DETECTED 0x80000000
419#define BF_LCDIF_DEBUG0_STREAMING_END_DETECTED(v) (((v) << 31) & 0x80000000)
420#define BP_LCDIF_DEBUG0_WAIT_FOR_VSYNC_EDGE_OUT 30
421#define BM_LCDIF_DEBUG0_WAIT_FOR_VSYNC_EDGE_OUT 0x40000000
422#define BF_LCDIF_DEBUG0_WAIT_FOR_VSYNC_EDGE_OUT(v) (((v) << 30) & 0x40000000)
423#define BP_LCDIF_DEBUG0_SYNC_SIGNALS_ON_REG 29
424#define BM_LCDIF_DEBUG0_SYNC_SIGNALS_ON_REG 0x20000000
425#define BF_LCDIF_DEBUG0_SYNC_SIGNALS_ON_REG(v) (((v) << 29) & 0x20000000)
426#define BP_LCDIF_DEBUG0_DMACMDKICK 28
427#define BM_LCDIF_DEBUG0_DMACMDKICK 0x10000000
428#define BF_LCDIF_DEBUG0_DMACMDKICK(v) (((v) << 28) & 0x10000000)
429#define BP_LCDIF_DEBUG0_ENABLE 27
430#define BM_LCDIF_DEBUG0_ENABLE 0x8000000
431#define BF_LCDIF_DEBUG0_ENABLE(v) (((v) << 27) & 0x8000000)
432#define BP_LCDIF_DEBUG0_HSYNC 26
433#define BM_LCDIF_DEBUG0_HSYNC 0x4000000
434#define BF_LCDIF_DEBUG0_HSYNC(v) (((v) << 26) & 0x4000000)
435#define BP_LCDIF_DEBUG0_VSYNC 25
436#define BM_LCDIF_DEBUG0_VSYNC 0x2000000
437#define BF_LCDIF_DEBUG0_VSYNC(v) (((v) << 25) & 0x2000000)
438#define BP_LCDIF_DEBUG0_CUR_FRAME_TX 24
439#define BM_LCDIF_DEBUG0_CUR_FRAME_TX 0x1000000
440#define BF_LCDIF_DEBUG0_CUR_FRAME_TX(v) (((v) << 24) & 0x1000000)
441#define BP_LCDIF_DEBUG0_EMPTY_WORD 23
442#define BM_LCDIF_DEBUG0_EMPTY_WORD 0x800000
443#define BF_LCDIF_DEBUG0_EMPTY_WORD(v) (((v) << 23) & 0x800000)
444#define BP_LCDIF_DEBUG0_CUR_STATE 16
445#define BM_LCDIF_DEBUG0_CUR_STATE 0x7f0000
446#define BF_LCDIF_DEBUG0_CUR_STATE(v) (((v) << 16) & 0x7f0000)
447#define BP_LCDIF_DEBUG0_DATA_COUNT 0
448#define BM_LCDIF_DEBUG0_DATA_COUNT 0xffff
449#define BF_LCDIF_DEBUG0_DATA_COUNT(v) (((v) << 0) & 0xffff)
450
451#endif /* __HEADERGEN__STMP3700__LCDIF__H__ */