Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
d6e3e721
Commit
d6e3e721
authored
Aug 10, 2014
by
Siarhei Siamashka
Committed by
Alejandro Mery
Aug 14, 2014
Browse files
meminfo: fix 'dram_tpr3' reporting
Get it from the dllcr registers instead of always returning 0.
parent
b4b48e02
Changes
1
Hide whitespace changes
Inline
Side-by-side
a10-meminfo.c
View file @
d6e3e721
...
...
@@ -229,6 +229,11 @@ int main(int argc, char **argv)
p
.
tpr0
=
r
->
tpr0
;
p
.
tpr1
=
r
->
tpr1
;
p
.
tpr2
=
r
->
tpr2
;
p
.
tpr3
=
((((
r
->
dllcr
[
0
])
>>
6
)
&
0x3f
)
<<
16
)
|
((((
r
->
dllcr
[
1
])
>>
14
)
&
0xf
)
<<
0
)
|
((((
r
->
dllcr
[
2
])
>>
14
)
&
0xf
)
<<
4
)
|
((((
r
->
dllcr
[
3
])
>>
14
)
&
0xf
)
<<
8
)
|
((((
r
->
dllcr
[
4
])
>>
14
)
&
0xf
)
<<
12
);
p
.
emr1
=
r
->
emr
;
p
.
emr2
=
r
->
emr2
;
p
.
emr3
=
r
->
emr3
;
...
...
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