2016-03-07 04:16:27 +00:00
|
|
|
/*
|
2018-10-17 16:46:41 +01:00
|
|
|
* Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
|
2016-03-07 04:16:27 +00:00
|
|
|
*
|
2017-05-03 09:38:09 +01:00
|
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
2016-03-07 04:16:27 +00:00
|
|
|
*/
|
|
|
|
|
2019-01-08 19:10:47 +00:00
|
|
|
#ifndef PLAT_PRIVATE_H
|
|
|
|
#define PLAT_PRIVATE_H
|
2016-03-07 04:16:27 +00:00
|
|
|
|
2018-10-17 16:46:41 +01:00
|
|
|
#include <stdint.h>
|
2016-03-07 04:16:27 +00:00
|
|
|
|
2018-12-14 00:18:21 +00:00
|
|
|
#include <bl31/interrupt_mgmt.h>
|
|
|
|
#include <common/bl_common.h>
|
|
|
|
|
2016-03-07 04:16:27 +00:00
|
|
|
void zynqmp_config_setup(void);
|
|
|
|
|
2018-10-17 16:46:41 +01:00
|
|
|
unsigned int zynqmp_calc_core_pos(u_register_t mpidr);
|
|
|
|
|
2016-03-07 04:16:27 +00:00
|
|
|
/* ZynqMP specific functions */
|
|
|
|
unsigned int zynqmp_get_uart_clk(void);
|
2016-04-18 19:49:42 +01:00
|
|
|
unsigned int zynqmp_get_bootmode(void);
|
2016-03-07 04:16:27 +00:00
|
|
|
|
2015-06-15 13:22:50 +01:00
|
|
|
/* For FSBL handover */
|
2018-05-17 10:47:46 +01:00
|
|
|
enum fsbl_handoff {
|
|
|
|
FSBL_HANDOFF_SUCCESS = 0,
|
|
|
|
FSBL_HANDOFF_NO_STRUCT,
|
|
|
|
FSBL_HANDOFF_INVAL_STRUCT,
|
|
|
|
FSBL_HANDOFF_TOO_MANY_PARTS,
|
|
|
|
};
|
|
|
|
|
2018-04-30 15:42:12 +01:00
|
|
|
#if ZYNQMP_WDT_RESTART
|
|
|
|
/*
|
|
|
|
* Register handler to specific GIC entrance
|
|
|
|
* for INTR_TYPE_EL3 type of interrupt
|
|
|
|
*/
|
|
|
|
int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
|
|
|
|
#endif
|
|
|
|
|
2018-05-17 10:47:46 +01:00
|
|
|
enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info,
|
2015-06-15 13:22:50 +01:00
|
|
|
entry_point_info_t *bl33_image_ep_info);
|
|
|
|
|
2019-01-08 19:10:47 +00:00
|
|
|
#endif /* PLAT_PRIVATE_H */
|