blob: 3526b94bb314153d9b0254c5955480349284530f [file] [log] [blame]
Soren Brinkmannc8284402016-03-06 20:16:27 -08001/*
Michal Simek619bc132023-04-14 08:43:51 +02002 * Copyright (c) 2014-2020, Arm Limited and Contributors. All rights reserved.
Prasad Kummarie8d61f72023-05-11 14:58:13 +05303 * Copyright (c) 2023, Advanced Micro Devices, Inc. All rights reserved.
Soren Brinkmannc8284402016-03-06 20:16:27 -08004 *
dp-arm82cb2c12017-05-03 09:38:09 +01005 * SPDX-License-Identifier: BSD-3-Clause
Soren Brinkmannc8284402016-03-06 20:16:27 -08006 */
7
Jolly Shah31c38422019-01-08 11:10:47 -08008#ifndef PLAT_PRIVATE_H
9#define PLAT_PRIVATE_H
Soren Brinkmannc8284402016-03-06 20:16:27 -080010
Antonio Nino Diazbde25ae2018-10-17 16:46:41 +010011#include <stdint.h>
Soren Brinkmannc8284402016-03-06 20:16:27 -080012
Antonio Nino Diaz09d40e02018-12-14 00:18:21 +000013#include <bl31/interrupt_mgmt.h>
14#include <common/bl_common.h>
Ambroise Vincent55a08b32019-05-29 11:46:08 +010015#include <drivers/cadence/cdns_uart.h>
Antonio Nino Diaz09d40e02018-12-14 00:18:21 +000016
Soren Brinkmannc8284402016-03-06 20:16:27 -080017void zynqmp_config_setup(void);
18
Venkatesh Yadav Abbarapuffa91032022-05-19 14:49:49 +053019uint32_t zynqmp_calc_core_pos(u_register_t mpidr);
Antonio Nino Diazbde25ae2018-10-17 16:46:41 +010020
Soren Brinkmannc8284402016-03-06 20:16:27 -080021/* ZynqMP specific functions */
Venkatesh Yadav Abbarapuffa91032022-05-19 14:49:49 +053022uint32_t zynqmp_get_uart_clk(void);
23uint32_t zynqmp_get_bootmode(void);
Soren Brinkmannc8284402016-03-06 20:16:27 -080024
Siva Durga Prasad Paladugu29657d02018-04-30 20:12:12 +053025#if ZYNQMP_WDT_RESTART
Prasad Kummarie8d61f72023-05-11 14:58:13 +053026typedef struct zynqmp_intr_info_type_el3 {
27 uint32_t id;
28 interrupt_type_handler_t handler;
29} zynmp_intr_info_type_el3_t;
30
Siva Durga Prasad Paladugu29657d02018-04-30 20:12:12 +053031/*
32 * Register handler to specific GIC entrance
33 * for INTR_TYPE_EL3 type of interrupt
34 */
35int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
36#endif
37
Jolly Shah31c38422019-01-08 11:10:47 -080038#endif /* PLAT_PRIVATE_H */