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
08c2f264
Unverified
Commit
08c2f264
authored
6 years ago
by
Dimitris Papastamos
Committed by
GitHub
6 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #1452 from glneo/fixups-for-k3
Couple of fixups for K3 platform
parents
d5a0491c
deed2b83
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
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
plat/ti/k3/common/k3_psci.c
+10
-4
plat/ti/k3/common/k3_psci.c
plat/ti/k3/common/k3_topology.c
+1
-0
plat/ti/k3/common/k3_topology.c
plat/ti/k3/include/platform_def.h
+3
-2
plat/ti/k3/include/platform_def.h
with
14 additions
and
6 deletions
+14
-6
plat/ti/k3/common/k3_psci.c
View file @
08c2f264
...
...
@@ -17,12 +17,18 @@ uintptr_t k3_sec_entrypoint;
static
void
k3_cpu_standby
(
plat_local_state_t
cpu_state
)
{
/*
* Enter standby state
* dsb is good practice before using wfi to enter low power states
*/
unsigned
int
scr
;
scr
=
read_scr_el3
();
/* Enable the Non secure interrupt to wake the CPU */
write_scr_el3
(
scr
|
SCR_IRQ_BIT
|
SCR_FIQ_BIT
);
isb
();
/* dsb is good practice before using wfi to enter low power states */
dsb
();
/* Enter standby state */
wfi
();
/* Restore SCR */
write_scr_el3
(
scr
);
}
static
int
k3_pwr_domain_on
(
u_register_t
mpidr
)
...
...
This diff is collapsed.
Click to expand it.
plat/ti/k3/common/k3_topology.c
View file @
08c2f264
...
...
@@ -9,6 +9,7 @@
/* The power domain tree descriptor */
static
unsigned
char
power_domain_tree_desc
[]
=
{
PLATFORM_SYSTEM_COUNT
,
PLATFORM_CLUSTER_COUNT
,
K3_CLUSTER0_CORE_COUNT
,
#if K3_CLUSTER1_MSMC_PORT != UNUSED
...
...
This diff is collapsed.
Click to expand it.
plat/ti/k3/include/platform_def.h
View file @
08c2f264
...
...
@@ -62,9 +62,10 @@
#define PLATFORM_CLUSTER_OFFSET K3_CLUSTER0_MSMC_PORT
#define PLAT_NUM_PWR_DOMAINS (PLATFORM_CLUSTER_COUNT + \
#define PLAT_NUM_PWR_DOMAINS (PLATFORM_SYSTEM_COUNT + \
PLATFORM_CLUSTER_COUNT + \
PLATFORM_CORE_COUNT)
#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL
1
#define PLAT_MAX_PWR_LVL MPIDR_AFFLVL
2
/*******************************************************************************
* Memory layout constants
...
...
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