diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-10-15 09:03:43 +0100 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-10-15 09:03:43 +0100 |
commit | 1cf45c96b2e87a60cbed25245c2319b2a391da1e (patch) | |
tree | f465e3b9880c99749c5e21beed70a0129e93d40c /include | |
parent | 2bfcf9ef94656ad4ceb5b58b9f0be7aae4f1b589 (diff) | |
download | tf-a-tests-1cf45c96b2e87a60cbed25245c2319b2a391da1e.tar.gz |
Move platform_helpers.S to each platform's folder
In practice, all the functions in this file are platform-specific. It is
better to force all platforms to implement than having some sort of weak
function placeholder.
Porting guide updated.
Change-Id: I5beeeb10bec6fe5178b24503d6da8ca66074a8c6
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/plat/common/platform.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/include/plat/common/platform.h b/include/plat/common/platform.h index d3a486c0a..3f452ad58 100644 --- a/include/plat/common/platform.h +++ b/include/plat/common/platform.h @@ -56,6 +56,14 @@ void tftf_platform_end(void); void tftf_platform_watchdog_set(void); void tftf_platform_watchdog_reset(void); +/* Helper that returns a linear core ID from a MPID */ +unsigned int platform_get_core_pos(u_register_t mpid); + +/* Crash console functions */ +int plat_crash_console_init(void); +int plat_crash_console_putc(int c); +int plat_crash_console_flush(void); + /* Gets a handle for the initialised IO entity */ void plat_get_nvm_handle(uintptr_t *handle); @@ -153,11 +161,7 @@ typedef struct mem_region mem_region_t; * Optional functions. A default, weak implementation of those functions is * provided, it may be overridden by platform code. ******************************************************************************/ -unsigned int platform_get_core_pos(unsigned long mpid); unsigned long platform_get_stack(unsigned long mpidr); -int plat_crash_console_init(void); -int plat_crash_console_putc(int c); -int plat_crash_console_flush(void); /* * plat_get_prot_regions: It returns a pointer to a * set of regions used to test mem_protect_check. |