Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
fa792637
Commit
fa792637
authored
7 years ago
by
danh-arm
Committed by
GitHub
7 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #956 from hzhuang1/fix_var_in_ddr
hikey: fix uninitialized variable in ddr code
parents
572e1413
22db0167
master
v2.5
v2.5-rc1
v2.5-rc0
v2.4
v2.4-rc2
v2.4-rc1
v2.4-rc0
v2.3
v2.3-rc2
v2.3-rc1
v2.3-rc0
v2.2
v2.2-rc2
v2.2-rc1
v2.2-rc0
v2.1
v2.1-rc1
v2.1-rc0
v2.0
v2.0-rc0
v1.6
v1.6-rc1
v1.6-rc0
v1.5
v1.5-rc3
v1.5-rc2
v1.5-rc1
v1.5-rc0
v1.4
v1.4-rc0
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/hisilicon/hikey/hikey_ddr.c
+3
-3
plat/hisilicon/hikey/hikey_ddr.c
with
3 additions
and
3 deletions
+3
-3
plat/hisilicon/hikey/hikey_ddr.c
View file @
fa792637
...
...
@@ -385,7 +385,7 @@ static void ddrx_rdet(void)
static
void
ddrx_wdet
(
void
)
{
unsigned
int
data
,
wdet
,
zero_bdl
,
dq
[
4
];
unsigned
int
data
,
wdet
,
zero_bdl
=
0
,
dq
[
4
];
int
i
;
data
=
mmio_read_32
((
0xf712c000
+
0x0d0
));
...
...
@@ -454,11 +454,11 @@ static void ddrx_wdet(void)
for
(
i
=
0
;
i
<
4
;
i
++
)
{
data
=
mmio_read_32
((
0xf712c000
+
0x210
+
i
*
0x80
));
if
((
!
(
data
&
0x1f
))
||
(
!
(
data
&
0x1f00
))
||
(
!
(
data
&
0x1f0000
))
||
(
!
(
data
&
0x1f000000
)))
(
!
(
data
&
0x1f0000
))
||
(
!
(
data
&
0x1f000000
)))
zero_bdl
=
1
;
data
=
mmio_read_32
((
0xf712c000
+
0x214
+
i
*
0x80
));
if
((
!
(
data
&
0x1f
))
||
(
!
(
data
&
0x1f00
))
||
(
!
(
data
&
0x1f0000
))
||
(
!
(
data
&
0x1f000000
)))
(
!
(
data
&
0x1f0000
))
||
(
!
(
data
&
0x1f000000
)))
zero_bdl
=
1
;
data
=
mmio_read_32
((
0xf712c000
+
0x218
+
i
*
0x80
));
if
(
!
(
data
&
0x1f
))
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help