Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Nest
Forks
Trusted Firmware-A
Commits
113e8fda
Commit
113e8fda
authored
Oct 13, 2020
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Oct 13, 2020
Browse files
Merge "stm32mp1: add asserts in get_cpu_package() and get_part_number()" into integration
parents
5d51036c
d75a3409
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
plat/st/stm32mp1/stm32mp1_private.c
plat/st/stm32mp1/stm32mp1_private.c
+4
-0
No files found.
plat/st/stm32mp1/stm32mp1_private.c
View file @
113e8fda
...
@@ -154,6 +154,8 @@ static int get_part_number(uint32_t *part_nb)
...
@@ -154,6 +154,8 @@ static int get_part_number(uint32_t *part_nb)
uint32_t
part_number
;
uint32_t
part_number
;
uint32_t
dev_id
;
uint32_t
dev_id
;
assert
(
part_nb
!=
NULL
);
if
(
stm32mp1_dbgmcu_get_chip_dev_id
(
&
dev_id
)
<
0
)
{
if
(
stm32mp1_dbgmcu_get_chip_dev_id
(
&
dev_id
)
<
0
)
{
return
-
1
;
return
-
1
;
}
}
...
@@ -175,6 +177,8 @@ static int get_cpu_package(uint32_t *cpu_package)
...
@@ -175,6 +177,8 @@ static int get_cpu_package(uint32_t *cpu_package)
{
{
uint32_t
package
;
uint32_t
package
;
assert
(
cpu_package
!=
NULL
);
if
(
bsec_shadow_read_otp
(
&
package
,
PACKAGE_OTP
)
!=
BSEC_OK
)
{
if
(
bsec_shadow_read_otp
(
&
package
,
PACKAGE_OTP
)
!=
BSEC_OK
)
{
ERROR
(
"BSEC: PACKAGE_OTP Error
\n
"
);
ERROR
(
"BSEC: PACKAGE_OTP Error
\n
"
);
return
-
1
;
return
-
1
;
...
...
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