blob: 288cc53011a30bdbab4e1635725f0d27c0e557f7 [file] [log] [blame]
Soren Brinkmann76fcae32016-03-06 20:16:27 -08001/*
Venkatesh Yadav Abbarapu1463dd52020-01-07 03:25:16 -07002 * Copyright (c) 2014-2020, ARM Limited and Contributors. All rights reserved.
Soren Brinkmann76fcae32016-03-06 20:16:27 -08003 *
dp-armfa3cf0b2017-05-03 09:38:09 +01004 * SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmann76fcae32016-03-06 20:16:27 -08005 */
6
Jolly Shah0bfd7002019-01-08 11:10:47 -08007#ifndef PLAT_PRIVATE_H
8#define PLAT_PRIVATE_H
Soren Brinkmann76fcae32016-03-06 20:16:27 -08009
Antonio Nino Diazea3c4de2018-10-17 16:46:41 +010010#include <stdint.h>
Soren Brinkmann76fcae32016-03-06 20:16:27 -080011
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000012#include <bl31/interrupt_mgmt.h>
13#include <common/bl_common.h>
Ambroise Vincent53f193f2019-05-29 11:46:08 +010014#include <drivers/cadence/cdns_uart.h>
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000015
Soren Brinkmann76fcae32016-03-06 20:16:27 -080016void zynqmp_config_setup(void);
17
Antonio Nino Diazea3c4de2018-10-17 16:46:41 +010018unsigned int zynqmp_calc_core_pos(u_register_t mpidr);
19
Soren Brinkmann76fcae32016-03-06 20:16:27 -080020/* ZynqMP specific functions */
21unsigned int zynqmp_get_uart_clk(void);
Soren Brinkmannb43d9432016-04-18 11:49:42 -070022unsigned int zynqmp_get_bootmode(void);
Soren Brinkmann76fcae32016-03-06 20:16:27 -080023
Siva Durga Prasad Paladugu8f499722018-05-17 15:17:46 +053024
Siva Durga Prasad Paladuguefd431b2018-04-30 20:12:12 +053025#if ZYNQMP_WDT_RESTART
26/*
27 * Register handler to specific GIC entrance
28 * for INTR_TYPE_EL3 type of interrupt
29 */
30int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
31#endif
32
Jolly Shah0bfd7002019-01-08 11:10:47 -080033#endif /* PLAT_PRIVATE_H */