ipq6018: reset: fixing reset flow

Doing PMIC reset only when there is a abnormal reset/kernel panic
and wonce register is set to cold reboot.

Change-Id: I08db31e476788be30cb7ab139a2057a40d98cb89
Signed-off-by: Antony Arun T <antothom@codeaurora.org>
This commit is contained in:
Antony Arun T 2019-07-11 12:48:41 +05:30
parent cc9f67f70f
commit 2d32b2d4e3

View file

@ -1135,6 +1135,13 @@ void qti_scm_pshold(void)
}
void reset_cpu(unsigned long a)
{
reset_crashdump();
psci_sys_reset();
while(1);
}
void reset_board(void)
{
reset_crashdump();
if(*tz_wonce == 0) { /*COLD REBOOT*/
@ -1147,11 +1154,6 @@ void reset_cpu(unsigned long a)
while(1);
}
void reset_board(void)
{
run_command("reset", 0);
}
void ipq_fdt_fixup_socinfo(void *blob)
{
uint32_t cpu_type;