Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 2014-2016, ARM Limited and Contributors. All rights reserved. |
| 3 | * |
dp-arm | fa3cf0b | 2017-05-03 09:38:09 +0100 | [diff] [blame] | 4 | * SPDX-License-Identifier: BSD-3-Clause |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 5 | */ |
| 6 | |
| 7 | #ifndef __ZYNQMP_PRIVATE_H__ |
| 8 | #define __ZYNQMP_PRIVATE_H__ |
| 9 | |
Wendy Liang | 36703e2 | 2017-11-10 15:55:16 -0800 | [diff] [blame] | 10 | #include <bl_common.h> |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 11 | #include <interrupt_mgmt.h> |
| 12 | |
| 13 | void zynqmp_config_setup(void); |
| 14 | |
| 15 | /* ZynqMP specific functions */ |
| 16 | unsigned int zynqmp_get_uart_clk(void); |
Soren Brinkmann | b43d943 | 2016-04-18 11:49:42 -0700 | [diff] [blame] | 17 | unsigned int zynqmp_get_bootmode(void); |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 18 | |
Michal Simek | ef8f559 | 2015-06-15 14:22:50 +0200 | [diff] [blame] | 19 | /* For FSBL handover */ |
Siva Durga Prasad Paladugu | 8f49972 | 2018-05-17 15:17:46 +0530 | [diff] [blame] | 20 | enum fsbl_handoff { |
| 21 | FSBL_HANDOFF_SUCCESS = 0, |
| 22 | FSBL_HANDOFF_NO_STRUCT, |
| 23 | FSBL_HANDOFF_INVAL_STRUCT, |
| 24 | FSBL_HANDOFF_TOO_MANY_PARTS, |
| 25 | }; |
| 26 | |
Siva Durga Prasad Paladugu | efd431b | 2018-04-30 20:12:12 +0530 | [diff] [blame] | 27 | #if ZYNQMP_WDT_RESTART |
| 28 | /* |
| 29 | * Register handler to specific GIC entrance |
| 30 | * for INTR_TYPE_EL3 type of interrupt |
| 31 | */ |
| 32 | int request_intr_type_el3(uint32_t, interrupt_type_handler_t); |
| 33 | #endif |
| 34 | |
Siva Durga Prasad Paladugu | 8f49972 | 2018-05-17 15:17:46 +0530 | [diff] [blame] | 35 | enum fsbl_handoff fsbl_atf_handover(entry_point_info_t *bl32_image_ep_info, |
Michal Simek | ef8f559 | 2015-06-15 14:22:50 +0200 | [diff] [blame] | 36 | entry_point_info_t *bl33_image_ep_info); |
| 37 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 38 | #endif /* __ZYNQMP_PRIVATE_H__ */ |