blob: a34f13846744fe7dd33d263a77437288bb3ca06b [file] [log] [blame]
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +02001/*
Antonio Nino Diaz6766bb12018-10-26 11:12:31 +01002 * Copyright (c) 2017-2018, ARM Limited and Contributors. All rights reserved.
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +02003 *
4 * SPDX-License-Identifier: BSD-3-Clause
5 */
6
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +00007#ifndef PLAT_PRIVATE_H
8#define PLAT_PRIVATE_H
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +02009
Antonio Nino Diaze0f90632018-12-14 00:18:21 +000010#include <common/bl_common.h>
11
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020012#include "hi3798cv200.h"
13
14void plat_configure_mmu_el3(unsigned long total_base,
15 unsigned long total_size,
16 unsigned long ro_start,
17 unsigned long ro_limit,
18 unsigned long coh_start,
19 unsigned long coh_limit);
20
21void plat_configure_mmu_el1(unsigned long total_base,
22 unsigned long total_size,
23 unsigned long ro_start,
24 unsigned long ro_limit,
25 unsigned long coh_start,
26 unsigned long coh_limit);
27
Jorge Ramirez-Ortiza29d9a62017-06-28 10:11:31 +020028void plat_io_setup(void);
29
Antonio Nino Diaz6766bb12018-10-26 11:12:31 +010030unsigned int poplar_calc_core_pos(u_register_t mpidr);
31
32void poplar_gic_driver_init(void);
33void poplar_gic_init(void);
34void poplar_gic_cpuif_enable(void);
35void poplar_gic_pcpu_init(void);
36
Antonio Nino Diaz5eb88372018-11-08 10:20:19 +000037#endif /* PLAT_PRIVATE_H */