diff options
Diffstat (limited to 'firmware/target/arm/imx233/regs/stmp3600/regs-lcdif.h')
-rw-r--r-- | firmware/target/arm/imx233/regs/stmp3600/regs-lcdif.h | 167 |
1 files changed, 167 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3600/regs-lcdif.h b/firmware/target/arm/imx233/regs/stmp3600/regs-lcdif.h new file mode 100644 index 0000000000..24b17d5905 --- /dev/null +++ b/firmware/target/arm/imx233/regs/stmp3600/regs-lcdif.h | |||
@@ -0,0 +1,167 @@ | |||
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__LCDIF__H__ | ||
24 | #define __HEADERGEN__STMP3600__LCDIF__H__ | ||
25 | |||
26 | #define REGS_LCDIF_BASE (0x80060000) | ||
27 | |||
28 | #define REGS_LCDIF_VERSION "2.3.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_PRESENT 29 | ||
46 | #define BM_LCDIF_CTRL_PRESENT 0x20000000 | ||
47 | #define BF_LCDIF_CTRL_PRESENT(v) (((v) << 29) & 0x20000000) | ||
48 | #define BP_LCDIF_CTRL_BUSY_ENABLE 25 | ||
49 | #define BM_LCDIF_CTRL_BUSY_ENABLE 0x2000000 | ||
50 | #define BV_LCDIF_CTRL_BUSY_ENABLE__BUSY_DISABLED 0x0 | ||
51 | #define BV_LCDIF_CTRL_BUSY_ENABLE__BUSY_ENABLED 0x1 | ||
52 | #define BF_LCDIF_CTRL_BUSY_ENABLE(v) (((v) << 25) & 0x2000000) | ||
53 | #define BF_LCDIF_CTRL_BUSY_ENABLE_V(v) ((BV_LCDIF_CTRL_BUSY_ENABLE__##v << 25) & 0x2000000) | ||
54 | #define BP_LCDIF_CTRL_FIFO_STATUS 24 | ||
55 | #define BM_LCDIF_CTRL_FIFO_STATUS 0x1000000 | ||
56 | #define BV_LCDIF_CTRL_FIFO_STATUS__FIFO_FULL 0x0 | ||
57 | #define BV_LCDIF_CTRL_FIFO_STATUS__FIFO_OK 0x1 | ||
58 | #define BF_LCDIF_CTRL_FIFO_STATUS(v) (((v) << 24) & 0x1000000) | ||
59 | #define BF_LCDIF_CTRL_FIFO_STATUS_V(v) ((BV_LCDIF_CTRL_FIFO_STATUS__##v << 24) & 0x1000000) | ||
60 | #define BP_LCDIF_CTRL_DMA_REQ 23 | ||
61 | #define BM_LCDIF_CTRL_DMA_REQ 0x800000 | ||
62 | #define BF_LCDIF_CTRL_DMA_REQ(v) (((v) << 23) & 0x800000) | ||
63 | #define BP_LCDIF_CTRL_DATA_SWIZZLE 21 | ||
64 | #define BM_LCDIF_CTRL_DATA_SWIZZLE 0x600000 | ||
65 | #define BV_LCDIF_CTRL_DATA_SWIZZLE__NO_SWAP 0x0 | ||
66 | #define BV_LCDIF_CTRL_DATA_SWIZZLE__LITTLE_ENDIAN 0x0 | ||
67 | #define BV_LCDIF_CTRL_DATA_SWIZZLE__BIG_ENDIAN_SWAP 0x1 | ||
68 | #define BV_LCDIF_CTRL_DATA_SWIZZLE__SWAP_ALL_BYTES 0x1 | ||
69 | #define BV_LCDIF_CTRL_DATA_SWIZZLE__HWD_SWAP 0x2 | ||
70 | #define BV_LCDIF_CTRL_DATA_SWIZZLE__HWD_BYTE_SWAP 0x3 | ||
71 | #define BF_LCDIF_CTRL_DATA_SWIZZLE(v) (((v) << 21) & 0x600000) | ||
72 | #define BF_LCDIF_CTRL_DATA_SWIZZLE_V(v) ((BV_LCDIF_CTRL_DATA_SWIZZLE__##v << 21) & 0x600000) | ||
73 | #define BP_LCDIF_CTRL_RESET 20 | ||
74 | #define BM_LCDIF_CTRL_RESET 0x100000 | ||
75 | #define BV_LCDIF_CTRL_RESET__LCDRESET_LOW 0x0 | ||
76 | #define BV_LCDIF_CTRL_RESET__LCDRESET_HIGH 0x1 | ||
77 | #define BF_LCDIF_CTRL_RESET(v) (((v) << 20) & 0x100000) | ||
78 | #define BF_LCDIF_CTRL_RESET_V(v) ((BV_LCDIF_CTRL_RESET__##v << 20) & 0x100000) | ||
79 | #define BP_LCDIF_CTRL_MODE86 19 | ||
80 | #define BM_LCDIF_CTRL_MODE86 0x80000 | ||
81 | #define BV_LCDIF_CTRL_MODE86__8080_MODE 0x0 | ||
82 | #define BV_LCDIF_CTRL_MODE86__6800_MODE 0x1 | ||
83 | #define BF_LCDIF_CTRL_MODE86(v) (((v) << 19) & 0x80000) | ||
84 | #define BF_LCDIF_CTRL_MODE86_V(v) ((BV_LCDIF_CTRL_MODE86__##v << 19) & 0x80000) | ||
85 | #define BP_LCDIF_CTRL_DATA_SELECT 18 | ||
86 | #define BM_LCDIF_CTRL_DATA_SELECT 0x40000 | ||
87 | #define BV_LCDIF_CTRL_DATA_SELECT__CMD_MODE 0x0 | ||
88 | #define BV_LCDIF_CTRL_DATA_SELECT__DATA_MODE 0x1 | ||
89 | #define BF_LCDIF_CTRL_DATA_SELECT(v) (((v) << 18) & 0x40000) | ||
90 | #define BF_LCDIF_CTRL_DATA_SELECT_V(v) ((BV_LCDIF_CTRL_DATA_SELECT__##v << 18) & 0x40000) | ||
91 | #define BP_LCDIF_CTRL_WORD_LENGTH 17 | ||
92 | #define BM_LCDIF_CTRL_WORD_LENGTH 0x20000 | ||
93 | #define BV_LCDIF_CTRL_WORD_LENGTH__16_BIT 0x0 | ||
94 | #define BV_LCDIF_CTRL_WORD_LENGTH__8_BIT 0x1 | ||
95 | #define BF_LCDIF_CTRL_WORD_LENGTH(v) (((v) << 17) & 0x20000) | ||
96 | #define BF_LCDIF_CTRL_WORD_LENGTH_V(v) ((BV_LCDIF_CTRL_WORD_LENGTH__##v << 17) & 0x20000) | ||
97 | #define BP_LCDIF_CTRL_RUN 16 | ||
98 | #define BM_LCDIF_CTRL_RUN 0x10000 | ||
99 | #define BF_LCDIF_CTRL_RUN(v) (((v) << 16) & 0x10000) | ||
100 | #define BP_LCDIF_CTRL_COUNT 0 | ||
101 | #define BM_LCDIF_CTRL_COUNT 0xffff | ||
102 | #define BF_LCDIF_CTRL_COUNT(v) (((v) << 0) & 0xffff) | ||
103 | |||
104 | /** | ||
105 | * Register: HW_LCDIF_TIMING | ||
106 | * Address: 0x10 | ||
107 | * SCT: no | ||
108 | */ | ||
109 | #define HW_LCDIF_TIMING (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x10)) | ||
110 | #define BP_LCDIF_TIMING_CMD_HOLD 24 | ||
111 | #define BM_LCDIF_TIMING_CMD_HOLD 0xff000000 | ||
112 | #define BF_LCDIF_TIMING_CMD_HOLD(v) (((v) << 24) & 0xff000000) | ||
113 | #define BP_LCDIF_TIMING_CMD_SETUP 16 | ||
114 | #define BM_LCDIF_TIMING_CMD_SETUP 0xff0000 | ||
115 | #define BF_LCDIF_TIMING_CMD_SETUP(v) (((v) << 16) & 0xff0000) | ||
116 | #define BP_LCDIF_TIMING_DATA_HOLD 8 | ||
117 | #define BM_LCDIF_TIMING_DATA_HOLD 0xff00 | ||
118 | #define BF_LCDIF_TIMING_DATA_HOLD(v) (((v) << 8) & 0xff00) | ||
119 | #define BP_LCDIF_TIMING_DATA_SETUP 0 | ||
120 | #define BM_LCDIF_TIMING_DATA_SETUP 0xff | ||
121 | #define BF_LCDIF_TIMING_DATA_SETUP(v) (((v) << 0) & 0xff) | ||
122 | |||
123 | /** | ||
124 | * Register: HW_LCDIF_DATA | ||
125 | * Address: 0x20 | ||
126 | * SCT: no | ||
127 | */ | ||
128 | #define HW_LCDIF_DATA (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x20)) | ||
129 | #define BP_LCDIF_DATA_DATA_THREE 24 | ||
130 | #define BM_LCDIF_DATA_DATA_THREE 0xff000000 | ||
131 | #define BF_LCDIF_DATA_DATA_THREE(v) (((v) << 24) & 0xff000000) | ||
132 | #define BP_LCDIF_DATA_DATA_TWO 16 | ||
133 | #define BM_LCDIF_DATA_DATA_TWO 0xff0000 | ||
134 | #define BF_LCDIF_DATA_DATA_TWO(v) (((v) << 16) & 0xff0000) | ||
135 | #define BP_LCDIF_DATA_DATA_ONE 8 | ||
136 | #define BM_LCDIF_DATA_DATA_ONE 0xff00 | ||
137 | #define BF_LCDIF_DATA_DATA_ONE(v) (((v) << 8) & 0xff00) | ||
138 | #define BP_LCDIF_DATA_DATA_ZERO 0 | ||
139 | #define BM_LCDIF_DATA_DATA_ZERO 0xff | ||
140 | #define BF_LCDIF_DATA_DATA_ZERO(v) (((v) << 0) & 0xff) | ||
141 | |||
142 | /** | ||
143 | * Register: HW_LCDIF_DEBUG | ||
144 | * Address: 0x30 | ||
145 | * SCT: no | ||
146 | */ | ||
147 | #define HW_LCDIF_DEBUG (*(volatile unsigned long *)(REGS_LCDIF_BASE + 0x30)) | ||
148 | #define BP_LCDIF_DEBUG_BUSY 27 | ||
149 | #define BM_LCDIF_DEBUG_BUSY 0x8000000 | ||
150 | #define BF_LCDIF_DEBUG_BUSY(v) (((v) << 27) & 0x8000000) | ||
151 | #define BP_LCDIF_DEBUG_LAST_SUBWORD 26 | ||
152 | #define BM_LCDIF_DEBUG_LAST_SUBWORD 0x4000000 | ||
153 | #define BF_LCDIF_DEBUG_LAST_SUBWORD(v) (((v) << 26) & 0x4000000) | ||
154 | #define BP_LCDIF_DEBUG_SUBWORD_POSITION 24 | ||
155 | #define BM_LCDIF_DEBUG_SUBWORD_POSITION 0x3000000 | ||
156 | #define BF_LCDIF_DEBUG_SUBWORD_POSITION(v) (((v) << 24) & 0x3000000) | ||
157 | #define BP_LCDIF_DEBUG_EMPTY_WORD 23 | ||
158 | #define BM_LCDIF_DEBUG_EMPTY_WORD 0x800000 | ||
159 | #define BF_LCDIF_DEBUG_EMPTY_WORD(v) (((v) << 23) & 0x800000) | ||
160 | #define BP_LCDIF_DEBUG_STATE 16 | ||
161 | #define BM_LCDIF_DEBUG_STATE 0x7f0000 | ||
162 | #define BF_LCDIF_DEBUG_STATE(v) (((v) << 16) & 0x7f0000) | ||
163 | #define BP_LCDIF_DEBUG_DATA_COUNT 0 | ||
164 | #define BM_LCDIF_DEBUG_DATA_COUNT 0xffff | ||
165 | #define BF_LCDIF_DEBUG_DATA_COUNT(v) (((v) << 0) & 0xffff) | ||
166 | |||
167 | #endif /* __HEADERGEN__STMP3600__LCDIF__H__ */ | ||