soc: Remove copyright notices
[coreboot.git] / src / soc / intel / tigerlake / reset.c
blob431a70ccb054d2442a73cd6ce6e1712b51f9db2f
1 /*
2 * This file is part of the coreboot project.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; version 2 of the License.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
15 #include <cf9_reset.h>
16 #include <console/console.h>
17 #include <intelblocks/cse.h>
18 #include <intelblocks/pmclib.h>
19 #include <fsp/util.h>
20 #include <soc/intel/common/reset.h>
21 #include <soc/pci_devs.h>
23 void do_global_reset(void)
25 /* Ask CSE to do the global reset */
26 if (cse_request_global_reset(GLOBAL_RESET))
27 return;
29 /* global reset if CSE fail to reset */
30 pmc_global_reset_enable(1);
31 do_full_reset();
34 void chipset_handle_reset(uint32_t status)
36 switch (status) {
37 case FSP_STATUS_RESET_REQUIRED_3: /* Global Reset */
38 printk(BIOS_DEBUG, "GLOBAL RESET!!\n");
39 global_reset();
40 break;
41 default:
42 printk(BIOS_ERR, "unhandled reset type %x\n", status);
43 die("unknown reset type");
44 break;