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