2020-09-09 10:04:18 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
|
|
|
2020-09-22 00:44:27 +02:00
|
|
|
#include <cf9_reset.h>
|
|
|
|
#include <intelblocks/cse.h>
|
|
|
|
#include <intelblocks/pmclib.h>
|
2020-09-09 10:04:18 +02:00
|
|
|
#include <soc/intel/common/reset.h>
|
2020-09-22 00:44:27 +02:00
|
|
|
|
|
|
|
void do_global_reset(void)
|
|
|
|
{
|
|
|
|
/* Ask CSE to do the global reset */
|
|
|
|
if (cse_request_global_reset())
|
|
|
|
return;
|
|
|
|
|
|
|
|
/* global reset if CSE fail to reset */
|
|
|
|
pmc_global_reset_enable(1);
|
|
|
|
do_full_reset();
|
|
|
|
}
|