-
Notifications
You must be signed in to change notification settings - Fork 5
/
tc_linux_create_reg_file_am335x.py
196 lines (169 loc) · 6.87 KB
/
tc_linux_create_reg_file_am335x.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
# This file is part of tbot. tbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc., 51
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#
# Description:
# start with
# tbot.py -s lab_denx -c cuby -t tc_linux_create_reg_file_am335x.py
# create a regfile for am335x SoC registers
# End:
from tbotlib import tbot
import time
tb.workfd = tb.c_ctrl
# CTRL Module
tb.config.tc_lx_create_reg_file_name = 'am335x_ctrl_module.reg'
tb.config.tc_lx_create_reg_file_start = '44e10000'
tb.config.tc_lx_create_reg_file_stop = '44e11448'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CTRL Module (Pinmux only)
tb.config.tc_lx_create_reg_file_name = 'am335x_pinmux.reg'
tb.config.tc_lx_create_reg_file_start = '44e10800'
tb.config.tc_lx_create_reg_file_stop = '44e10a38'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CM_DPLL
tb.config.tc_lx_create_reg_file_name = 'am335x_cm_dpll.reg'
tb.config.tc_lx_create_reg_file_start = '44e00500'
tb.config.tc_lx_create_reg_file_stop = '44e00540'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CM_MPU
tb.config.tc_lx_create_reg_file_name = 'am335x_cm_mpu.reg'
tb.config.tc_lx_create_reg_file_start = '44e00600'
tb.config.tc_lx_create_reg_file_stop = '44e00608'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CM_PER
tb.config.tc_lx_create_reg_file_name = 'am335x_cm_per.reg'
tb.config.tc_lx_create_reg_file_start = '44e00000'
tb.config.tc_lx_create_reg_file_stop = '44e00154'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CM_WKUP
tb.config.tc_lx_create_reg_file_name = 'am335x_cm_wkup.reg'
tb.config.tc_lx_create_reg_file_start = '44e00400'
tb.config.tc_lx_create_reg_file_stop = '44e004dc'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CM_PER
tb.config.tc_lx_create_reg_file_name = 'am335x_cm_per.reg'
tb.config.tc_lx_create_reg_file_start = '44e00000'
tb.config.tc_lx_create_reg_file_stop = '44e00154'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# Display
tb.config.tc_lx_create_reg_file_name = 'am335x_display.reg'
tb.config.tc_lx_create_reg_file_start = '0x4830e000'
tb.config.tc_lx_create_reg_file_stop = '0x4830e074'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# EMIF
tb.config.tc_lx_create_reg_file_name = 'am335x_emif.reg'
tb.config.tc_lx_create_reg_file_start = '4c000000'
tb.config.tc_lx_create_reg_file_stop = '4c000124'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# USBSS
tb.config.tc_lx_create_reg_file_name = 'am335x_usbss.reg'
tb.config.tc_lx_create_reg_file_start = '47400000'
tb.config.tc_lx_create_reg_file_stop = '47400248'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# USB0
tb.config.tc_lx_create_reg_file_name = 'am335x_usb0.reg'
tb.config.tc_lx_create_reg_file_start = '47401000'
tb.config.tc_lx_create_reg_file_stop = '474010ec'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# USB0PHY
tb.config.tc_lx_create_reg_file_name = 'am335x_usb0phy.reg'
tb.config.tc_lx_create_reg_file_start = '47401300'
tb.config.tc_lx_create_reg_file_stop = '47401358'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# USB1
tb.config.tc_lx_create_reg_file_name = 'am335x_usb1.reg'
tb.config.tc_lx_create_reg_file_start = '47401800'
tb.config.tc_lx_create_reg_file_stop = '474018e8'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# USB1PHY
tb.config.tc_lx_create_reg_file_name = 'am335x_usb1phy.reg'
tb.config.tc_lx_create_reg_file_start = '47401b00'
tb.config.tc_lx_create_reg_file_stop = '47401b58'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# GPMC
tb.config.tc_lx_create_reg_file_name = 'am335x_gpmc.reg'
tb.config.tc_lx_create_reg_file_start = '50000000'
tb.config.tc_lx_create_reg_file_stop = '50000084'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CPSW_SS
tb.config.tc_lx_create_reg_file_name = 'am335x_cpsw_ss.reg'
tb.config.tc_lx_create_reg_file_start = '4a100000'
tb.config.tc_lx_create_reg_file_stop = '4a100034'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CPSW_PORT
tb.config.tc_lx_create_reg_file_name = 'am335x_cpsw_port.reg'
tb.config.tc_lx_create_reg_file_start = '4a100100'
tb.config.tc_lx_create_reg_file_stop = '4a100250'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CPSW_ALE
tb.config.tc_lx_create_reg_file_name = 'am335x_cpsw_ale.reg'
tb.config.tc_lx_create_reg_file_start = '4a100d00'
tb.config.tc_lx_create_reg_file_stop = '4a100d58'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CPSW_SL1
tb.config.tc_lx_create_reg_file_name = 'am335x_cpsw_sl1.reg'
tb.config.tc_lx_create_reg_file_start = '4a100d80'
tb.config.tc_lx_create_reg_file_stop = '4a100dac'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# CPSW_SL2
tb.config.tc_lx_create_reg_file_name = 'am335x_cpsw_sl2.reg'
tb.config.tc_lx_create_reg_file_start = '4a100dc0'
tb.config.tc_lx_create_reg_file_stop = '4a100dec'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
# MDIO
tb.config.tc_lx_create_reg_file_name = 'am335x_cpsw_mdio.reg'
tb.config.tc_lx_create_reg_file_start = '4a101000'
tb.config.tc_lx_create_reg_file_stop = '4a101090'
tb.config.tc_lx_readreg_mask = 0xffffffff
tb.config.tc_lx_readreg_type = 'w'
tb.eof_call_tc("tc_lx_create_reg_file.py")
tb.end_tc(True)