blob: 52c6334b53d63364e9c3e9b0597f015d2066bf96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <arch/io.h>
#include <cf9_reset.h>
#include <reset.h>
#include <soc/southbridge.h>
#include <amdblocks/acpimmio.h>
#include <amdblocks/reset.h>
void do_cold_reset(void)
{
set_resets_to_cold();
outb(RST_CPU | SYS_RST, RST_CNT);
}
void do_warm_reset(void)
{
/* If warm resets are not supported, executed a cold reset */
if (!CONFIG(SOC_AMD_SUPPORTS_WARM_RESET))
do_cold_reset(); /* Does not return */
outb(RST_CPU | SYS_RST, RST_CNT);
}
void do_board_reset(void)
{
do_cold_reset();
}
|