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>
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
))
29 /* global reset if CSE fail to reset */
30 pmc_global_reset_enable(1);
34 void chipset_handle_reset(uint32_t status
)
37 case FSP_STATUS_RESET_REQUIRED_3
: /* Global Reset */
38 printk(BIOS_DEBUG
, "GLOBAL RESET!!\n");
42 printk(BIOS_ERR
, "unhandled reset type %x\n", status
);
43 die("unknown reset type");