xref: /rk3399_ARM-atf/plat/arm/board/a5ds/a5ds_pm.c (revision d5dfdeb65ff5b7f24dded201d2945c7b74565ce8)
1 /*
2  * Copyright (c) 2019, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  */
6 
7 #include <lib/psci/psci.h>
8 #include <plat/arm/common/plat_arm.h>
9 
10 /*******************************************************************************
11  * Export the platform handlers via a5ds_psci_pm_ops. The ARM Standard
12  * platform layer will take care of registering the handlers with PSCI.
13  ******************************************************************************/
14 plat_psci_ops_t a5ds_psci_pm_ops = {
15 	/* dummy struct */
16 	.validate_ns_entrypoint = NULL,
17 };
18 
19 int __init plat_setup_psci_ops(uintptr_t sec_entrypoint,
20 				const plat_psci_ops_t **psci_ops)
21 {
22 	*psci_ops = &a5ds_psci_pm_ops;
23 
24 	return 0;
25 }
26