mb/google/nissa/var/rull: Configure Acoustic noise mitigation
[coreboot2.git] / src / soc / amd / common / block / pm / reset.c
blob52c6334b53d63364e9c3e9b0597f015d2066bf96
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 #include <arch/io.h>
4 #include <cf9_reset.h>
5 #include <reset.h>
6 #include <soc/southbridge.h>
7 #include <amdblocks/acpimmio.h>
8 #include <amdblocks/reset.h>
10 void do_cold_reset(void)
12 set_resets_to_cold();
13 outb(RST_CPU | SYS_RST, RST_CNT);
16 void do_warm_reset(void)
18 /* If warm resets are not supported, executed a cold reset */
19 if (!CONFIG(SOC_AMD_SUPPORTS_WARM_RESET))
20 do_cold_reset(); /* Does not return */
22 outb(RST_CPU | SYS_RST, RST_CNT);
25 void do_board_reset(void)
27 do_cold_reset();