mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-22 09:58:52 +09:00
![Yuantian Tang](/assets/img/avatar_default.png)
PSCI can be used on both multiple and single core socs. Current implementation only allows PSCI to work on multiple core socs. This patch removes this restriction so that PSCI can work on single core socs as well. Signed-off-by: Chenhui Zhao <chenhui.zhao@nxp.com> Signed-off-by: Tang Yuantian <andy.tang@nxp.com> Reviewed-by: York Sun <york.sun@nxp.com>
26 lines
616 B
C
26 lines
616 B
C
/*
|
|
* Copyright 2016 NXP Semiconductor, Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
#ifndef __SEC_FIRMWARE_H_
|
|
#define __SEC_FIRMWARE_H_
|
|
|
|
#define PSCI_INVALID_VER 0xffffffff
|
|
|
|
int sec_firmware_init(const void *, u32 *, u32 *);
|
|
int _sec_firmware_entry(const void *, u32 *, u32 *);
|
|
bool sec_firmware_is_valid(const void *);
|
|
#ifdef CONFIG_SEC_FIRMWARE_ARMV8_PSCI
|
|
unsigned int sec_firmware_support_psci_version(void);
|
|
unsigned int _sec_firmware_support_psci_version(void);
|
|
#else
|
|
static inline unsigned int sec_firmware_support_psci_version(void)
|
|
{
|
|
return PSCI_INVALID_VER;
|
|
}
|
|
#endif
|
|
|
|
#endif /* __SEC_FIRMWARE_H_ */
|