Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ezynq
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
ezynq
Commits
4e866ce6
Commit
4e866ce6
authored
Nov 02, 2013
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
435a11b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ezynq_uboot.py
ezynq_uboot.py
+2
-2
No files found.
ezynq_uboot.py
View file @
4e866ce6
...
...
@@ -433,8 +433,8 @@ inline void ddrc_wait_queue_empty(void)
bits
=
reg_set
[
reg_name
][
'FIELDS'
][
field_name
][
'r'
]
# self._report_bit_field('BIST errors from reg_6c (1 bit per slice)',DDRC_DEFS,'reg_6c','phy_reg_bist_err')
mask
=
(
1
<<
(
max
(
bits
)
-
min
(
bits
)))
-
1
return
(
'(readl(0x
%08
x) >>
%
d) & 0x
%
x'
%
(
addr
,
min
(
bits
),
mask
),
max
(
bits
)
-
min
(
bits
))
mask
=
(
1
<<
(
max
(
bits
)
-
min
(
bits
)
+
1
))
-
1
return
(
'(readl(0x
%08
x) >>
%
d) & 0x
%
x'
%
(
addr
,
min
(
bits
),
mask
),
max
(
bits
)
-
min
(
bits
)
+
1
)
def
_report_bit_field
(
self
,
name
,
reg_set
,
reg_name
,
field_name
,
channel
=
0
):
self
.
cfile
+=
'
\t
uart_puts("'
+
name
+
' = 0x");
\n
'
self
.
cfile
+=
'
\t
uart_put_hex('
+
self
.
_read_bit_field
(
reg_set
,
reg_name
,
field_name
,
channel
)[
0
]
+
');
\n
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment