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
251b2643
Commit
251b2643
authored
5 years ago
by
Soby Mathew
Committed by
TrustedFirmware Code Review
5 years ago
Browse files
Options
Download
Plain Diff
Merge "a5ds: Add handler for when user tries to switch off secondary cores" into integration
parents
b81167d3
59ffec15
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
arm_cca_v0.2
arm_cca_v0.1
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
plat/arm/board/a5ds/a5ds_pm.c
+15
-1
plat/arm/board/a5ds/a5ds_pm.c
with
15 additions
and
1 deletion
+15
-1
plat/arm/board/a5ds/a5ds_pm.c
View file @
251b2643
...
...
@@ -3,6 +3,7 @@
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <assert.h>
#include <lib/psci/psci.h>
#include <plat/arm/common/plat_arm.h>
...
...
@@ -39,6 +40,18 @@ void a5ds_pwr_domain_on_finish(const psci_power_state_t *target_state)
gicv2_cpuif_enable
();
}
/*******************************************************************************
* Platform handler called when a power domain is about to be turned off. The
* target_state encodes the power state that each level should transition to.
* a5ds only has always-on power domain and there is no power control present.
******************************************************************************/
void
a5ds_pwr_domain_off
(
const
psci_power_state_t
*
target_state
)
{
ERROR
(
"CPU_OFF not supported on this platform
\n
"
);
assert
(
false
);
panic
();
}
/*******************************************************************************
* Export the platform handlers via a5ds_psci_pm_ops. The ARM Standard
* platform layer will take care of registering the handlers with PSCI.
...
...
@@ -47,7 +60,8 @@ plat_psci_ops_t a5ds_psci_pm_ops = {
/* dummy struct */
.
validate_ns_entrypoint
=
NULL
,
.
pwr_domain_on
=
a5ds_pwr_domain_on
,
.
pwr_domain_on_finish
=
a5ds_pwr_domain_on_finish
.
pwr_domain_on_finish
=
a5ds_pwr_domain_on_finish
,
.
pwr_domain_off
=
a5ds_pwr_domain_off
};
int
__init
plat_setup_psci_ops
(
uintptr_t
sec_entrypoint
,
...
...
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