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
5d51036c
Commit
5d51036c
authored
Oct 13, 2020
by
Alexei Fedorov
Committed by
TrustedFirmware Code Review
Oct 13, 2020
Browse files
Merge "stm32mp1: add support for new SoC profiles" into integration
parents
0e935f00
8ccf4954
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
plat/st/stm32mp1/stm32mp1_def.h
plat/st/stm32mp1/stm32mp1_def.h
+6
-0
plat/st/stm32mp1/stm32mp1_private.c
plat/st/stm32mp1/stm32mp1_private.c
+22
-6
No files found.
plat/st/stm32mp1/stm32mp1_def.h
View file @
5d51036c
...
@@ -37,6 +37,12 @@
...
@@ -37,6 +37,12 @@
#define STM32MP153A_PART_NB U(0x05000025)
#define STM32MP153A_PART_NB U(0x05000025)
#define STM32MP151C_PART_NB U(0x0500002E)
#define STM32MP151C_PART_NB U(0x0500002E)
#define STM32MP151A_PART_NB U(0x0500002F)
#define STM32MP151A_PART_NB U(0x0500002F)
#define STM32MP157F_PART_NB U(0x05000080)
#define STM32MP157D_PART_NB U(0x05000081)
#define STM32MP153F_PART_NB U(0x050000A4)
#define STM32MP153D_PART_NB U(0x050000A5)
#define STM32MP151F_PART_NB U(0x050000AE)
#define STM32MP151D_PART_NB U(0x050000AF)
#define STM32MP1_REV_B U(0x2000)
#define STM32MP1_REV_B U(0x2000)
#define STM32MP1_REV_Z U(0x2001)
#define STM32MP1_REV_Z U(0x2001)
...
...
plat/st/stm32mp1/stm32mp1_private.c
View file @
5d51036c
...
@@ -220,6 +220,24 @@ void stm32mp_print_cpuinfo(void)
...
@@ -220,6 +220,24 @@ void stm32mp_print_cpuinfo(void)
case
STM32MP151A_PART_NB
:
case
STM32MP151A_PART_NB
:
cpu_s
=
"151A"
;
cpu_s
=
"151A"
;
break
;
break
;
case
STM32MP157F_PART_NB
:
cpu_s
=
"157F"
;
break
;
case
STM32MP157D_PART_NB
:
cpu_s
=
"157D"
;
break
;
case
STM32MP153F_PART_NB
:
cpu_s
=
"153F"
;
break
;
case
STM32MP153D_PART_NB
:
cpu_s
=
"153D"
;
break
;
case
STM32MP151F_PART_NB
:
cpu_s
=
"151F"
;
break
;
case
STM32MP151D_PART_NB
:
cpu_s
=
"151D"
;
break
;
default:
default:
cpu_s
=
"????"
;
cpu_s
=
"????"
;
break
;
break
;
...
@@ -323,7 +341,6 @@ void stm32mp_print_boardinfo(void)
...
@@ -323,7 +341,6 @@ void stm32mp_print_boardinfo(void)
bool
stm32mp_is_single_core
(
void
)
bool
stm32mp_is_single_core
(
void
)
{
{
uint32_t
part_number
;
uint32_t
part_number
;
bool
ret
=
false
;
if
(
get_part_number
(
&
part_number
)
<
0
)
{
if
(
get_part_number
(
&
part_number
)
<
0
)
{
ERROR
(
"Invalid part number, assume single core chip"
);
ERROR
(
"Invalid part number, assume single core chip"
);
...
@@ -333,14 +350,13 @@ bool stm32mp_is_single_core(void)
...
@@ -333,14 +350,13 @@ bool stm32mp_is_single_core(void)
switch
(
part_number
)
{
switch
(
part_number
)
{
case
STM32MP151A_PART_NB
:
case
STM32MP151A_PART_NB
:
case
STM32MP151C_PART_NB
:
case
STM32MP151C_PART_NB
:
ret
=
true
;
case
STM32MP151D_PART_NB
:
break
;
case
STM32MP151F_PART_NB
:
return
true
;
default:
default:
b
re
ak
;
re
turn
false
;
}
}
return
ret
;
}
}
/* Return true when device is in closed state */
/* Return true when device is in closed state */
...
...
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