1 /* SPDX-License-Identifier: GPL-2.0-only */
6 #include <soc/southbridge.h>
7 #include <amdblocks/acpimmio.h>
8 #include <amdblocks/reset.h>
10 void do_cold_reset(void)
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)