blob: fd38f612556beeb5910ac1066f1043350ef73319 [file] [log] [blame]
Aaron Durbin6ecdb682013-10-10 20:54:57 -05001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 Google Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Aaron Durbin6ecdb682013-10-10 20:54:57 -050014 */
15
16#include <arch/io.h>
Julius Werner18ea2d32014-10-07 16:42:17 -070017#include <soc/pmc.h>
18#include <soc/reset.h>
Aaron Durbin6ecdb682013-10-10 20:54:57 -050019
20void cold_reset(void)
21{
22 /* S0->S5->S0 trip. */
23 outb(RST_CPU | SYS_RST | FULL_RST, RST_CNT);
24}
25
26void warm_reset(void)
27{
28 /* PMC_PLTRST# asserted. */
29 outb(RST_CPU | SYS_RST, RST_CNT);
30}
31
32void soft_reset(void)
33{
34 /* Sends INIT# to CPU */
35 outb(RST_CPU, RST_CNT);
36}
37
38void hard_reset(void)
39{
40 /* Don't power cycle on hard_reset(). It's not really clear what the
41 * semantics should be for the meaning of hard_reset(). */
42 warm_reset();
43}