mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2025-12-10 07:44:53 +01:00
Merge "ipq807x: Added support for secure pshold"
This commit is contained in:
commit
66f395836e
2 changed files with 12 additions and 1 deletions
|
|
@ -205,13 +205,23 @@ void psci_sys_reset(void)
|
|||
__invoke_psci_fn_smc(0x84000009, 0, 0, 0);
|
||||
}
|
||||
|
||||
void qcom_scm_pshold(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = scm_call(SCM_SVC_BOOT, SCM_CMD_TZ_PSHOLD, NULL, 0, NULL, 0);
|
||||
|
||||
if (ret != 0)
|
||||
writel(0, GCNT_PSHOLD);
|
||||
}
|
||||
|
||||
void reset_cpu(unsigned long a)
|
||||
{
|
||||
reset_crashdump();
|
||||
if (is_scm_armv8()) {
|
||||
psci_sys_reset();
|
||||
} else {
|
||||
writel(0, GCNT_PSHOLD);
|
||||
qcom_scm_pshold();
|
||||
}
|
||||
while(1);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -255,6 +255,7 @@ extern loff_t board_env_size;
|
|||
#define CLEAR_MAGIC 0x0
|
||||
#define SCM_CMD_TZ_CONFIG_HW_FOR_RAM_DUMP_ID 0x9
|
||||
#define SCM_CMD_TZ_FORCE_DLOAD_ID 0x10
|
||||
#define SCM_CMD_TZ_PSHOLD 0x15
|
||||
#define BOOT_VERSION 0
|
||||
#define TZ_VERSION 1
|
||||
#define RPM_VERSION 3
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue