Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 1 | /* |
Antonio Nino Diaz | ea3c4de | 2018-10-17 16:46:41 +0100 | [diff] [blame] | 2 | * Copyright (c) 2014-2018, ARM Limited and Contributors. All rights reserved. |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 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 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 7 | #ifndef ZYNQMP_PRIVATE_H |
| 8 | #define ZYNQMP_PRIVATE_H |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 9 | |
Antonio Nino Diaz | ea3c4de | 2018-10-17 16:46:41 +0100 | [diff] [blame] | 10 | #include <stdint.h> |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 11 | |
Antonio Nino Diaz | e0f9063 | 2018-12-14 00:18:21 +0000 | [diff] [blame] | 12 | #include <bl31/interrupt_mgmt.h> |
| 13 | #include <common/bl_common.h> |
| 14 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 15 | void zynqmp_config_setup(void); |
| 16 | |
Antonio Nino Diaz | ea3c4de | 2018-10-17 16:46:41 +0100 | [diff] [blame] | 17 | unsigned int zynqmp_calc_core_pos(u_register_t mpidr); |
| 18 | |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 19 | /* ZynqMP specific functions */ |
| 20 | unsigned int zynqmp_get_uart_clk(void); |
Soren Brinkmann | b43d943 | 2016-04-18 11:49:42 -0700 | [diff] [blame] | 21 | unsigned int zynqmp_get_bootmode(void); |
Soren Brinkmann | 76fcae3 | 2016-03-06 20:16:27 -0800 | [diff] [blame] | 22 | |
Michal Simek | ef8f559 | 2015-06-15 14:22:50 +0200 | [diff] [blame] | 23 | /* For FSBL handover */ |
Siva Durga Prasad Paladugu | 8f49972 | 2018-05-17 15:17:46 +0530 | [diff] [blame] | 24 | enum fsbl_handoff { |
| 25 | FSBL_HANDOFF_SUCCESS = 0, |
| 26 | FSBL_HANDOFF_NO_STRUCT, |
| 27 | FSBL_HANDOFF_INVAL_STRUCT, |
| 28 | FSBL_HANDOFF_TOO_MANY_PARTS, |
| 29 | }; |
| 30 | |
Siva Durga Prasad Paladugu | efd431b | 2018-04-30 20:12:12 +0530 | [diff] [blame] | 31 | #if ZYNQMP_WDT_RESTART |
| 32 | /* |
| 33 | * Register handler to specific GIC entrance |
| 34 | * for INTR_TYPE_EL3 type of interrupt |
| 35 | */ |
| 36 | int request_intr_type_el3(uint32_t, interrupt_type_handler_t); |
| 37 | #endif |
| 38 | |
Siva Durga Prasad Paladugu | 8f49972 | 2018-05-17 15:17:46 +0530 | [diff] [blame] | 39 | 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] | 40 | entry_point_info_t *bl33_image_ep_info); |
| 41 | |
Antonio Nino Diaz | 5eb8837 | 2018-11-08 10:20:19 +0000 | [diff] [blame] | 42 | #endif /* ZYNQMP_PRIVATE_H */ |