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
08c2f264
Unverified
Commit
08c2f264
authored
Jul 02, 2018
by
Dimitris Papastamos
Committed by
GitHub
Jul 02, 2018
Browse files
Merge pull request #1452 from glneo/fixups-for-k3
Couple of fixups for K3 platform
parents
d5a0491c
deed2b83
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
)
...
...
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
...
...
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
...
...
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