plat_private.h 986 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. * Copyright (c) 2014-2020, Arm Limited and Contributors. All rights reserved.
  3. * Copyright (c) 2023-2024, Advanced Micro Devices, Inc. All rights reserved.
  4. *
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */
  7. #ifndef PLAT_PRIVATE_H
  8. #define PLAT_PRIVATE_H
  9. #include <stdint.h>
  10. #include <bl31/interrupt_mgmt.h>
  11. #include <common/bl_common.h>
  12. #include <drivers/cadence/cdns_uart.h>
  13. #include <lib/xlat_tables/xlat_tables_v2.h>
  14. void zynqmp_config_setup(void);
  15. const mmap_region_t *plat_get_mmap(void);
  16. uint32_t zynqmp_calc_core_pos(u_register_t mpidr);
  17. /* ZynqMP specific functions */
  18. uint32_t get_uart_clk(void);
  19. uint32_t zynqmp_get_bootmode(void);
  20. #if ZYNQMP_WDT_RESTART
  21. typedef struct zynqmp_intr_info_type_el3 {
  22. uint32_t id;
  23. interrupt_type_handler_t handler;
  24. } zynmp_intr_info_type_el3_t;
  25. /*
  26. * Register handler to specific GIC entrance
  27. * for INTR_TYPE_EL3 type of interrupt
  28. */
  29. int request_intr_type_el3(uint32_t, interrupt_type_handler_t);
  30. #endif
  31. #endif /* PLAT_PRIVATE_H */