xref: /rk3399_ARM-atf/plat/xilinx/zynqmp/include/plat_private.h (revision 31c3842ee86e5e98a1f441e1373906954dbcdf9f)
1*31c3842eSJolly Shah /*
2*31c3842eSJolly Shah  * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
3*31c3842eSJolly Shah  *
4*31c3842eSJolly Shah  * SPDX-License-Identifier: BSD-3-Clause
5*31c3842eSJolly Shah  */
6*31c3842eSJolly Shah 
7*31c3842eSJolly Shah #ifndef PLAT_PRIVATE_H
8*31c3842eSJolly Shah #define PLAT_PRIVATE_H
9*31c3842eSJolly Shah 
10*31c3842eSJolly Shah #include <stdint.h>
11*31c3842eSJolly Shah 
12*31c3842eSJolly Shah #include <bl31/interrupt_mgmt.h>
13*31c3842eSJolly Shah #include <common/bl_common.h>
14*31c3842eSJolly Shah 
15*31c3842eSJolly Shah void zynqmp_config_setup(void);
16*31c3842eSJolly Shah 
17*31c3842eSJolly Shah unsigned int zynqmp_calc_core_pos(u_register_t mpidr);
18*31c3842eSJolly Shah 
19*31c3842eSJolly Shah /* ZynqMP specific functions */
20*31c3842eSJolly Shah unsigned int zynqmp_get_uart_clk(void);
21*31c3842eSJolly Shah unsigned int zynqmp_get_bootmode(void);
22*31c3842eSJolly Shah 
23*31c3842eSJolly Shah /* For FSBL handover */
24*31c3842eSJolly Shah enum fsbl_handoff {
25*31c3842eSJolly Shah 	FSBL_HANDOFF_SUCCESS = 0,
26*31c3842eSJolly Shah 	FSBL_HANDOFF_NO_STRUCT,
27*31c3842eSJolly Shah 	FSBL_HANDOFF_INVAL_STRUCT,
28*31c3842eSJolly Shah 	FSBL_HANDOFF_TOO_MANY_PARTS,
29*31c3842eSJolly Shah };
30*31c3842eSJolly Shah 
31*31c3842eSJolly Shah #if ZYNQMP_WDT_RESTART
32*31c3842eSJolly Shah /*
33*31c3842eSJolly Shah  * Register handler to specific GIC entrance
34*31c3842eSJolly Shah  * for INTR_TYPE_EL3 type of interrupt
35*31c3842eSJolly Shah  */
36*31c3842eSJolly Shah int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
37*31c3842eSJolly Shah #endif
38*31c3842eSJolly Shah 
39*31c3842eSJolly Shah enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info,
40*31c3842eSJolly Shah 		       entry_point_info_t *bl33_image_ep_info);
41*31c3842eSJolly Shah 
42*31c3842eSJolly Shah #endif /* PLAT_PRIVATE_H */
43