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
b0b4855f
Commit
b0b4855f
authored
Aug 18, 2015
by
danh-arm
Browse files
Merge pull request #365 from mtk09422/plat_topology
mt8173: Fix cluster 0 core count
parents
6ab9bbbc
c4a99e89
Changes
1
Hide whitespace changes
Inline
Side-by-side
plat/mediatek/mt8173/plat_topology.c
View file @
b0b4855f
...
...
@@ -28,18 +28,20 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <arch.h>
#include <platform_def.h>
#include <psci.h>
unsigned
int
plat_get_aff_count
(
unsigned
int
aff_lvl
,
unsigned
long
mpidr
)
{
/* Report 1 (absent) instance at levels higher that the cluster level */
if
(
aff_lvl
>
MPIDR_AFFLVL1
)
return
1
;
return
PLATFORM_SYSTEM_COUNT
;
if
(
aff_lvl
==
MPIDR_AFFLVL1
)
return
2
;
/* We have two clusters */
return
PLATFORM_CLUSTER_COUNT
;
return
mpidr
&
0x100
?
2
:
2
;
/* 2 cpus in cluster 1, 2 in cluster 0 */
return
mpidr
&
0x100
?
PLATFORM_CLUSTER1_CORE_COUNT
:
PLATFORM_CLUSTER0_CORE_COUNT
;
}
unsigned
int
plat_get_aff_state
(
unsigned
int
aff_lvl
,
unsigned
long
mpidr
)
...
...
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