blob: 4cc9a1ed3ef6cacf89a92c314410cbcaf4d1a50f [file] [log] [blame]
Furquan Shaikh84bbab92014-06-24 17:38:03 -07001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright 2014 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.
Furquan Shaikh84bbab92014-06-24 17:38:03 -070014 */
15
16#include <arch/io.h>
Julius Wernereaa9c452014-09-24 15:40:49 -070017#include <gpio.h>
Aaron Durbin44e5e4c2014-08-05 13:30:38 -050018#include <reset.h>
Furquan Shaikh84bbab92014-06-24 17:38:03 -070019
Aaron Durbin44e5e4c2014-08-05 13:30:38 -050020void hard_reset(void)
Furquan Shaikh84bbab92014-06-24 17:38:03 -070021{
Aaron Durbin44e5e4c2014-08-05 13:30:38 -050022 gpio_output(GPIO(I5), 0);
23 while(1);
Furquan Shaikh84bbab92014-06-24 17:38:03 -070024}