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
Arm Trusted Firmware
Commits
42fb35a8
Commit
42fb35a8
authored
Jun 13, 2017
by
davidcunado-arm
Committed by
GitHub
Jun 13, 2017
Browse files
Merge pull request #982 from hzhuang1/fix_hikey960
Fix hikey960
parents
c396b736
8aa928ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
drivers/ufs/ufs.c
View file @
42fb35a8
...
...
@@ -45,7 +45,7 @@ int ufshc_send_uic_cmd(uintptr_t base, uic_cmd_t *cmd)
data
=
mmio_read_32
(
base
+
IS
);
}
while
((
data
&
UFS_INT_UCCS
)
==
0
);
mmio_write_32
(
base
+
IS
,
UFS_INT_UCCS
);
return
mmio_read_32
(
base
+
UCMDARG2
)
&
&
CONFIG_RESULT_CODE_MASK
;
return
mmio_read_32
(
base
+
UCMDARG2
)
&
CONFIG_RESULT_CODE_MASK
;
}
int
ufshc_dme_get
(
unsigned
int
attr
,
unsigned
int
idx
,
unsigned
int
*
val
)
...
...
@@ -77,7 +77,7 @@ int ufshc_dme_get(unsigned int attr, unsigned int idx, unsigned int *val)
return
-
EINVAL
;
}
while
((
data
&
UFS_INT_UCCS
)
==
0
);
mmio_write_32
(
base
+
IS
,
UFS_INT_UCCS
);
data
=
mmio_read_32
(
base
+
UCMDARG2
)
&
&
CONFIG_RESULT_CODE_MASK
;
data
=
mmio_read_32
(
base
+
UCMDARG2
)
&
CONFIG_RESULT_CODE_MASK
;
assert
(
data
==
0
);
*
val
=
mmio_read_32
(
base
+
UCMDARG3
);
...
...
@@ -106,7 +106,7 @@ int ufshc_dme_set(unsigned int attr, unsigned int idx, unsigned int val)
return
-
EINVAL
;
}
while
((
data
&
UFS_INT_UCCS
)
==
0
);
mmio_write_32
(
base
+
IS
,
UFS_INT_UCCS
);
data
=
mmio_read_32
(
base
+
UCMDARG2
)
&
&
CONFIG_RESULT_CODE_MASK
;
data
=
mmio_read_32
(
base
+
UCMDARG2
)
&
CONFIG_RESULT_CODE_MASK
;
assert
(
data
==
0
);
return
0
;
}
...
...
plat/hisilicon/hikey960/hikey960_boardid.c
View file @
42fb35a8
...
...
@@ -111,9 +111,7 @@ static int adcin_data_remap(unsigned int adcin_value)
{
int
ret
;
if
(
adcin_value
<
HKADC_DATA_GRADE0
)
ret
=
BOARDID_UNKNOWN
;
else
if
(
adcin_value
<
HKADC_DATA_GRADE1
)
if
(
adcin_value
<
HKADC_DATA_GRADE1
)
ret
=
BOARDID_VALUE0
;
else
if
(
adcin_value
<
HKADC_DATA_GRADE2
)
ret
=
BOARDID_VALUE1
;
...
...
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