summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/regs/stmp3700/regs-emi.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-emi.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-emi.h')
-rw-r--r--firmware/target/arm/imx233/regs/stmp3700/regs-emi.h196
1 files changed, 196 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3700/regs-emi.h b/firmware/target/arm/imx233/regs/stmp3700/regs-emi.h
new file mode 100644
index 0000000000..b81fb35313
--- /dev/null
+++ b/firmware/target/arm/imx233/regs/stmp3700/regs-emi.h
@@ -0,0 +1,196 @@
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__EMI__H__
24#define __HEADERGEN__STMP3700__EMI__H__
25
26#define REGS_EMI_BASE (0x80020000)
27
28#define REGS_EMI_VERSION "3.2.0"
29
30/**
31 * Register: HW_EMI_CTRL
32 * Address: 0
33 * SCT: yes
34*/
35#define HW_EMI_CTRL (*(volatile unsigned long *)(REGS_EMI_BASE + 0x0 + 0x0))
36#define HW_EMI_CTRL_SET (*(volatile unsigned long *)(REGS_EMI_BASE + 0x0 + 0x4))
37#define HW_EMI_CTRL_CLR (*(volatile unsigned long *)(REGS_EMI_BASE + 0x0 + 0x8))
38#define HW_EMI_CTRL_TOG (*(volatile unsigned long *)(REGS_EMI_BASE + 0x0 + 0xc))
39#define BP_EMI_CTRL_SFTRST 31
40#define BM_EMI_CTRL_SFTRST 0x80000000
41#define BF_EMI_CTRL_SFTRST(v) (((v) << 31) & 0x80000000)
42#define BP_EMI_CTRL_CLKGATE 30
43#define BM_EMI_CTRL_CLKGATE 0x40000000
44#define BF_EMI_CTRL_CLKGATE(v) (((v) << 30) & 0x40000000)
45#define BP_EMI_CTRL_MEM_WIDTH 6
46#define BM_EMI_CTRL_MEM_WIDTH 0x40
47#define BF_EMI_CTRL_MEM_WIDTH(v) (((v) << 6) & 0x40)
48#define BP_EMI_CTRL_WRITE_PROTECT 5
49#define BM_EMI_CTRL_WRITE_PROTECT 0x20
50#define BF_EMI_CTRL_WRITE_PROTECT(v) (((v) << 5) & 0x20)
51#define BP_EMI_CTRL_RESET_OUT 4
52#define BM_EMI_CTRL_RESET_OUT 0x10
53#define BF_EMI_CTRL_RESET_OUT(v) (((v) << 4) & 0x10)
54#define BP_EMI_CTRL_CE_SELECT 0
55#define BM_EMI_CTRL_CE_SELECT 0xf
56#define BV_EMI_CTRL_CE_SELECT__NONE 0x0
57#define BV_EMI_CTRL_CE_SELECT__CE0 0x1
58#define BV_EMI_CTRL_CE_SELECT__CE1 0x2
59#define BV_EMI_CTRL_CE_SELECT__CE2 0x4
60#define BV_EMI_CTRL_CE_SELECT__CE3 0x8
61#define BF_EMI_CTRL_CE_SELECT(v) (((v) << 0) & 0xf)
62#define BF_EMI_CTRL_CE_SELECT_V(v) ((BV_EMI_CTRL_CE_SELECT__##v << 0) & 0xf)
63
64/**
65 * Register: HW_EMI_STAT
66 * Address: 0x10
67 * SCT: no
68*/
69#define HW_EMI_STAT (*(volatile unsigned long *)(REGS_EMI_BASE + 0x10))
70#define BP_EMI_STAT_DRAM_PRESENT 31
71#define BM_EMI_STAT_DRAM_PRESENT 0x80000000
72#define BF_EMI_STAT_DRAM_PRESENT(v) (((v) << 31) & 0x80000000)
73#define BP_EMI_STAT_NOR_PRESENT 30
74#define BM_EMI_STAT_NOR_PRESENT 0x40000000
75#define BF_EMI_STAT_NOR_PRESENT(v) (((v) << 30) & 0x40000000)
76#define BP_EMI_STAT_LARGE_DRAM_ENABLED 29
77#define BM_EMI_STAT_LARGE_DRAM_ENABLED 0x20000000
78#define BF_EMI_STAT_LARGE_DRAM_ENABLED(v) (((v) << 29) & 0x20000000)
79#define BP_EMI_STAT_DRAM_HALTED 1
80#define BM_EMI_STAT_DRAM_HALTED 0x2
81#define BV_EMI_STAT_DRAM_HALTED__NOT_HALTED 0x0
82#define BV_EMI_STAT_DRAM_HALTED__HALTED 0x1
83#define BF_EMI_STAT_DRAM_HALTED(v) (((v) << 1) & 0x2)
84#define BF_EMI_STAT_DRAM_HALTED_V(v) ((BV_EMI_STAT_DRAM_HALTED__##v << 1) & 0x2)
85#define BP_EMI_STAT_NOR_BUSY 0
86#define BM_EMI_STAT_NOR_BUSY 0x1
87#define BV_EMI_STAT_NOR_BUSY__NOT_BUSY 0x0
88#define BV_EMI_STAT_NOR_BUSY__BUSY 0x1
89#define BF_EMI_STAT_NOR_BUSY(v) (((v) << 0) & 0x1)
90#define BF_EMI_STAT_NOR_BUSY_V(v) ((BV_EMI_STAT_NOR_BUSY__##v << 0) & 0x1)
91
92/**
93 * Register: HW_EMI_TIME
94 * Address: 0x20
95 * SCT: yes
96*/
97#define HW_EMI_TIME (*(volatile unsigned long *)(REGS_EMI_BASE + 0x20 + 0x0))
98#define HW_EMI_TIME_SET (*(volatile unsigned long *)(REGS_EMI_BASE + 0x20 + 0x4))
99#define HW_EMI_TIME_CLR (*(volatile unsigned long *)(REGS_EMI_BASE + 0x20 + 0x8))
100#define HW_EMI_TIME_TOG (*(volatile unsigned long *)(REGS_EMI_BASE + 0x20 + 0xc))
101#define BP_EMI_TIME_THZ 24
102#define BM_EMI_TIME_THZ 0xf000000
103#define BF_EMI_TIME_THZ(v) (((v) << 24) & 0xf000000)
104#define BP_EMI_TIME_TDH 16
105#define BM_EMI_TIME_TDH 0xf0000
106#define BF_EMI_TIME_TDH(v) (((v) << 16) & 0xf0000)
107#define BP_EMI_TIME_TDS 8
108#define BM_EMI_TIME_TDS 0x1f00
109#define BF_EMI_TIME_TDS(v) (((v) << 8) & 0x1f00)
110#define BP_EMI_TIME_TAS 0
111#define BM_EMI_TIME_TAS 0xf
112#define BF_EMI_TIME_TAS(v) (((v) << 0) & 0xf)
113
114/**
115 * Register: HW_EMI_DDR_TEST_MODE_CSR
116 * Address: 0x30
117 * SCT: yes
118*/
119#define HW_EMI_DDR_TEST_MODE_CSR (*(volatile unsigned long *)(REGS_EMI_BASE + 0x30 + 0x0))
120#define HW_EMI_DDR_TEST_MODE_CSR_SET (*(volatile unsigned long *)(REGS_EMI_BASE + 0x30 + 0x4))
121#define HW_EMI_DDR_TEST_MODE_CSR_CLR (*(volatile unsigned long *)(REGS_EMI_BASE + 0x30 + 0x8))
122#define HW_EMI_DDR_TEST_MODE_CSR_TOG (*(volatile unsigned long *)(REGS_EMI_BASE + 0x30 + 0xc))
123#define BP_EMI_DDR_TEST_MODE_CSR_DONE 1
124#define BM_EMI_DDR_TEST_MODE_CSR_DONE 0x2
125#define BF_EMI_DDR_TEST_MODE_CSR_DONE(v) (((v) << 1) & 0x2)
126#define BP_EMI_DDR_TEST_MODE_CSR_START 0
127#define BM_EMI_DDR_TEST_MODE_CSR_START 0x1
128#define BF_EMI_DDR_TEST_MODE_CSR_START(v) (((v) << 0) & 0x1)
129
130/**
131 * Register: HW_EMI_DEBUG
132 * Address: 0x80
133 * SCT: no
134*/
135#define HW_EMI_DEBUG (*(volatile unsigned long *)(REGS_EMI_BASE + 0x80))
136#define BP_EMI_DEBUG_NOR_STATE 0
137#define BM_EMI_DEBUG_NOR_STATE 0xf
138#define BF_EMI_DEBUG_NOR_STATE(v) (((v) << 0) & 0xf)
139
140/**
141 * Register: HW_EMI_DDR_TEST_MODE_STATUS0
142 * Address: 0x90
143 * SCT: no
144*/
145#define HW_EMI_DDR_TEST_MODE_STATUS0 (*(volatile unsigned long *)(REGS_EMI_BASE + 0x90))
146#define BP_EMI_DDR_TEST_MODE_STATUS0_ADDR0 0
147#define BM_EMI_DDR_TEST_MODE_STATUS0_ADDR0 0x1fff
148#define BF_EMI_DDR_TEST_MODE_STATUS0_ADDR0(v) (((v) << 0) & 0x1fff)
149
150/**
151 * Register: HW_EMI_DDR_TEST_MODE_STATUS1
152 * Address: 0xa0
153 * SCT: no
154*/
155#define HW_EMI_DDR_TEST_MODE_STATUS1 (*(volatile unsigned long *)(REGS_EMI_BASE + 0xa0))
156#define BP_EMI_DDR_TEST_MODE_STATUS1_ADDR1 0
157#define BM_EMI_DDR_TEST_MODE_STATUS1_ADDR1 0x1fff
158#define BF_EMI_DDR_TEST_MODE_STATUS1_ADDR1(v) (((v) << 0) & 0x1fff)
159
160/**
161 * Register: HW_EMI_DDR_TEST_MODE_STATUS2
162 * Address: 0xb0
163 * SCT: no
164*/
165#define HW_EMI_DDR_TEST_MODE_STATUS2 (*(volatile unsigned long *)(REGS_EMI_BASE + 0xb0))
166#define BP_EMI_DDR_TEST_MODE_STATUS2_DATA0 0
167#define BM_EMI_DDR_TEST_MODE_STATUS2_DATA0 0xffffffff
168#define BF_EMI_DDR_TEST_MODE_STATUS2_DATA0(v) (((v) << 0) & 0xffffffff)
169
170/**
171 * Register: HW_EMI_DDR_TEST_MODE_STATUS3
172 * Address: 0xc0
173 * SCT: no
174*/
175#define HW_EMI_DDR_TEST_MODE_STATUS3 (*(volatile unsigned long *)(REGS_EMI_BASE + 0xc0))
176#define BP_EMI_DDR_TEST_MODE_STATUS3_DATA1 0
177#define BM_EMI_DDR_TEST_MODE_STATUS3_DATA1 0xffffffff
178#define BF_EMI_DDR_TEST_MODE_STATUS3_DATA1(v) (((v) << 0) & 0xffffffff)
179
180/**
181 * Register: HW_EMI_VERSION
182 * Address: 0xf0
183 * SCT: no
184*/
185#define HW_EMI_VERSION (*(volatile unsigned long *)(REGS_EMI_BASE + 0xf0))
186#define BP_EMI_VERSION_MAJOR 24
187#define BM_EMI_VERSION_MAJOR 0xff000000
188#define BF_EMI_VERSION_MAJOR(v) (((v) << 24) & 0xff000000)
189#define BP_EMI_VERSION_MINOR 16
190#define BM_EMI_VERSION_MINOR 0xff0000
191#define BF_EMI_VERSION_MINOR(v) (((v) << 16) & 0xff0000)
192#define BP_EMI_VERSION_STEP 0
193#define BM_EMI_VERSION_STEP 0xffff
194#define BF_EMI_VERSION_STEP(v) (((v) << 0) & 0xffff)
195
196#endif /* __HEADERGEN__STMP3700__EMI__H__ */