mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-05-04 18:08:42 +00:00

The SCP_BL2 is transferred to SCP during BL2 image load and authenticate sequence. The Boot-Over-MHU (BOM) protocol is used as transport for this. After the SCP boots using the transferred image, the AP CPU waits till the `READY` message is received from SCP. This patch separates the API for transport of image from the wait for `READY` message and also moves the related files to the `css/drivers` folder. The previous API `scp_bootloader_transfer` is renamed to `css_scp_boot_image_xfer` to reflect the css naming convention. This reorganisation also allows easier switch to a different transport (eg: Shared Data Structure based transfer) in future Change-Id: I8a96f9c4616ffde6dbfdf7c18f6f6f8bfa40bbf0 Signed-off-by: Soby Mathew <soby.mathew@arm.com>
37 lines
1 KiB
C
37 lines
1 KiB
C
/*
|
|
* Copyright (c) 2016-2017, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef __CSS_SCP_H__
|
|
#define __CSS_SCP_H__
|
|
|
|
#include <types.h>
|
|
#include "../scpi/css_scpi.h"
|
|
|
|
/* Forward declarations */
|
|
struct psci_power_state;
|
|
|
|
/* API for power management by SCP */
|
|
void css_scp_suspend(const struct psci_power_state *target_state);
|
|
void css_scp_off(const struct psci_power_state *target_state);
|
|
void css_scp_on(u_register_t mpidr);
|
|
int css_scp_get_power_state(u_register_t mpidr, unsigned int power_level);
|
|
void __dead2 css_scp_sys_shutdown(void);
|
|
void __dead2 css_scp_sys_reboot(void);
|
|
|
|
/* API for SCP Boot Image transfer. Return 0 on success, -1 on error */
|
|
int css_scp_boot_image_xfer(void *image, unsigned int image_size);
|
|
|
|
/*
|
|
* API to wait for SCP to signal till it's ready after booting the transferred
|
|
* image.
|
|
*/
|
|
static inline int css_scp_boot_ready(void)
|
|
{
|
|
VERBOSE("Waiting for SCP to signal it is ready to go on\n");
|
|
return scpi_wait_ready();
|
|
}
|
|
|
|
#endif /* __CSS_SCP_H__ */
|