summaryrefslogtreecommitdiff
path: root/firmware/target/arm/imx233/regs/stmp3700/regs-ocotp.h
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/imx233/regs/stmp3700/regs-ocotp.h')
-rw-r--r--firmware/target/arm/imx233/regs/stmp3700/regs-ocotp.h254
1 files changed, 254 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/regs/stmp3700/regs-ocotp.h b/firmware/target/arm/imx233/regs/stmp3700/regs-ocotp.h
new file mode 100644
index 0000000000..082952fc95
--- /dev/null
+++ b/firmware/target/arm/imx233/regs/stmp3700/regs-ocotp.h
@@ -0,0 +1,254 @@
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__OCOTP__H__
24#define __HEADERGEN__STMP3700__OCOTP__H__
25
26#define REGS_OCOTP_BASE (0x8002c000)
27
28#define REGS_OCOTP_VERSION "3.2.0"
29
30/**
31 * Register: HW_OCOTP_CTRL
32 * Address: 0
33 * SCT: yes
34*/
35#define HW_OCOTP_CTRL (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x0 + 0x0))
36#define HW_OCOTP_CTRL_SET (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x0 + 0x4))
37#define HW_OCOTP_CTRL_CLR (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x0 + 0x8))
38#define HW_OCOTP_CTRL_TOG (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x0 + 0xc))
39#define BP_OCOTP_CTRL_WR_UNLOCK 16
40#define BM_OCOTP_CTRL_WR_UNLOCK 0xffff0000
41#define BV_OCOTP_CTRL_WR_UNLOCK__KEY 0x3e77
42#define BF_OCOTP_CTRL_WR_UNLOCK(v) (((v) << 16) & 0xffff0000)
43#define BF_OCOTP_CTRL_WR_UNLOCK_V(v) ((BV_OCOTP_CTRL_WR_UNLOCK__##v << 16) & 0xffff0000)
44#define BP_OCOTP_CTRL_RELOAD_SHADOWS 13
45#define BM_OCOTP_CTRL_RELOAD_SHADOWS 0x2000
46#define BF_OCOTP_CTRL_RELOAD_SHADOWS(v) (((v) << 13) & 0x2000)
47#define BP_OCOTP_CTRL_RD_BANK_OPEN 12
48#define BM_OCOTP_CTRL_RD_BANK_OPEN 0x1000
49#define BF_OCOTP_CTRL_RD_BANK_OPEN(v) (((v) << 12) & 0x1000)
50#define BP_OCOTP_CTRL_ERROR 9
51#define BM_OCOTP_CTRL_ERROR 0x200
52#define BF_OCOTP_CTRL_ERROR(v) (((v) << 9) & 0x200)
53#define BP_OCOTP_CTRL_BUSY 8
54#define BM_OCOTP_CTRL_BUSY 0x100
55#define BF_OCOTP_CTRL_BUSY(v) (((v) << 8) & 0x100)
56#define BP_OCOTP_CTRL_ADDR 0
57#define BM_OCOTP_CTRL_ADDR 0x1f
58#define BF_OCOTP_CTRL_ADDR(v) (((v) << 0) & 0x1f)
59
60/**
61 * Register: HW_OCOTP_DATA
62 * Address: 0x10
63 * SCT: no
64*/
65#define HW_OCOTP_DATA (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x10))
66#define BP_OCOTP_DATA_DATA 0
67#define BM_OCOTP_DATA_DATA 0xffffffff
68#define BF_OCOTP_DATA_DATA(v) (((v) << 0) & 0xffffffff)
69
70/**
71 * Register: HW_OCOTP_CUSTn
72 * Address: 0x20+n*0x10
73 * SCT: no
74*/
75#define HW_OCOTP_CUSTn(n) (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x20+(n)*0x10))
76#define BP_OCOTP_CUSTn_BITS 0
77#define BM_OCOTP_CUSTn_BITS 0xffffffff
78#define BF_OCOTP_CUSTn_BITS(v) (((v) << 0) & 0xffffffff)
79
80/**
81 * Register: HW_OCOTP_CRYPTOn
82 * Address: 0x60+n*0x10
83 * SCT: no
84*/
85#define HW_OCOTP_CRYPTOn(n) (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x60+(n)*0x10))
86#define BP_OCOTP_CRYPTOn_BITS 0
87#define BM_OCOTP_CRYPTOn_BITS 0xffffffff
88#define BF_OCOTP_CRYPTOn_BITS(v) (((v) << 0) & 0xffffffff)
89
90/**
91 * Register: HW_OCOTP_HWCAPn
92 * Address: 0xa0+n*0x10
93 * SCT: no
94*/
95#define HW_OCOTP_HWCAPn(n) (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0xa0+(n)*0x10))
96#define BP_OCOTP_HWCAPn_BITS 0
97#define BM_OCOTP_HWCAPn_BITS 0xffffffff
98#define BF_OCOTP_HWCAPn_BITS(v) (((v) << 0) & 0xffffffff)
99
100/**
101 * Register: HW_OCOTP_SWCAP
102 * Address: 0x100
103 * SCT: no
104*/
105#define HW_OCOTP_SWCAP (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x100))
106#define BP_OCOTP_SWCAP_BITS 0
107#define BM_OCOTP_SWCAP_BITS 0xffffffff
108#define BF_OCOTP_SWCAP_BITS(v) (((v) << 0) & 0xffffffff)
109
110/**
111 * Register: HW_OCOTP_CUSTCAP
112 * Address: 0x110
113 * SCT: no
114*/
115#define HW_OCOTP_CUSTCAP (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x110))
116#define BP_OCOTP_CUSTCAP_BITS 0
117#define BM_OCOTP_CUSTCAP_BITS 0xffffffff
118#define BF_OCOTP_CUSTCAP_BITS(v) (((v) << 0) & 0xffffffff)
119
120/**
121 * Register: HW_OCOTP_LOCK
122 * Address: 0x120
123 * SCT: no
124*/
125#define HW_OCOTP_LOCK (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x120))
126#define BP_OCOTP_LOCK_ROM7 31
127#define BM_OCOTP_LOCK_ROM7 0x80000000
128#define BF_OCOTP_LOCK_ROM7(v) (((v) << 31) & 0x80000000)
129#define BP_OCOTP_LOCK_ROM6 30
130#define BM_OCOTP_LOCK_ROM6 0x40000000
131#define BF_OCOTP_LOCK_ROM6(v) (((v) << 30) & 0x40000000)
132#define BP_OCOTP_LOCK_ROM5 29
133#define BM_OCOTP_LOCK_ROM5 0x20000000
134#define BF_OCOTP_LOCK_ROM5(v) (((v) << 29) & 0x20000000)
135#define BP_OCOTP_LOCK_ROM4 28
136#define BM_OCOTP_LOCK_ROM4 0x10000000
137#define BF_OCOTP_LOCK_ROM4(v) (((v) << 28) & 0x10000000)
138#define BP_OCOTP_LOCK_ROM3 27
139#define BM_OCOTP_LOCK_ROM3 0x8000000
140#define BF_OCOTP_LOCK_ROM3(v) (((v) << 27) & 0x8000000)
141#define BP_OCOTP_LOCK_ROM2 26
142#define BM_OCOTP_LOCK_ROM2 0x4000000
143#define BF_OCOTP_LOCK_ROM2(v) (((v) << 26) & 0x4000000)
144#define BP_OCOTP_LOCK_ROM1 25
145#define BM_OCOTP_LOCK_ROM1 0x2000000
146#define BF_OCOTP_LOCK_ROM1(v) (((v) << 25) & 0x2000000)
147#define BP_OCOTP_LOCK_ROM0 24
148#define BM_OCOTP_LOCK_ROM0 0x1000000
149#define BF_OCOTP_LOCK_ROM0(v) (((v) << 24) & 0x1000000)
150#define BP_OCOTP_LOCK_HWSW_SHADOW_ALT 23
151#define BM_OCOTP_LOCK_HWSW_SHADOW_ALT 0x800000
152#define BF_OCOTP_LOCK_HWSW_SHADOW_ALT(v) (((v) << 23) & 0x800000)
153#define BP_OCOTP_LOCK_CRYPTODCP_ALT 22
154#define BM_OCOTP_LOCK_CRYPTODCP_ALT 0x400000
155#define BF_OCOTP_LOCK_CRYPTODCP_ALT(v) (((v) << 22) & 0x400000)
156#define BP_OCOTP_LOCK_CRYPTOKEY_ALT 21
157#define BM_OCOTP_LOCK_CRYPTOKEY_ALT 0x200000
158#define BF_OCOTP_LOCK_CRYPTOKEY_ALT(v) (((v) << 21) & 0x200000)
159#define BP_OCOTP_LOCK_PIN 20
160#define BM_OCOTP_LOCK_PIN 0x100000
161#define BF_OCOTP_LOCK_PIN(v) (((v) << 20) & 0x100000)
162#define BP_OCOTP_LOCK_OPS 19
163#define BM_OCOTP_LOCK_OPS 0x80000
164#define BF_OCOTP_LOCK_OPS(v) (((v) << 19) & 0x80000)
165#define BP_OCOTP_LOCK_UN2 18
166#define BM_OCOTP_LOCK_UN2 0x40000
167#define BF_OCOTP_LOCK_UN2(v) (((v) << 18) & 0x40000)
168#define BP_OCOTP_LOCK_UN1 17
169#define BM_OCOTP_LOCK_UN1 0x20000
170#define BF_OCOTP_LOCK_UN1(v) (((v) << 17) & 0x20000)
171#define BP_OCOTP_LOCK_UN0 16
172#define BM_OCOTP_LOCK_UN0 0x10000
173#define BF_OCOTP_LOCK_UN0(v) (((v) << 16) & 0x10000)
174#define BP_OCOTP_LOCK_UNALLOCATED 10
175#define BM_OCOTP_LOCK_UNALLOCATED 0xfc00
176#define BF_OCOTP_LOCK_UNALLOCATED(v) (((v) << 10) & 0xfc00)
177#define BP_OCOTP_LOCK_CUSTCAP 9
178#define BM_OCOTP_LOCK_CUSTCAP 0x200
179#define BF_OCOTP_LOCK_CUSTCAP(v) (((v) << 9) & 0x200)
180#define BP_OCOTP_LOCK_HWSW 8
181#define BM_OCOTP_LOCK_HWSW 0x100
182#define BF_OCOTP_LOCK_HWSW(v) (((v) << 8) & 0x100)
183#define BP_OCOTP_LOCK_CUSTCAP_SHADOW 7
184#define BM_OCOTP_LOCK_CUSTCAP_SHADOW 0x80
185#define BF_OCOTP_LOCK_CUSTCAP_SHADOW(v) (((v) << 7) & 0x80)
186#define BP_OCOTP_LOCK_HWSW_SHADOW 6
187#define BM_OCOTP_LOCK_HWSW_SHADOW 0x40
188#define BF_OCOTP_LOCK_HWSW_SHADOW(v) (((v) << 6) & 0x40)
189#define BP_OCOTP_LOCK_CRYPTODCP 5
190#define BM_OCOTP_LOCK_CRYPTODCP 0x20
191#define BF_OCOTP_LOCK_CRYPTODCP(v) (((v) << 5) & 0x20)
192#define BP_OCOTP_LOCK_CRYPTOKEY 4
193#define BM_OCOTP_LOCK_CRYPTOKEY 0x10
194#define BF_OCOTP_LOCK_CRYPTOKEY(v) (((v) << 4) & 0x10)
195#define BP_OCOTP_LOCK_CUST3 3
196#define BM_OCOTP_LOCK_CUST3 0x8
197#define BF_OCOTP_LOCK_CUST3(v) (((v) << 3) & 0x8)
198#define BP_OCOTP_LOCK_CUST2 2
199#define BM_OCOTP_LOCK_CUST2 0x4
200#define BF_OCOTP_LOCK_CUST2(v) (((v) << 2) & 0x4)
201#define BP_OCOTP_LOCK_CUST1 1
202#define BM_OCOTP_LOCK_CUST1 0x2
203#define BF_OCOTP_LOCK_CUST1(v) (((v) << 1) & 0x2)
204#define BP_OCOTP_LOCK_CUST0 0
205#define BM_OCOTP_LOCK_CUST0 0x1
206#define BF_OCOTP_LOCK_CUST0(v) (((v) << 0) & 0x1)
207
208/**
209 * Register: HW_OCOTP_OPSn
210 * Address: 0x130+n*0x10
211 * SCT: no
212*/
213#define HW_OCOTP_OPSn(n) (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x130+(n)*0x10))
214#define BP_OCOTP_OPSn_BITS 0
215#define BM_OCOTP_OPSn_BITS 0xffffffff
216#define BF_OCOTP_OPSn_BITS(v) (((v) << 0) & 0xffffffff)
217
218/**
219 * Register: HW_OCOTP_UNn
220 * Address: 0x170+n*0x10
221 * SCT: no
222*/
223#define HW_OCOTP_UNn(n) (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x170+(n)*0x10))
224#define BP_OCOTP_UNn_BITS 0
225#define BM_OCOTP_UNn_BITS 0xffffffff
226#define BF_OCOTP_UNn_BITS(v) (((v) << 0) & 0xffffffff)
227
228/**
229 * Register: HW_OCOTP_ROMn
230 * Address: 0x1a0+n*0x10
231 * SCT: no
232*/
233#define HW_OCOTP_ROMn(n) (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x1a0+(n)*0x10))
234#define BP_OCOTP_ROMn_BITS 0
235#define BM_OCOTP_ROMn_BITS 0xffffffff
236#define BF_OCOTP_ROMn_BITS(v) (((v) << 0) & 0xffffffff)
237
238/**
239 * Register: HW_OCOTP_VERSION
240 * Address: 0x220
241 * SCT: no
242*/
243#define HW_OCOTP_VERSION (*(volatile unsigned long *)(REGS_OCOTP_BASE + 0x220))
244#define BP_OCOTP_VERSION_MAJOR 24
245#define BM_OCOTP_VERSION_MAJOR 0xff000000
246#define BF_OCOTP_VERSION_MAJOR(v) (((v) << 24) & 0xff000000)
247#define BP_OCOTP_VERSION_MINOR 16
248#define BM_OCOTP_VERSION_MINOR 0xff0000
249#define BF_OCOTP_VERSION_MINOR(v) (((v) << 16) & 0xff0000)
250#define BP_OCOTP_VERSION_STEP 0
251#define BM_OCOTP_VERSION_STEP 0xffff
252#define BF_OCOTP_VERSION_STEP(v) (((v) << 0) & 0xffff)
253
254#endif /* __HEADERGEN__STMP3700__OCOTP__H__ */