zynqmp_private.h 892 Bytes
Newer Older
1
2
3
/*
 * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved.
 *
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
12
13
14
15
16
#include <interrupt_mgmt.h>

void zynqmp_config_setup(void);

/* ZynqMP specific functions */
unsigned int zynqmp_get_uart_clk(void);
17
unsigned int zynqmp_get_bootmode(void);
18

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

27
28
29
30
31
32
33
34
#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

35
enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info,
Michal Simek's avatar
Michal Simek committed
36
37
		       entry_point_info_t *bl33_image_ep_info);

38
#endif /* __ZYNQMP_PRIVATE_H__ */