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
1916092f
Unverified
Commit
1916092f
authored
Sep 04, 2018
by
Soby Mathew
Committed by
GitHub
Sep 04, 2018
Browse files
Merge pull request #1548 from BayLibre/opteed
opteed: pass power level on suspend
parents
ebf417aa
820540bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
services/spd/opteed/opteed_pm.c
View file @
1916092f
...
...
@@ -66,6 +66,9 @@ static void opteed_cpu_suspend_handler(u_register_t max_off_pwrlvl)
assert
(
optee_vector_table
);
assert
(
get_optee_pstate
(
optee_ctx
->
state
)
==
OPTEE_PSTATE_ON
);
write_ctx_reg
(
get_gpregs_ctx
(
&
optee_ctx
->
cpu_ctx
),
CTX_GPREG_X0
,
max_off_pwrlvl
);
/* Program the entry point and enter OPTEE */
cm_set_elr_el3
(
SECURE
,
(
uint64_t
)
&
optee_vector_table
->
cpu_suspend_entry
);
rc
=
opteed_synchronous_sp_entry
(
optee_ctx
);
...
...
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