mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-08-16 09:27:01 +02:00
Enforce full include path for includes. Deprecate old paths. The following folders inside include/lib have been left unchanged: - include/lib/cpus/${ARCH} - include/lib/el3_runtime/${ARCH} The reason for this change is that having a global namespace for includes isn't a good idea. It defeats one of the advantages of having folders and it introduces problems that are sometimes subtle (because you may not know the header you are actually including if there are two of them). For example, this patch had to be created because two headers were called the same way:e0ea0928d5
("Fix gpio includes of mt8173 platform to avoid collision."). More recently, this patch has had similar problems:46f9b2c3a2
("drivers: add tzc380 support"). This problem was introduced in commit4ecca33988
("Move include and source files to logical locations"). At that time, there weren't too many headers so it wasn't a real issue. However, time has shown that this creates problems. Platforms that want to preserve the way they include headers may add the removed paths to PLAT_INCLUDES, but this is discouraged. Change-Id: I39dc53ed98f9e297a5966e723d1936d6ccf2fc8f Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
63 lines
1.4 KiB
C
63 lines
1.4 KiB
C
/*
|
|
* Copyright (c) 2018, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef PLAT_LS_H
|
|
#define PLAT_LS_H
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <lib/el3_runtime/cpu_data.h>
|
|
|
|
/* BL1 utility functions */
|
|
void ls_bl1_platform_setup(void);
|
|
void ls_bl1_early_platform_setup(void);
|
|
|
|
/* BL2 utility functions */
|
|
void ls_bl2_early_platform_setup(meminfo_t *mem_layout);
|
|
uint32_t ls_get_spsr_for_bl32_entry(void);
|
|
uint32_t ls_get_spsr_for_bl33_entry(void);
|
|
|
|
/* BL3 utility functions */
|
|
void ls_bl31_early_platform_setup(void *from_bl2,
|
|
void *plat_params_from_bl2);
|
|
|
|
/* IO storage utility functions */
|
|
void plat_ls_io_setup(void);
|
|
|
|
|
|
void ls_setup_page_tables(uintptr_t total_base,
|
|
size_t total_size,
|
|
uintptr_t code_start,
|
|
uintptr_t code_limit,
|
|
uintptr_t rodata_start,
|
|
uintptr_t rodata_limit
|
|
#if USE_COHERENT_MEM
|
|
, uintptr_t coh_start,
|
|
uintptr_t coh_limit
|
|
#endif
|
|
);
|
|
|
|
/* PSCI utility functions */
|
|
int ls_check_mpidr(u_register_t mpidr);
|
|
|
|
/* Security utility functions */
|
|
int tzc380_setup(void);
|
|
|
|
/* Timer utility functions */
|
|
uint64_t ls_get_timer(uint64_t start);
|
|
void ls_delay_timer_init(void);
|
|
|
|
/* TSP utility functions */
|
|
void ls_tsp_early_platform_setup(void);
|
|
|
|
/* Helper functions */
|
|
unsigned int plat_ls_calc_core_pos(u_register_t mpidr);
|
|
|
|
/* others */
|
|
unsigned int plat_ls_get_cluster_core_count(u_register_t mpidr);
|
|
|
|
#endif /* PLAT_LS_H */
|