summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/regs/stmp3600/regs-dri.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/stmp3600/regs-dri.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/stmp3600/regs-dri.h')
-rw-r--r--firmware/target/arm/imx233/regs/stmp3600/regs-dri.h258
1 files changed, 258 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3600/regs-dri.h b/firmware/target/arm/imx233/regs/stmp3600/regs-dri.h
new file mode 100644
index 0000000000..2d2624a953
--- /dev/null
+++ b/firmware/target/arm/imx233/regs/stmp3600/regs-dri.h
@@ -0,0 +1,258 @@
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: stmp3600:2.3.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__STMP3600__DRI__H__
24#define __HEADERGEN__STMP3600__DRI__H__
25
26#define REGS_DRI_BASE (0x80074000)
27
28#define REGS_DRI_VERSION "2.3.0"
29
30/**
31 * Register: HW_DRI_CTRL
32 * Address: 0
33 * SCT: yes
34*/
35#define HW_DRI_CTRL (*(volatile unsigned long *)(REGS_DRI_BASE + 0x0 + 0x0))
36#define HW_DRI_CTRL_SET (*(volatile unsigned long *)(REGS_DRI_BASE + 0x0 + 0x4))
37#define HW_DRI_CTRL_CLR (*(volatile unsigned long *)(REGS_DRI_BASE + 0x0 + 0x8))
38#define HW_DRI_CTRL_TOG (*(volatile unsigned long *)(REGS_DRI_BASE + 0x0 + 0xc))
39#define BP_DRI_CTRL_SFTRST 31
40#define BM_DRI_CTRL_SFTRST 0x80000000
41#define BV_DRI_CTRL_SFTRST__RUN 0x0
42#define BV_DRI_CTRL_SFTRST__RESET 0x1
43#define BF_DRI_CTRL_SFTRST(v) (((v) << 31) & 0x80000000)
44#define BF_DRI_CTRL_SFTRST_V(v) ((BV_DRI_CTRL_SFTRST__##v << 31) & 0x80000000)
45#define BP_DRI_CTRL_CLKGATE 30
46#define BM_DRI_CTRL_CLKGATE 0x40000000
47#define BV_DRI_CTRL_CLKGATE__RUN 0x0
48#define BV_DRI_CTRL_CLKGATE__NO_CLKS 0x1
49#define BF_DRI_CTRL_CLKGATE(v) (((v) << 30) & 0x40000000)
50#define BF_DRI_CTRL_CLKGATE_V(v) ((BV_DRI_CTRL_CLKGATE__##v << 30) & 0x40000000)
51#define BP_DRI_CTRL_ENABLE_INPUTS 29
52#define BM_DRI_CTRL_ENABLE_INPUTS 0x20000000
53#define BV_DRI_CTRL_ENABLE_INPUTS__ANALOG_LINE_IN 0x0
54#define BV_DRI_CTRL_ENABLE_INPUTS__DRI_DIGITAL_IN 0x1
55#define BF_DRI_CTRL_ENABLE_INPUTS(v) (((v) << 29) & 0x20000000)
56#define BF_DRI_CTRL_ENABLE_INPUTS_V(v) ((BV_DRI_CTRL_ENABLE_INPUTS__##v << 29) & 0x20000000)
57#define BP_DRI_CTRL_STOP_ON_OFLOW_ERROR 26
58#define BM_DRI_CTRL_STOP_ON_OFLOW_ERROR 0x4000000
59#define BV_DRI_CTRL_STOP_ON_OFLOW_ERROR__IGNORE 0x0
60#define BV_DRI_CTRL_STOP_ON_OFLOW_ERROR__STOP 0x1
61#define BF_DRI_CTRL_STOP_ON_OFLOW_ERROR(v) (((v) << 26) & 0x4000000)
62#define BF_DRI_CTRL_STOP_ON_OFLOW_ERROR_V(v) ((BV_DRI_CTRL_STOP_ON_OFLOW_ERROR__##v << 26) & 0x4000000)
63#define BP_DRI_CTRL_STOP_ON_PILOT_ERROR 25
64#define BM_DRI_CTRL_STOP_ON_PILOT_ERROR 0x2000000
65#define BV_DRI_CTRL_STOP_ON_PILOT_ERROR__IGNORE 0x0
66#define BV_DRI_CTRL_STOP_ON_PILOT_ERROR__STOP 0x1
67#define BF_DRI_CTRL_STOP_ON_PILOT_ERROR(v) (((v) << 25) & 0x2000000)
68#define BF_DRI_CTRL_STOP_ON_PILOT_ERROR_V(v) ((BV_DRI_CTRL_STOP_ON_PILOT_ERROR__##v << 25) & 0x2000000)
69#define BP_DRI_CTRL_DMA_DELAY_COUNT 16
70#define BM_DRI_CTRL_DMA_DELAY_COUNT 0x1f0000
71#define BF_DRI_CTRL_DMA_DELAY_COUNT(v) (((v) << 16) & 0x1f0000)
72#define BP_DRI_CTRL_REACQUIRE_PHASE 15
73#define BM_DRI_CTRL_REACQUIRE_PHASE 0x8000
74#define BV_DRI_CTRL_REACQUIRE_PHASE__NORMAL 0x0
75#define BV_DRI_CTRL_REACQUIRE_PHASE__NEW_PHASE 0x1
76#define BF_DRI_CTRL_REACQUIRE_PHASE(v) (((v) << 15) & 0x8000)
77#define BF_DRI_CTRL_REACQUIRE_PHASE_V(v) ((BV_DRI_CTRL_REACQUIRE_PHASE__##v << 15) & 0x8000)
78#define BP_DRI_CTRL_OVERFLOW_IRQ_EN 11
79#define BM_DRI_CTRL_OVERFLOW_IRQ_EN 0x800
80#define BV_DRI_CTRL_OVERFLOW_IRQ_EN__DISABLED 0x0
81#define BV_DRI_CTRL_OVERFLOW_IRQ_EN__ENABLED 0x1
82#define BF_DRI_CTRL_OVERFLOW_IRQ_EN(v) (((v) << 11) & 0x800)
83#define BF_DRI_CTRL_OVERFLOW_IRQ_EN_V(v) ((BV_DRI_CTRL_OVERFLOW_IRQ_EN__##v << 11) & 0x800)
84#define BP_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN 10
85#define BM_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN 0x400
86#define BV_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN__DISABLED 0x0
87#define BV_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN__ENABLED 0x1
88#define BF_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN(v) (((v) << 10) & 0x400)
89#define BF_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN_V(v) ((BV_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_EN__##v << 10) & 0x400)
90#define BP_DRI_CTRL_ATTENTION_IRQ_EN 9
91#define BM_DRI_CTRL_ATTENTION_IRQ_EN 0x200
92#define BV_DRI_CTRL_ATTENTION_IRQ_EN__DISABLED 0x0
93#define BV_DRI_CTRL_ATTENTION_IRQ_EN__ENABLED 0x1
94#define BF_DRI_CTRL_ATTENTION_IRQ_EN(v) (((v) << 9) & 0x200)
95#define BF_DRI_CTRL_ATTENTION_IRQ_EN_V(v) ((BV_DRI_CTRL_ATTENTION_IRQ_EN__##v << 9) & 0x200)
96#define BP_DRI_CTRL_OVERFLOW_IRQ 3
97#define BM_DRI_CTRL_OVERFLOW_IRQ 0x8
98#define BV_DRI_CTRL_OVERFLOW_IRQ__NO_REQUEST 0x0
99#define BV_DRI_CTRL_OVERFLOW_IRQ__REQUEST 0x1
100#define BF_DRI_CTRL_OVERFLOW_IRQ(v) (((v) << 3) & 0x8)
101#define BF_DRI_CTRL_OVERFLOW_IRQ_V(v) ((BV_DRI_CTRL_OVERFLOW_IRQ__##v << 3) & 0x8)
102#define BP_DRI_CTRL_PILOT_SYNC_LOSS_IRQ 2
103#define BM_DRI_CTRL_PILOT_SYNC_LOSS_IRQ 0x4
104#define BV_DRI_CTRL_PILOT_SYNC_LOSS_IRQ__NO_REQUEST 0x0
105#define BV_DRI_CTRL_PILOT_SYNC_LOSS_IRQ__REQUEST 0x1
106#define BF_DRI_CTRL_PILOT_SYNC_LOSS_IRQ(v) (((v) << 2) & 0x4)
107#define BF_DRI_CTRL_PILOT_SYNC_LOSS_IRQ_V(v) ((BV_DRI_CTRL_PILOT_SYNC_LOSS_IRQ__##v << 2) & 0x4)
108#define BP_DRI_CTRL_ATTENTION_IRQ 1
109#define BM_DRI_CTRL_ATTENTION_IRQ 0x2
110#define BV_DRI_CTRL_ATTENTION_IRQ__NO_REQUEST 0x0
111#define BV_DRI_CTRL_ATTENTION_IRQ__REQUEST 0x1
112#define BF_DRI_CTRL_ATTENTION_IRQ(v) (((v) << 1) & 0x2)
113#define BF_DRI_CTRL_ATTENTION_IRQ_V(v) ((BV_DRI_CTRL_ATTENTION_IRQ__##v << 1) & 0x2)
114#define BP_DRI_CTRL_RUN 0
115#define BM_DRI_CTRL_RUN 0x1
116#define BV_DRI_CTRL_RUN__HALT 0x0
117#define BV_DRI_CTRL_RUN__RUN 0x1
118#define BF_DRI_CTRL_RUN(v) (((v) << 0) & 0x1)
119#define BF_DRI_CTRL_RUN_V(v) ((BV_DRI_CTRL_RUN__##v << 0) & 0x1)
120
121/**
122 * Register: HW_DRI_TIMING
123 * Address: 0x10
124 * SCT: no
125*/
126#define HW_DRI_TIMING (*(volatile unsigned long *)(REGS_DRI_BASE + 0x10))
127#define BP_DRI_TIMING_PILOT_REP_RATE 16
128#define BM_DRI_TIMING_PILOT_REP_RATE 0xf0000
129#define BF_DRI_TIMING_PILOT_REP_RATE(v) (((v) << 16) & 0xf0000)
130#define BP_DRI_TIMING_GAP_DETECTION_INTERVAL 0
131#define BM_DRI_TIMING_GAP_DETECTION_INTERVAL 0xff
132#define BF_DRI_TIMING_GAP_DETECTION_INTERVAL(v) (((v) << 0) & 0xff)
133
134/**
135 * Register: HW_DRI_STAT
136 * Address: 0x20
137 * SCT: no
138*/
139#define HW_DRI_STAT (*(volatile unsigned long *)(REGS_DRI_BASE + 0x20))
140#define BP_DRI_STAT_DRI_PRESENT 31
141#define BM_DRI_STAT_DRI_PRESENT 0x80000000
142#define BV_DRI_STAT_DRI_PRESENT__UNAVAILABLE 0x0
143#define BV_DRI_STAT_DRI_PRESENT__AVAILABLE 0x1
144#define BF_DRI_STAT_DRI_PRESENT(v) (((v) << 31) & 0x80000000)
145#define BF_DRI_STAT_DRI_PRESENT_V(v) ((BV_DRI_STAT_DRI_PRESENT__##v << 31) & 0x80000000)
146#define BP_DRI_STAT_PILOT_PHASE 16
147#define BM_DRI_STAT_PILOT_PHASE 0xf0000
148#define BF_DRI_STAT_PILOT_PHASE(v) (((v) << 16) & 0xf0000)
149#define BP_DRI_STAT_OVERFLOW_IRQ_SUMMARY 3
150#define BM_DRI_STAT_OVERFLOW_IRQ_SUMMARY 0x8
151#define BV_DRI_STAT_OVERFLOW_IRQ_SUMMARY__NO_REQUEST 0x0
152#define BV_DRI_STAT_OVERFLOW_IRQ_SUMMARY__REQUEST 0x1
153#define BF_DRI_STAT_OVERFLOW_IRQ_SUMMARY(v) (((v) << 3) & 0x8)
154#define BF_DRI_STAT_OVERFLOW_IRQ_SUMMARY_V(v) ((BV_DRI_STAT_OVERFLOW_IRQ_SUMMARY__##v << 3) & 0x8)
155#define BP_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY 2
156#define BM_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY 0x4
157#define BV_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY__NO_REQUEST 0x0
158#define BV_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY__REQUEST 0x1
159#define BF_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY(v) (((v) << 2) & 0x4)
160#define BF_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY_V(v) ((BV_DRI_STAT_PILOT_SYNC_LOSS_IRQ_SUMMARY__##v << 2) & 0x4)
161#define BP_DRI_STAT_ATTENTION_IRQ_SUMMARY 1
162#define BM_DRI_STAT_ATTENTION_IRQ_SUMMARY 0x2
163#define BV_DRI_STAT_ATTENTION_IRQ_SUMMARY__NO_REQUEST 0x0
164#define BV_DRI_STAT_ATTENTION_IRQ_SUMMARY__REQUEST 0x1
165#define BF_DRI_STAT_ATTENTION_IRQ_SUMMARY(v) (((v) << 1) & 0x2)
166#define BF_DRI_STAT_ATTENTION_IRQ_SUMMARY_V(v) ((BV_DRI_STAT_ATTENTION_IRQ_SUMMARY__##v << 1) & 0x2)
167
168/**
169 * Register: HW_DRI_DATA
170 * Address: 0x30
171 * SCT: no
172*/
173#define HW_DRI_DATA (*(volatile unsigned long *)(REGS_DRI_BASE + 0x30))
174#define BP_DRI_DATA_DATA 0
175#define BM_DRI_DATA_DATA 0xffffffff
176#define BF_DRI_DATA_DATA(v) (((v) << 0) & 0xffffffff)
177
178/**
179 * Register: HW_DRI_DEBUG0
180 * Address: 0x40
181 * SCT: yes
182*/
183#define HW_DRI_DEBUG0 (*(volatile unsigned long *)(REGS_DRI_BASE + 0x40 + 0x0))
184#define HW_DRI_DEBUG0_SET (*(volatile unsigned long *)(REGS_DRI_BASE + 0x40 + 0x4))
185#define HW_DRI_DEBUG0_CLR (*(volatile unsigned long *)(REGS_DRI_BASE + 0x40 + 0x8))
186#define HW_DRI_DEBUG0_TOG (*(volatile unsigned long *)(REGS_DRI_BASE + 0x40 + 0xc))
187#define BP_DRI_DEBUG0_DMAREQ 31
188#define BM_DRI_DEBUG0_DMAREQ 0x80000000
189#define BF_DRI_DEBUG0_DMAREQ(v) (((v) << 31) & 0x80000000)
190#define BP_DRI_DEBUG0_DMACMDKICK 30
191#define BM_DRI_DEBUG0_DMACMDKICK 0x40000000
192#define BF_DRI_DEBUG0_DMACMDKICK(v) (((v) << 30) & 0x40000000)
193#define BP_DRI_DEBUG0_DRI_CLK_INPUT 29
194#define BM_DRI_DEBUG0_DRI_CLK_INPUT 0x20000000
195#define BF_DRI_DEBUG0_DRI_CLK_INPUT(v) (((v) << 29) & 0x20000000)
196#define BP_DRI_DEBUG0_DRI_DATA_INPUT 28
197#define BM_DRI_DEBUG0_DRI_DATA_INPUT 0x10000000
198#define BF_DRI_DEBUG0_DRI_DATA_INPUT(v) (((v) << 28) & 0x10000000)
199#define BP_DRI_DEBUG0_TEST_MODE 27
200#define BM_DRI_DEBUG0_TEST_MODE 0x8000000
201#define BF_DRI_DEBUG0_TEST_MODE(v) (((v) << 27) & 0x8000000)
202#define BP_DRI_DEBUG0_PILOT_REP_RATE 26
203#define BM_DRI_DEBUG0_PILOT_REP_RATE 0x4000000
204#define BV_DRI_DEBUG0_PILOT_REP_RATE__8_AT_4MHZ 0x0
205#define BV_DRI_DEBUG0_PILOT_REP_RATE__12_AT_6MHZ 0x1
206#define BF_DRI_DEBUG0_PILOT_REP_RATE(v) (((v) << 26) & 0x4000000)
207#define BF_DRI_DEBUG0_PILOT_REP_RATE_V(v) ((BV_DRI_DEBUG0_PILOT_REP_RATE__##v << 26) & 0x4000000)
208#define BP_DRI_DEBUG0_SPARE 18
209#define BM_DRI_DEBUG0_SPARE 0x3fc0000
210#define BF_DRI_DEBUG0_SPARE(v) (((v) << 18) & 0x3fc0000)
211#define BP_DRI_DEBUG0_FRAME 0
212#define BM_DRI_DEBUG0_FRAME 0x3ffff
213#define BF_DRI_DEBUG0_FRAME(v) (((v) << 0) & 0x3ffff)
214
215/**
216 * Register: HW_DRI_DEBUG1
217 * Address: 0x50
218 * SCT: yes
219*/
220#define HW_DRI_DEBUG1 (*(volatile unsigned long *)(REGS_DRI_BASE + 0x50 + 0x0))
221#define HW_DRI_DEBUG1_SET (*(volatile unsigned long *)(REGS_DRI_BASE + 0x50 + 0x4))
222#define HW_DRI_DEBUG1_CLR (*(volatile unsigned long *)(REGS_DRI_BASE + 0x50 + 0x8))
223#define HW_DRI_DEBUG1_TOG (*(volatile unsigned long *)(REGS_DRI_BASE + 0x50 + 0xc))
224#define BP_DRI_DEBUG1_INVERT_PILOT 31
225#define BM_DRI_DEBUG1_INVERT_PILOT 0x80000000
226#define BV_DRI_DEBUG1_INVERT_PILOT__NORMAL 0x0
227#define BV_DRI_DEBUG1_INVERT_PILOT__INVERTED 0x1
228#define BF_DRI_DEBUG1_INVERT_PILOT(v) (((v) << 31) & 0x80000000)
229#define BF_DRI_DEBUG1_INVERT_PILOT_V(v) ((BV_DRI_DEBUG1_INVERT_PILOT__##v << 31) & 0x80000000)
230#define BP_DRI_DEBUG1_INVERT_ATTENTION 30
231#define BM_DRI_DEBUG1_INVERT_ATTENTION 0x40000000
232#define BV_DRI_DEBUG1_INVERT_ATTENTION__NORMAL 0x0
233#define BV_DRI_DEBUG1_INVERT_ATTENTION__INVERTED 0x1
234#define BF_DRI_DEBUG1_INVERT_ATTENTION(v) (((v) << 30) & 0x40000000)
235#define BF_DRI_DEBUG1_INVERT_ATTENTION_V(v) ((BV_DRI_DEBUG1_INVERT_ATTENTION__##v << 30) & 0x40000000)
236#define BP_DRI_DEBUG1_INVERT_DRI_DATA 29
237#define BM_DRI_DEBUG1_INVERT_DRI_DATA 0x20000000
238#define BV_DRI_DEBUG1_INVERT_DRI_DATA__NORMAL 0x0
239#define BV_DRI_DEBUG1_INVERT_DRI_DATA__INVERTED 0x1
240#define BF_DRI_DEBUG1_INVERT_DRI_DATA(v) (((v) << 29) & 0x20000000)
241#define BF_DRI_DEBUG1_INVERT_DRI_DATA_V(v) ((BV_DRI_DEBUG1_INVERT_DRI_DATA__##v << 29) & 0x20000000)
242#define BP_DRI_DEBUG1_INVERT_DRI_CLOCK 28
243#define BM_DRI_DEBUG1_INVERT_DRI_CLOCK 0x10000000
244#define BV_DRI_DEBUG1_INVERT_DRI_CLOCK__NORMAL 0x0
245#define BV_DRI_DEBUG1_INVERT_DRI_CLOCK__INVERTED 0x1
246#define BF_DRI_DEBUG1_INVERT_DRI_CLOCK(v) (((v) << 28) & 0x10000000)
247#define BF_DRI_DEBUG1_INVERT_DRI_CLOCK_V(v) ((BV_DRI_DEBUG1_INVERT_DRI_CLOCK__##v << 28) & 0x10000000)
248#define BP_DRI_DEBUG1_REVERSE_FRAME 27
249#define BM_DRI_DEBUG1_REVERSE_FRAME 0x8000000
250#define BV_DRI_DEBUG1_REVERSE_FRAME__NORMAL 0x0
251#define BV_DRI_DEBUG1_REVERSE_FRAME__REVERSED 0x1
252#define BF_DRI_DEBUG1_REVERSE_FRAME(v) (((v) << 27) & 0x8000000)
253#define BF_DRI_DEBUG1_REVERSE_FRAME_V(v) ((BV_DRI_DEBUG1_REVERSE_FRAME__##v << 27) & 0x8000000)
254#define BP_DRI_DEBUG1_SWIZZLED_FRAME 0
255#define BM_DRI_DEBUG1_SWIZZLED_FRAME 0x3ffff
256#define BF_DRI_DEBUG1_SWIZZLED_FRAME(v) (((v) << 0) & 0x3ffff)
257
258#endif /* __HEADERGEN__STMP3600__DRI__H__ */