mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-07 17:57:38 +01:00
ipq6018: reset: Do pmic reset if "atf" env variable is set
Change-Id: Ie8e1f1907841cac52c52005209bbcec5690de4de Signed-off-by: Antony Arun T <antothom@codeaurora.org>
This commit is contained in:
parent
57117bb939
commit
bc59f37c9b
1 changed files with 18 additions and 1 deletions
|
|
@ -1150,10 +1150,27 @@ void qti_scm_pshold(void)
|
|||
writel(0, GCNT_PSHOLD);
|
||||
}
|
||||
|
||||
static void atf_reset(void)
|
||||
{
|
||||
if(*tz_wonce == 0 ) { /*COLD REBOOT*/
|
||||
if(do_pmic_reset())
|
||||
printf("PMIC Reset failed, please do power cycle\n");
|
||||
}
|
||||
else { /*WARM REBOOT*/
|
||||
psci_sys_reset();
|
||||
}
|
||||
while(1);
|
||||
}
|
||||
|
||||
void reset_cpu(unsigned long a)
|
||||
{
|
||||
reset_crashdump();
|
||||
psci_sys_reset();
|
||||
|
||||
if(getenv("atf"))
|
||||
atf_reset();
|
||||
else
|
||||
psci_sys_reset();
|
||||
|
||||
while(1);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue