zynqmp_private.h 968 Bytes
Newer Older
1
/*
2
 * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved.
3
 *
dp-arm's avatar
dp-arm committed
4
 * SPDX-License-Identifier: BSD-3-Clause
5
6
7
8
9
 */

#ifndef __ZYNQMP_PRIVATE_H__
#define __ZYNQMP_PRIVATE_H__

10
#include <bl_common.h>
11
#include <interrupt_mgmt.h>
12
#include <stdint.h>
13
14
15

void zynqmp_config_setup(void);

16
17
unsigned int zynqmp_calc_core_pos(u_register_t mpidr);

18
19
/* ZynqMP specific functions */
unsigned int zynqmp_get_uart_clk(void);
20
unsigned int zynqmp_get_bootmode(void);
21

Michal Simek's avatar
Michal Simek committed
22
/* For FSBL handover */
23
24
25
26
27
28
29
enum fsbl_handoff {
	FSBL_HANDOFF_SUCCESS = 0,
	FSBL_HANDOFF_NO_STRUCT,
	FSBL_HANDOFF_INVAL_STRUCT,
	FSBL_HANDOFF_TOO_MANY_PARTS,
};

30
31
32
33
34
35
36
37
#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

38
enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info,
Michal Simek's avatar
Michal Simek committed
39
40
		       entry_point_info_t *bl33_image_ep_info);

41
#endif /* __ZYNQMP_PRIVATE_H__ */